Files
libgit2/benchmarks/cli/hash-object__text_nocache_1kb
Edward Thomson f4cc6b9913 benchmarks: create top-level benchmarks folder
Benchmarks aren't tests; create a top-level `benchmarks` folder and move
`tests/benchmarks` to `benchmarks/cli`.
2025-03-01 12:39:04 +00:00

10 lines
197 B
Bash
Executable File

#!/bin/bash -e
. "$(dirname "$0")/benchmark_helpers.sh"
needs_admin
gitbench --prepare "create_text_file text_1kb 1024 &&
flush_disk_cache" \
hash-object "text_1kb"