##// END OF EJS Templates
test: update test-sparse-revlog.t output...
marmoute -
r41962:2e92624c stable
parent child Browse files
Show More
@@ -1,1 +1,1
1 fe0d0bb5979de50f4fed71bb9437764d
1 403f5c247ad7cf58d3fad247a6b5e731
@@ -1,134 +1,134
1 1 ====================================
2 2 Test delta choice with sparse revlog
3 3 ====================================
4 4
5 5 Sparse-revlog usually shows the most gain on Manifest. However, it is simpler
6 6 to general an appropriate file, so we test with a single file instead. The
7 7 goal is to observe intermediate snapshot being created.
8 8
9 9 We need a large enough file. Part of the content needs to be replaced
10 10 repeatedly while some of it changes rarely.
11 11
12 12 $ bundlepath="$TESTDIR/artifacts/cache/big-file-churn.hg"
13 13
14 14 $ expectedhash=`cat "$bundlepath".md5`
15 15 $ if [ ! -f "$bundlepath" ]; then
16 16 > echo 'skipped: missing artifact, run "'"$TESTDIR"'/artifacts/scripts/generate-churning-bundle.py"'
17 17 > exit 80
18 18 > fi
19 19 $ currenthash=`f -M "$bundlepath" | cut -d = -f 2`
20 20 $ if [ "$currenthash" != "$expectedhash" ]; then
21 21 > echo 'skipped: outdated artifact, md5 "'"$currenthash"'" expected "'"$expectedhash"'" run "'"$TESTDIR"'/artifacts/scripts/generate-churning-bundle.py"'
22 22 > exit 80
23 23 > fi
24 24
25 25 $ cat >> $HGRCPATH << EOF
26 26 > [format]
27 27 > sparse-revlog = yes
28 28 > maxchainlen = 15
29 29 > [storage]
30 30 > revlog.optimize-delta-parent-choice = yes
31 31 > EOF
32 32 $ hg init sparse-repo
33 33 $ cd sparse-repo
34 34 $ hg unbundle $bundlepath
35 35 adding changesets
36 36 adding manifests
37 37 adding file changes
38 38 added 5001 changesets with 5001 changes to 1 files (+89 heads)
39 39 new changesets 9706f5af64f4:d9032adc8114 (5001 drafts)
40 40 (run 'hg heads' to see heads, 'hg merge' to merge)
41 41 $ hg up
42 42 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
43 43 updated to "d9032adc8114: commit #5000"
44 44 89 other heads for branch "default"
45 45
46 46 $ hg log --stat -r 0:3
47 47 changeset: 0:9706f5af64f4
48 48 user: test
49 49 date: Thu Jan 01 00:00:00 1970 +0000
50 50 summary: initial commit
51 51
52 52 SPARSE-REVLOG-TEST-FILE | 10500 ++++++++++++++++++++++++++++++++++++++++++++++
53 53 1 files changed, 10500 insertions(+), 0 deletions(-)
54 54
55 55 changeset: 1:724907deaa5e
56 56 user: test
57 57 date: Thu Jan 01 00:00:00 1970 +0000
58 58 summary: commit #1
59 59
60 60 SPARSE-REVLOG-TEST-FILE | 1068 +++++++++++++++++++++++-----------------------
61 61 1 files changed, 534 insertions(+), 534 deletions(-)
62 62
63 63 changeset: 2:62c41bce3e5d
64 64 user: test
65 65 date: Thu Jan 01 00:00:00 1970 +0000
66 66 summary: commit #2
67 67
68 68 SPARSE-REVLOG-TEST-FILE | 1068 +++++++++++++++++++++++-----------------------
69 69 1 files changed, 534 insertions(+), 534 deletions(-)
70 70
71 71 changeset: 3:348a9cbd6959
72 72 user: test
73 73 date: Thu Jan 01 00:00:00 1970 +0000
74 74 summary: commit #3
75 75
76 76 SPARSE-REVLOG-TEST-FILE | 1068 +++++++++++++++++++++++-----------------------
77 77 1 files changed, 534 insertions(+), 534 deletions(-)
78 78
79 79
80 80 $ f -s .hg/store/data/*.d
81 .hg/store/data/_s_p_a_r_s_e-_r_e_v_l_o_g-_t_e_s_t-_f_i_l_e.d: size=63002924
81 .hg/store/data/_s_p_a_r_s_e-_r_e_v_l_o_g-_t_e_s_t-_f_i_l_e.d: size=65281524
82 82 $ hg debugrevlog *
83 83 format : 1
84 84 flags : generaldelta
85 85
86 86 revisions : 5001
87 87 merges : 625 (12.50%)
88 88 normal : 4376 (87.50%)
89 89 revisions : 5001
90 90 empty : 0 ( 0.00%)
91 91 text : 0 (100.00%)
92 92 delta : 0 (100.00%)
93 snapshot : 374 ( 7.48%)
93 snapshot : 372 ( 7.44%)
94 94 lvl-0 : 4 ( 0.08%)
95 lvl-1 : 23 ( 0.46%)
96 lvl-2 : 63 ( 1.26%)
97 lvl-3 : 118 ( 2.36%)
98 lvl-4 : 166 ( 3.32%)
99 deltas : 4627 (92.52%)
100 revision size : 63002924
101 snapshot : 9888099 (15.69%)
102 lvl-0 : 804262 ( 1.28%)
103 lvl-1 : 1561380 ( 2.48%)
104 lvl-2 : 2096696 ( 3.33%)
105 lvl-3 : 2749539 ( 4.36%)
106 lvl-4 : 2676222 ( 4.25%)
107 deltas : 53114825 (84.31%)
95 lvl-1 : 25 ( 0.50%)
96 lvl-2 : 74 ( 1.48%)
97 lvl-3 : 117 ( 2.34%)
98 lvl-4 : 152 ( 3.04%)
99 deltas : 4629 (92.56%)
100 revision size : 65281524
101 snapshot : 9910992 (15.18%)
102 lvl-0 : 804162 ( 1.23%)
103 lvl-1 : 1816378 ( 2.78%)
104 lvl-2 : 2355855 ( 3.61%)
105 lvl-3 : 2557680 ( 3.92%)
106 lvl-4 : 2376917 ( 3.64%)
107 deltas : 55370532 (84.82%)
108 108
109 109 chunks : 5001
110 110 0x78 (x) : 5001 (100.00%)
111 chunks size : 63002924
112 0x78 (x) : 63002924 (100.00%)
111 chunks size : 65281524
112 0x78 (x) : 65281524 (100.00%)
113 113
114 114 avg chain length : 9
115 115 max chain length : 15
116 max chain reach : 28907121
117 compression ratio : 27
116 max chain reach : 27873839
117 compression ratio : 26
118 118
119 119 uncompressed data size (min/max/avg) : 346468 / 346472 / 346471
120 full revision size (min/max/avg) : 201008 / 201141 / 201065
121 inter-snapshot size (min/max/avg) : 11601 / 157413 / 24550
122 level-1 (min/max/avg) : 13061 / 157413 / 67886
123 level-2 (min/max/avg) : 11674 / 85631 / 33280
124 level-3 (min/max/avg) : 11602 / 42957 / 23301
125 level-4 (min/max/avg) : 11601 / 21475 / 16121
126 delta size (min/max/avg) : 10649 / 105465 / 11479
120 full revision size (min/max/avg) : 200973 / 201094 / 201040
121 inter-snapshot size (min/max/avg) : 11586 / 170448 / 24746
122 level-1 (min/max/avg) : 14021 / 170448 / 72655
123 level-2 (min/max/avg) : 11616 / 81152 / 31835
124 level-3 (min/max/avg) : 11607 / 42813 / 21860
125 level-4 (min/max/avg) : 11586 / 21590 / 15637
126 delta size (min/max/avg) : 10649 / 166014 / 11961
127 127
128 deltas against prev : 3966 (85.71%)
129 where prev = p1 : 3922 (98.89%)
128 deltas against prev : 3839 (82.93%)
129 where prev = p1 : 3839 (100.00%)
130 130 where prev = p2 : 0 ( 0.00%)
131 other : 44 ( 1.11%)
132 deltas against p1 : 611 (13.21%)
133 deltas against p2 : 50 ( 1.08%)
134 deltas against other : 0 ( 0.00%)
131 other : 0 ( 0.00%)
132 deltas against p1 : 634 (13.70%)
133 deltas against p2 : 62 ( 1.34%)
134 deltas against other : 94 ( 2.03%)
General Comments 0
You need to be logged in to leave comments. Login now