summaryrefslogtreecommitdiff
path: root/tests/benchmarks/hash-object__text_cached_100kb
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2022-02-22 22:00:37 -0500
committerEdward Thomson <ethomson@edwardthomson.com>2022-02-27 23:44:19 -0500
commit93037bab1c6758c7939d16ea59b0e434e5ddea86 (patch)
tree0d555af7e23115becdc2f8707b105b60ca4fbbba /tests/benchmarks/hash-object__text_cached_100kb
parente48bb3b708d75dc0a41590543a5f844509d87d8e (diff)
downloadlibgit2-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-xtests/benchmarks/hash-object__text_cached_100kb7
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"