3 test_description
='Tests pack performance using bitmaps'
5 .
"${TEST_DIRECTORY}/perf/lib-bitmap.sh"
7 test_lookup_pack_bitmap
() {
8 test_expect_success
'start the test from scratch' '
14 # note that we do everything through config,
15 # since we want to be able to compare bitmap-aware
16 # git versus non-bitmap git
18 # We intentionally use the deprecated pack.writebitmaps
19 # config so that we can test against older versions of git.
20 test_expect_success
'setup bitmap config' '
21 git config pack.writebitmaps true
24 # we need to create the tag up front such that it is covered by the repack and
25 # thus by generated bitmaps.
26 test_expect_success
'create tags' '
27 git tag --message="tag pointing to HEAD" perf-tag HEAD
30 test_perf
"enable lookup table: $1" '
31 git config pack.writeBitmapLookupTable '"$1"'
37 test_lookup_pack_bitmap false
38 test_lookup_pack_bitmap true