summaryrefslogtreecommitdiff
path: root/t/helper/test-tool.c
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2018-11-14 04:09:34 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-11-14 07:54:52 (GMT)
commit37649b7f809f14b78d178c32e4d8333243f1f74e (patch)
treeddb1b37d415ddeb110692d936349c020e2d1ec3e /t/helper/test-tool.c
parenta2ce0a752600a44979da94b19aa1b367c6850bd7 (diff)
downloadgit-37649b7f809f14b78d178c32e4d8333243f1f74e.zip
git-37649b7f809f14b78d178c32e4d8333243f1f74e.tar.gz
git-37649b7f809f14b78d178c32e4d8333243f1f74e.tar.bz2
t/helper: add a test helper to compute hash speed
Add a utility (which is less for the testsuite and more for developers) that can compute hash speeds for whatever hash algorithms are implemented. This allows developers to test their personal systems to determine the performance characteristics of various algorithms. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/helper/test-tool.c')
-rw-r--r--t/helper/test-tool.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/helper/test-tool.c b/t/helper/test-tool.c
index 6b5836d..e009c81 100644
--- a/t/helper/test-tool.c
+++ b/t/helper/test-tool.c
@@ -20,6 +20,7 @@ static struct test_cmd cmds[] = {
{ "example-decorate", cmd__example_decorate },
{ "genrandom", cmd__genrandom },
{ "hashmap", cmd__hashmap },
+ { "hash-speed", cmd__hash_speed },
{ "index-version", cmd__index_version },
{ "json-writer", cmd__json_writer },
{ "lazy-init-name-hash", cmd__lazy_init_name_hash },