summaryrefslogtreecommitdiff
path: root/t/perf/p1006-cat-file.sh
blob: da34ece2428a4dc8fcfe5f31505920a8125bb880 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh

test_description='Tests listing object info performance'
. ./perf-lib.sh

test_perf_large_repo

test_perf 'cat-file --batch-check' '
	git cat-file --batch-all-objects --batch-check
'

test_perf 'list all objects (sorted)' '
	git cat-file --batch-all-objects --batch-check="%(objectname)"
'

test_perf 'list all objects (unsorted)' '
	git cat-file --batch-all-objects --batch-check="%(objectname)" \
		--unordered
'

test_perf 'list blobs' '
	git cat-file --batch-all-objects --batch-check="%(objectname)" \
		--unordered --filter=object:type=blob
'

test_done