Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/t/perf/p5312-pack-bitmaps-revs.sh # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / t / perf / p5312-pack-bitmaps-revs.sh` 34 lines ยท 745 bytes Raw Blame History 1 #!/bin/sh 2 3 test_description='Tests pack performance using bitmaps (rev index enabled)' 4 . ./perf-lib.sh 5 . "${TEST_DIRECTORY}/perf/lib-bitmap.sh" 6 7 test_lookup_pack_bitmap () { 8 test_expect_success 'start the test from scratch' ' 9 rm -rf * .git 10 ' 11 12 test_perf_large_repo 13 14 test_expect_success 'setup bitmap config' ' 15 git config pack.writebitmaps true 16 ' 17 18 # we need to create the tag up front such that it is covered by the repack and 19 # thus by generated bitmaps. 20 test_expect_success 'create tags' ' 21 git tag --message="tag pointing to HEAD" perf-tag HEAD 22 ' 23 24 test_perf "enable lookup table: $1" ' 25 git config pack.writeBitmapLookupTable '"$1"' 26 ' 27 28 test_pack_bitmap 29 } 30 31 test_lookup_pack_bitmap false 32 test_lookup_pack_bitmap true 33 34 test_done