mirror of
https://github.com/libgit2/libgit2.git
synced 2026-01-25 02:56:17 +00:00
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.
12 lines
297 B
Bash
Executable File
12 lines
297 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_1kb 1024 &&
|
|
flush_disk_cache" \
|
|
--chdir "empty_standard_repo" \
|
|
hash-object "../text_1kb"
|