interplane.Get Omega
Read in your language

git

[Ported from github.com/git/git] Sync with Git 2.56.1

Brought by drakestapleton

branch master Branches Tags History

git / t / perf / p5333-pseudo-merge-bitmaps.sh

32 lines · 784 bytes Raw Blame History
1#!/bin/sh
2
3test_description='pseudo-merge bitmaps'
4. ./perf-lib.sh
5
6test_perf_large_repo
7
8test_expect_success 'setup' '
9 git \
10 -c bitmapPseudoMerge.all.pattern="refs/" \
11 -c bitmapPseudoMerge.all.threshold=now \
12 -c bitmapPseudoMerge.all.stableThreshold=never \
13 -c bitmapPseudoMerge.all.maxMerges=64 \
14 -c pack.writeBitmapLookupTable=true \
15 repack -adb
16'
17
18test_perf 'git rev-list --count --all --objects (no bitmaps)' '
19 git rev-list --objects --all
20'
21
22test_perf 'git rev-list --count --all --objects (no pseudo-merges)' '
23 GIT_TEST_USE_PSEUDO_MERGES=0 \
24 git rev-list --objects --all --use-bitmap-index
25'
26
27test_perf 'git rev-list --count --all --objects (with pseudo-merges)' '
28 GIT_TEST_USE_PSEUDO_MERGES=1 \
29 git rev-list --objects --all --use-bitmap-index
30'
31
32test_done