p4211: explicitly disable renames in no-rename test
authorJeff King <peff@peff.net>
Wed, 22 Jun 2016 19:40:51 +0000 (15:40 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 22 Jun 2016 20:47:55 +0000 (13:47 -0700)
p4211 tests line-log performance both with and without "-M".
In v2.9.0, the case without "-M" appears to have regressed
badly, but that is only because we flipped on renames by
default.

Let's have the test explicitly disable renames to get
consistent timings (and to match the presumed intent of the
test, which is to see the effects with and without renames).

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/perf/p4211-line-log.sh
index 3d074b0e413a0cb5b3df58296385cfdfbefbcaf7..b7ff68d4fa3de5559af672795191a0b81deaa4f8 100755 (executable)
@@ -23,11 +23,11 @@ test_perf 'git log --follow (baseline for -M)' '
        git log --oneline --follow -- "$file" >/dev/null
 '
 
-test_perf 'git log -L' '
-       git log -L 1:"$file" >/dev/null
+test_perf 'git log -L (renames off)' '
+       git log --no-renames -L 1:"$file" >/dev/null
 '
 
-test_perf 'git log -M -L' '
+test_perf 'git log -L (renames on)' '
        git log -M -L 1:"$file" >/dev/null
 '