perf: amend the grep tests to test grep.threads
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Fri, 29 Dec 2017 22:59:03 +0000 (22:59 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 4 Jan 2018 18:24:48 +0000 (10:24 -0800)
commit7b31b55db18f5348ee62ed283f115544bc1049ac
treea0b1fdfa79a94857a0277a90cf9350f6efd65516
parent1eaabe34fc6f486367a176207420378f587d3b48
perf: amend the grep tests to test grep.threads

Ever since 5b594f457a ("Threaded grep", 2010-01-25) the number of
threads git-grep uses under PTHREADS has been hardcoded to 8, but
there's no performance test to check whether this is an optimal
setting.

Amend the existing tests for the grep engines to support a mode where
this can be tested, e.g.:

    GIT_PERF_GREP_THREADS='1 8 16' GIT_PERF_LARGE_REPO=~/g/linux ./run p782*

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/perf/p7820-grep-engines.sh
t/perf/p7821-grep-engines-fixed.sh