Interested in helping open source friends on HP-UX?
[git/mjg.git] / t / perf / p5302-pack-index.sh
blob5ee9211f988dce1f334d796623feccda85641bbe
1 #!/bin/sh
3 test_description="Tests index-pack performance"
5 . ./perf-lib.sh
7 test_perf_large_repo
9 test_expect_success 'repack' '
10 git repack -ad &&
11 PACK=$(ls .git/objects/pack/*.pack | head -n1) &&
12 test -f "$PACK" &&
13 export PACK
16 test_perf 'index-pack 0 threads' '
17 GIT_DIR=t1 git index-pack --threads=1 --stdin < $PACK
20 test_perf 'index-pack 1 thread ' '
21 GIT_DIR=t2 GIT_FORCE_THREADS=1 git index-pack --threads=1 --stdin < $PACK
24 test_perf 'index-pack 2 threads' '
25 GIT_DIR=t3 git index-pack --threads=2 --stdin < $PACK
28 test_perf 'index-pack 4 threads' '
29 GIT_DIR=t4 git index-pack --threads=4 --stdin < $PACK
32 test_perf 'index-pack 8 threads' '
33 GIT_DIR=t5 git index-pack --threads=8 --stdin < $PACK
36 test_perf 'index-pack default number of threads' '
37 GIT_DIR=t6 git index-pack --stdin < $PACK
40 test_done