aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-10-25 16:06:57 -0700
committerJunio C Hamano <gitster@pobox.com>2021-10-25 16:06:57 -0700
commit525705a0a24ec13aedda8acc5f826295f7888c0e (patch)
treebffd0b31dd718fbbb5e43b3fbb690f0bee11875f
parent162a13b855ee8d920a31d6d1e928cef0f0a18e18 (diff)
parentbe79131a537f5f35825c01262b2345097a9d2142 (diff)
downloadgit-525705a0a24ec13aedda8acc5f826295f7888c0e.tar.gz
Merge branch 'rs/disable-gc-during-perf-tests'
Avoid performance measurements from getting ruined by gc and other housekeeping pauses interfering in the middle. * rs/disable-gc-during-perf-tests: perf: disable automatic housekeeping
-rw-r--r--t/perf/config2
-rw-r--r--t/perf/perf-lib.sh4
2 files changed, 6 insertions, 0 deletions
diff --git a/t/perf/config b/t/perf/config
new file mode 100644
index 0000000000..b92768b039
--- /dev/null
+++ b/t/perf/config
@@ -0,0 +1,2 @@
+[gc]
+ auto = 0
diff --git a/t/perf/perf-lib.sh b/t/perf/perf-lib.sh
index a1b5d2804d..780a7402d5 100644
--- a/t/perf/perf-lib.sh
+++ b/t/perf/perf-lib.sh
@@ -27,6 +27,10 @@ TEST_NO_MALLOC_CHECK=t
. ../test-lib.sh
+unset GIT_CONFIG_NOSYSTEM
+GIT_CONFIG_SYSTEM="$TEST_DIRECTORY/perf/config"
+export GIT_CONFIG_SYSTEM
+
if test -n "$GIT_TEST_INSTALLED" -a -z "$PERF_SET_GIT_TEST_INSTALLED"
then
error "Do not use GIT_TEST_INSTALLED with the perf tests.