diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2022-02-22 22:00:37 -0500 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2022-02-27 23:44:19 -0500 |
commit | 93037bab1c6758c7939d16ea59b0e434e5ddea86 (patch) | |
tree | 0d555af7e23115becdc2f8707b105b60ca4fbbba /tests/benchmarks/hash-object__text_cached_100kb | |
parent | e48bb3b708d75dc0a41590543a5f844509d87d8e (diff) | |
download | libgit2-93037bab1c6758c7939d16ea59b0e434e5ddea86.tar.gz |
tests: add benchmark tests
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.
Diffstat (limited to 'tests/benchmarks/hash-object__text_cached_100kb')
-rwxr-xr-x | tests/benchmarks/hash-object__text_cached_100kb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/benchmarks/hash-object__text_cached_100kb b/tests/benchmarks/hash-object__text_cached_100kb new file mode 100755 index 000000000..7c2a84125 --- /dev/null +++ b/tests/benchmarks/hash-object__text_cached_100kb @@ -0,0 +1,7 @@ +#!/bin/bash -e + +. "$(dirname "$0")/benchmark_helpers.sh" + +gitbench --prepare "create_text_file text_100kb 102400" \ + --warmup 5 \ + hash-object "text_100kb" |