]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t/perf: drop p5311's lookup-table permutation
authorTaylor Blau <me@ttaylorr.com>
Tue, 2 Jun 2026 22:21:44 +0000 (18:21 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 2 Jun 2026 23:52:59 +0000 (08:52 +0900)
p5311 measures the cost of serving a fetch from a bitmapped pack and
indexing the resulting pack on the client. Since 761416ef91d
(bitmap-lookup-table: add performance tests for lookup table,
2022-08-14), p5311 effectively runs itself twice: once with the bitmap's
lookup table extension enabled, and again with it disabled.

This comparison has served its useful purpose, as the lookup table is
almost four years old, and the de-facto default in server-side Git
deployments.

A following commit will want to test a different combination (repacking
with and without '--path-walk' instead of the lookup table). Instead of
multiplying the current test count by two again to produce four
variations of `test_fetch_bitmaps()`, drop the lookup table option to
reduce the number of perf tests we run. Retain `test_fetch_bitmaps()`
itself, since we will use this in the future for the new
parameterization.

(As an aside, a future commit outside of this series will adjust the
default value of 'pack.writeBitmapLookupTable' to "true", matching the
de-facto norm for deployments where the existence of bitmap lookup
tables is meaningful. Punt on that to a later series and instead make
the minimal change for now.)

Suggested-by: Derrick Stolee <stolee@gmail.com>
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/perf/p5311-pack-bitmaps-fetch.sh

index 047efb995d647b58edbc2e5326840f09dc99742f..5bea5c64e7b44cdb1d1b5079d827df51bf5e9037 100755 (executable)
@@ -12,7 +12,6 @@ test_fetch_bitmaps () {
 
        test_expect_success 'create bitmapped server repo' '
                git config pack.writebitmaps true &&
-               git config pack.writeBitmapLookupTable '"$1"' &&
                git repack -ad
        '
 
@@ -32,7 +31,7 @@ test_fetch_bitmaps () {
                        } >revs
                '
 
-               test_perf "server $title (lookup=$1)" '
+               test_perf "server $title" '
                        git pack-objects --stdout --revs \
                                        --thin --delta-base-offset \
                                        <revs >tmp.pack
@@ -42,13 +41,12 @@ test_fetch_bitmaps () {
                        test_file_size tmp.pack
                '
 
-               test_perf "client $title (lookup=$1)" '
+               test_perf "client $title" '
                        git index-pack --stdin --fix-thin <tmp.pack
                '
        done
 }
 
-test_fetch_bitmaps true
-test_fetch_bitmaps false
+test_fetch_bitmaps
 
 test_done