perf: disable automatic housekeeping
commitbe79131a537f5f35825c01262b2345097a9d2142
authorRené Scharfe <l.s.r@web.de>
Sat, 9 Oct 2021 14:39:24 +0000 (9 16:39 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 11 Oct 2021 20:17:58 +0000 (11 13:17 -0700)
tree5e374e1b03efb7d85a4bfb1080e98c17a4e7c8e9
parent225bc32a989d7a22fa6addafd4ce7dcd04675dbf
perf: disable automatic housekeeping

Turn off automatic background maintenance for perf tests by default to
avoid interference with performance measurements.  Do that by using the
new file t/perf/config and using it as the system config file for perf
tests.  Future tests intended to measure gc performance can override
the setting locally or call "git gc" explicitly.

This fixes a breakage in p2000 caused by gc automatically emptying the
reflog due its fake dates from 2005 being older than 90 days.

Helped-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/perf/config [new file with mode: 0644]
t/perf/perf-lib.sh