diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-10-25 23:06:57 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-10-25 23:06:57 (GMT) |
commit | 525705a0a24ec13aedda8acc5f826295f7888c0e (patch) | |
tree | bffd0b31dd718fbbb5e43b3fbb690f0bee11875f /t/perf | |
parent | 162a13b855ee8d920a31d6d1e928cef0f0a18e18 (diff) | |
parent | be79131a537f5f35825c01262b2345097a9d2142 (diff) | |
download | git-525705a0a24ec13aedda8acc5f826295f7888c0e.zip git-525705a0a24ec13aedda8acc5f826295f7888c0e.tar.gz git-525705a0a24ec13aedda8acc5f826295f7888c0e.tar.bz2 |
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/perf')
-rw-r--r-- | t/perf/config | 2 | ||||
-rw-r--r-- | t/perf/perf-lib.sh | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/t/perf/config b/t/perf/config new file mode 100644 index 0000000..b92768b --- /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 a1b5d28..780a740 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. |