path: root/t/perf/
diff options
authorJeff King <>2020-08-21 17:53:39 (GMT)
committerJunio C Hamano <>2020-08-21 19:02:36 (GMT)
commit47274251a4fa15846644f3a3cb9f2fae1fcea644 (patch)
tree7a7e479a32f870bc87fb154af70ddc6a4b6a365e /t/perf/
parent47ae905ffb98cc4d4fd90083da6bc8dab55d9ecc (diff)
p5302: disable thread-count parameter tests by default
The primary function of the perf suite is to detect regressions (or improvements) between versions of Git. The only numbers we show a direct comparison for are timings between the same test run on two different versions. However, it can sometimes be used to collect other information. For instance, p5302 runs the same index-pack operation with different thread counts. The output doesn't directly compare these, but anybody interested in working on index-pack can manually compare the results. For a normal regression run of the full perf-suite, though, this incurs a significant cost to generate numbers nobody will actually look at; about 25% of the total time of the test suite is spent in p5302. And the low-thread-count runs are the most expensive part of it, since they're (unsurprisingly) not using as many threads. Let's skip these tests by default, but make it possible for people working on index-pack to still run them by setting an environment variable. Rather than make this specific to p5302, let's introduce a generic mechanism. This makes it possible to run the full suite with every possible test if somebody really wants to burn some CPU. Signed-off-by: Jeff King <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 't/perf/')
1 files changed, 2 insertions, 0 deletions
diff --git a/t/perf/ b/t/perf/
index 13e3893..821581a 100644
--- a/t/perf/
+++ b/t/perf/
@@ -245,3 +245,5 @@ test_at_end_hook_ () {
test_export () {
export "$@"
+test_lazy_prereq PERF_EXTRA 'test_bool_env GIT_PERF_EXTRA false'