mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-22 06:26:26 +00:00
Add a benchmark test suite that wraps hyperfine and is suitable for producing data about test runs of a CLI or A/B testing CLIs.
10 lines
272 B
Bash
Executable File
10 lines
272 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
. "$(dirname "$0")/benchmark_helpers.sh"
|
|
|
|
gitbench --prepare "sandbox_repo empty_standard_repo &&
|
|
create_text_file text_100kb 102400" \
|
|
--warmup 5 \
|
|
--chdir "empty_standard_repo" \
|
|
hash-object "../text_100kb"
|