Files
libgit2/tests/benchmarks/hash-object__write_text_nocache_10mb
Edward Thomson 771ec303d4 benchmarks: introduce --admin flag for admin benchmarks
Some benchmarks require administrative privileges, namely the ones that
blow up the disk cache. Don't run them by default, to avoid obnoxious
sudo password prompts, etc. Users can specify `--admin` to run them.
2025-03-02 20:46:38 +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"