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 <redacted>
---
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