summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2021-10-25 16:06:57 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-10-25 16:06:57 -0700
commit525705a0a24ec13aedda8acc5f826295f7888c0e (patch)
treebffd0b31dd718fbbb5e43b3fbb690f0bee11875f /t
parentMerge branch 'jt/no-abuse-alternate-odb-for-submodules' (diff)
parentperf: disable automatic housekeeping (diff)
downloadtgif-525705a0a24ec13aedda8acc5f826295f7888c0e.tar.xz
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
Diffstat (limited to 't')
-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.