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:
2
t/perf/config
Normal file
2
t/perf/config
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
[gc]
|
||||||
|
auto = 0
|
@ -27,6 +27,10 @@ TEST_NO_MALLOC_CHECK=t
|
|||||||
|
|
||||||
. ../test-lib.sh
|
. ../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"
|
if test -n "$GIT_TEST_INSTALLED" -a -z "$PERF_SET_GIT_TEST_INSTALLED"
|
||||||
then
|
then
|
||||||
error "Do not use GIT_TEST_INSTALLED with the perf tests.
|
error "Do not use GIT_TEST_INSTALLED with the perf tests.
|
||||||
|
Reference in New Issue
Block a user