Sync with Git 2.40.1
[alt-git.git] / t / perf / p5312-pack-bitmaps-revs.sh
blob0684b690af020442847d2ef94162f311e20abc8a
1 #!/bin/sh
3 test_description='Tests pack performance using bitmaps (rev index enabled)'
4 . ./perf-lib.sh
5 . "${TEST_DIRECTORY}/perf/lib-bitmap.sh"
7 test_lookup_pack_bitmap () {
8 test_expect_success 'start the test from scratch' '
9 rm -rf * .git
12 test_perf_large_repo
14 test_expect_success 'setup bitmap config' '
15 git config pack.writebitmaps true &&
16 git config pack.writeReverseIndex true
19 # we need to create the tag up front such that it is covered by the repack and
20 # thus by generated bitmaps.
21 test_expect_success 'create tags' '
22 git tag --message="tag pointing to HEAD" perf-tag HEAD
25 test_perf "enable lookup table: $1" '
26 git config pack.writeBitmapLookupTable '"$1"'
29 test_pack_bitmap
32 test_lookup_pack_bitmap false
33 test_lookup_pack_bitmap true
35 test_done