p4211: explicitly disable renames in no-rename test
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>
Jeff King committed
Jun 22, 2016 at 15:40 UTC
85a727895d6868e98c3f72e25e371dcb867d6b69
1 file changed
+3
-3
t/perf/p4211-line-log.sh
+3
-3
@@ -23,11 +23,11 @@ test_perf 'git log --follow (baseline for -M)' '
23
git log --oneline --follow -- "$file" >/dev/null
24
'
25
26
-test_perf 'git log -L' '
27
- git log -L 1:"$file" >/dev/null
26
+test_perf 'git log -L (renames off)' '
27
+ git log --no-renames -L 1:"$file" >/dev/null
28
'
29
30
-test_perf 'git log -M -L' '
30
+test_perf 'git log -L (renames on)' '
31
git log -M -L 1:"$file" >/dev/null
32
'
33