summaryrefslogtreecommitdiff
path: root/t/perf/p4211-line-log.sh
diff options
context:
space:
mode:
authorDerrick Stolee <dstolee@microsoft.com>2017-10-08 18:49:39 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-10-13 00:25:45 (GMT)
commit1af8b013099329336343f89c871f6be2cfbec4f1 (patch)
tree2dd7282edb1053f6cdc39313e0e07c3bae55fd6b /t/perf/p4211-line-log.sh
parent6867272d5b5615bd74ec97bf35b4c4a8d9fe3a51 (diff)
downloadgit-1af8b013099329336343f89c871f6be2cfbec4f1.zip
git-1af8b013099329336343f89c871f6be2cfbec4f1.tar.gz
git-1af8b013099329336343f89c871f6be2cfbec4f1.tar.bz2
p4211-line-log.sh: add log --online --raw --parents perf test
Add a new perf test for testing the performance of log while computing OID abbreviations. Using --oneline --raw and --parents options maximizes the number of OIDs to abbreviate while still spending some time computing diffs. Signed-off-by: Derrick Stolee <dstolee@microsoft.com> Reviewed-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/perf/p4211-line-log.sh')
-rwxr-xr-xt/perf/p4211-line-log.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/t/perf/p4211-line-log.sh b/t/perf/p4211-line-log.sh
index b7ff68d..e0ed059 100755
--- a/t/perf/p4211-line-log.sh
+++ b/t/perf/p4211-line-log.sh
@@ -31,4 +31,8 @@ test_perf 'git log -L (renames on)' '
git log -M -L 1:"$file" >/dev/null
'
+test_perf 'git log --oneline --raw --parents' '
+ git log --oneline --raw --parents >/dev/null
+'
+
test_done