Skip to content

Commit 525705a

Browse files
committed
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
2 parents 162a13b + be79131 commit 525705a

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

t/perf/config

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[gc]
2+
auto = 0

t/perf/perf-lib.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ TEST_NO_MALLOC_CHECK=t
2727

2828
. ../test-lib.sh
2929

30+
unset GIT_CONFIG_NOSYSTEM
31+
GIT_CONFIG_SYSTEM="$TEST_DIRECTORY/perf/config"
32+
export GIT_CONFIG_SYSTEM
33+
3034
if test -n "$GIT_TEST_INSTALLED" -a -z "$PERF_SET_GIT_TEST_INSTALLED"
3135
then
3236
error "Do not use GIT_TEST_INSTALLED with the perf tests.

0 commit comments

Comments
 (0)