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
This commit is contained in:
Junio C Hamano 2021-10-25 16:06:57 -07:00
commit 525705a0a2
2 changed files with 6 additions and 0 deletions

2
t/perf/config Normal file
View file

@ -0,0 +1,2 @@
[gc]
auto = 0

View file

@ -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.