From: René Scharfe Date: Sat, 13 May 2017 16:02:32 +0000 (+0200) Subject: p0004: use test_perf X-Git-Tag: v2.13.2~19^2~2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/48a6ace8f5a504cea47d4058744982f2bfb81f2f p0004: use test_perf The perf test suite (more specifically: t/perf/aggregate.perl) requires each test script to write test results into a file, otherwise it aborts when aggregating. Add actual performance tests with test_perf to allow p0004 to be run together with other perf scripts. Calibrate the value for the parameter --count based on the size of the test repository, in order to get meaningful results with smaller repos yet still be able to finish the script against huge ones without having to wait for hours. Signed-off-by: Rene Scharfe Acked-by: Jeff Hostetler Signed-off-by: Junio C Hamano --- diff --git a/t/perf/p0004-lazy-init-name-hash.sh b/t/perf/p0004-lazy-init-name-hash.sh index 576bdc3c4e..d30c32f97b 100755 --- a/t/perf/p0004-lazy-init-name-hash.sh +++ b/t/perf/p0004-lazy-init-name-hash.sh @@ -18,4 +18,40 @@ test_expect_success 'multithreaded should be faster' ' test-lazy-init-name-hash --perf >out.perf ' +test_expect_success 'calibrate' ' + entries=$(wc -l