Files
libgit2/benchmarks/cli/hash-object__write_text_nocache_10mb
Edward Thomson 8fda867e46 benchmarks: move them to their own folder
Benchmarks aren't really tests, don't keep them in the `tests` folder.
2026-01-26 21:43:06 +00:00

12 lines
303 B
Bash
Executable File

#!/bin/bash -e
. "$(dirname "$0")/benchmark_helpers.sh"
needs_admin
gitbench --prepare "sandbox_repo empty_standard_repo &&
create_text_file text_10mb 10485760 &&
flush_disk_cache" \
--chdir "empty_standard_repo" \
hash-object "../text_10mb"