git@vger.kernel.org list mirror (unofficial, one of many)
 help / color / mirror / code / Atom feed
63d3bc7cece59937424b3aed6288eca553234665 blob 1860 bytes (raw)

 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
 
# Helper functions for testing bitmap performance; see p5310.

test_full_bitmap () {
	test_perf 'simulated clone' '
		git pack-objects --stdout --all </dev/null >/dev/null
	'

	test_perf 'simulated fetch' '
		have=$(git rev-list HEAD~100 -1) &&
		{
			echo HEAD &&
			echo ^$have
		} | git pack-objects --revs --stdout >/dev/null
	'

	test_perf 'pack to file (bitmap)' '
		git pack-objects --use-bitmap-index --all pack1b </dev/null >/dev/null
	'

	test_perf 'rev-list (commits)' '
		git rev-list --all --use-bitmap-index >/dev/null
	'

	test_perf 'rev-list (objects)' '
		git rev-list --all --use-bitmap-index --objects >/dev/null
	'

	test_perf 'rev-list with tag negated via --not --all (objects)' '
		git rev-list perf-tag --not --all --use-bitmap-index --objects >/dev/null
	'

	test_perf 'rev-list with negative tag (objects)' '
		git rev-list HEAD --not perf-tag --use-bitmap-index --objects >/dev/null
	'

	test_perf 'rev-list count with blob:none' '
		git rev-list --use-bitmap-index --count --objects --all \
			--filter=blob:none >/dev/null
	'

	test_perf 'rev-list count with blob:limit=1k' '
		git rev-list --use-bitmap-index --count --objects --all \
			--filter=blob:limit=1k >/dev/null
	'

	test_perf 'rev-list count with tree:0' '
		git rev-list --use-bitmap-index --count --objects --all \
			--filter=tree:0 >/dev/null
	'

	test_perf 'simulated partial clone' '
		git pack-objects --stdout --all --filter=blob:none </dev/null >/dev/null
	'
}

test_partial_bitmap () {
	test_perf 'clone (partial bitmap)' '
		git pack-objects --stdout --all </dev/null >/dev/null
	'

	test_perf 'pack to file (partial bitmap)' '
		git pack-objects --use-bitmap-index --all pack2b </dev/null >/dev/null
	'

	test_perf 'rev-list with tree filter (partial bitmap)' '
		git rev-list --use-bitmap-index --count --objects --all \
			--filter=tree:0 >/dev/null
	'
}
debug log:

solving 63d3bc7cec ...
found 63d3bc7cec in https://80x24.org/mirrors/git.git

Code repositories for project(s) associated with this inbox:

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).