]> git.ipfire.org Git - thirdparty/git.git/commit
t/perf: add iteration setup mechanism to perf-lib
authorNeeraj Singh <neerajsi@microsoft.com>
Tue, 5 Apr 2022 05:20:17 +0000 (22:20 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 6 Apr 2022 20:13:26 +0000 (13:13 -0700)
commit5dccd9155f9e2774176beba3a22c14ca5e3fcdb1
tree2ad783c85f8bae32c291917e34dff07dfc0cbff0
parentd42bab442d7ca6bcc38aefe384e94d4320565b77
t/perf: add iteration setup mechanism to perf-lib

Tests that affect the repo in stateful ways are easier to write if we
can run setup steps outside of the measured portion of perf iteration.

This change adds a "--setup 'setup-script'" parameter to test_perf. To
make invocations easier to understand, I also moved the prerequisites to
a new --prereq parameter.

The setup facility will be used in the upcoming perf tests for batch
mode, but it already helps in some existing tests, like t5302 and t7820.

Signed-off-by: Neeraj Singh <neerajsi@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/perf/p4220-log-grep-engines.sh
t/perf/p4221-log-grep-engines-fixed.sh
t/perf/p5302-pack-index.sh
t/perf/p7519-fsmonitor.sh
t/perf/p7820-grep-engines.sh
t/perf/perf-lib.sh