Start the 2.48 cycle
[git.git] / t / perf / p5310-pack-bitmaps.sh
blobb1399f1007e6dd8044bf0fc8945e7c5cfaa91673
1 #!/bin/sh
3 test_description='Tests pack performance using bitmaps'
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 # 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"'
34 test_pack_bitmap
37 test_lookup_pack_bitmap false
38 test_lookup_pack_bitmap true
40 test_done