Browse Source

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
maint
Junio C Hamano 3 years ago
parent
commit
525705a0a2
  1. 2
      t/perf/config
  2. 4
      t/perf/perf-lib.sh

2
t/perf/config

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

4
t/perf/perf-lib.sh

@ -27,6 +27,10 @@ TEST_NO_MALLOC_CHECK=t @@ -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.

Loading…
Cancel
Save