[PATCH 09/25] midx perf: add a perf test for multi-pack-index
- From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- Date
- Jun 23, 2021, 17:48 UTC
- Message-ID
- <patch-09.25-c7a51927cad-20210623T155626Z-avarab@gmail.com>
- In-Reply-To
- <cover-00.25-00000000000-20210623T155626Z-avarab@gmail.com>
Add a basic write and verify performance test for the multi-pack-index command.
The reason for doing the "write" also in a "test_expect_success" is to be friendly to skipping the "write" test as a perf test (which would run N times) but still being guaranteed to have a midx to verify by the time we get to the "verify" test.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> --- t/perf/p5319-multi-pack-index.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 t/perf/p5319-multi-pack-index.sh
diff --git a/t/perf/p5319-multi-pack-index.sh b/t/perf/p5319-multi-pack-index.sh new file mode 100755 index 00000000000..39769602ab7 --- /dev/null +++ b/t/perf/p5319-multi-pack-index.sh @@ -0,0 +1,21 @@ +#!/bin/sh + +test_description='Test midx performance' + +. ./perf-lib.sh + +test_perf_large_repo + +test_expect_success 'setup multi-pack-index' ' + git multi-pack-index write +' + +test_perf 'midx write' ' + git multi-pack-index write +' + +test_perf 'midx verify' ' + git multi-pack-index verify +' + +test_done
-- 2.32.0.599.g3967b4fa4ac