p0004: use test_perf
commit48a6ace8f5a504cea47d4058744982f2bfb81f2f
authorRené Scharfe <l.s.r@web.de>
Sat, 13 May 2017 16:02:32 +0000 (13 18:02 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 16 May 2017 02:11:48 +0000 (16 11:11 +0900)
tree950ee3395697988af9638d247cab34382efce2ef
parente1ebb569c61d17e2f721f32084fcc7b7394b1692
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 <l.s.r@web.de>
Acked-by: Jeff Hostetler <git@jeffhostetler.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/perf/p0004-lazy-init-name-hash.sh