summaryrefslogtreecommitdiff
path: root/t/perf
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-03-23 14:09:31 -0700
committerJunio C Hamano <gitster@pobox.com>2022-03-23 14:09:31 -0700
commit889860e1ad85340896f404155f2f16621ca6989e (patch)
tree1e485ce6b2374061933a6d63cea345b12e489537 /t/perf
parent83510335c6f6c26089aaba8e40ef063ee68fa840 (diff)
parenteb54a3391bb3bdd6806ebffc21281eae8d9c0dca (diff)
downloadgit-889860e1ad85340896f404155f2f16621ca6989e.tar.gz
Merge branch 'jc/cat-file-batch-default-format-optim'
Optimize away strbuf_expand() call with a hardcoded formatting logic specific for the default format in the --batch and --batch-check options of "git cat-file". * jc/cat-file-batch-default-format-optim: cat-file: skip expanding default format
Diffstat (limited to 't/perf')
-rwxr-xr-xt/perf/p1006-cat-file.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/t/perf/p1006-cat-file.sh b/t/perf/p1006-cat-file.sh
new file mode 100755
index 0000000000..dcd8015379
--- /dev/null
+++ b/t/perf/p1006-cat-file.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+test_description='Tests listing object info performance'
+. ./perf-lib.sh
+
+test_perf_large_repo
+
+test_perf 'cat-file --batch-check' '
+ git cat-file --batch-all-objects --batch-check
+'
+
+test_done