Raw
1 #!/bin/sh
2
3 test_description='Tests listing object info performance'
4 . ./perf-lib.sh
5
6 test_perf_large_repo
7
8 test_perf 'cat-file --batch-check' '
9 git cat-file --batch-all-objects --batch-check
10 '
11
12 test_perf 'list all objects (sorted)' '
13 git cat-file --batch-all-objects --batch-check="%(objectname)"
14 '
15
16 test_perf 'list all objects (unsorted)' '
17 git cat-file --batch-all-objects --batch-check="%(objectname)" \
18 --unordered
19 '
20
21 test_perf 'list blobs' '
22 git cat-file --batch-all-objects --batch-check="%(objectname)" \
23 --unordered --filter=object:type=blob
24 '
25
26 test_done