Skip to content

Commit 77be59f

Browse files
author
i2cjak
committed
Re-render harness: a real paste, hub views gated, budgets after #3/#5/#8
- Paste goes through the clipboard and Ctrl+V: one input event. Playwright's insertText typed a multi-line text as two input events a line (799 for 20 KB), which no paste does; the 4-7 s measured before was mostly that. - Pastes run after the scroll and stress windows (a slow one no longer leaves the page busy under them). - hubViews (replies to view.* requests) gated per scenario: counts are stable where sizes are not; bytes budgeted 2x + 64 KB until the hub's view deltas land. - budgets.json from this branch's synthetic run.
1 parent 26c3159 commit 77be59f

2 files changed

Lines changed: 177 additions & 112 deletions

File tree

‎test/tools/rerender/budgets.json‎

Lines changed: 151 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -1,167 +1,218 @@
11
{
22
"open": {
3-
"mutations": 485,
3+
"mutations": 162,
44
"recreatedIdentical": 27,
5-
"touchedUnchangedRows": 5,
5+
"touchedUnchangedRows": 2,
66
"outsideRecords": 2,
7-
"wsInBytes": 504066,
7+
"wsInBytes": 872866,
88
"renderFull": 9,
99
"domPatch": 7595,
1010
"loading": 0,
11-
"blankFrames": 2
11+
"blankFrames": 2,
12+
"hubViews": 6
1213
},
1314
"idle": {
14-
"mutations": 55,
15+
"mutations": 2,
1516
"recreatedIdentical": 2,
16-
"touchedUnchangedRows": 25,
17-
"outsideRecords": 55,
18-
"wsInBytes": 57946,
19-
"renderFull": 4,
20-
"domPatch": 1534,
17+
"touchedUnchangedRows": 2,
18+
"outsideRecords": 2,
19+
"wsInBytes": 65536,
20+
"renderFull": 2,
21+
"domPatch": 2,
2122
"loading": 0,
22-
"blankFrames": 2
23+
"blankFrames": 2,
24+
"hubViews": 2
2325
},
2426
"type1": {
25-
"mutations": 117,
27+
"mutations": 14,
2628
"recreatedIdentical": 2,
27-
"touchedUnchangedRows": 25,
28-
"outsideRecords": 117,
29-
"wsInBytes": 168034,
29+
"touchedUnchangedRows": 2,
30+
"outsideRecords": 14,
31+
"wsInBytes": 334662,
3032
"renderFull": 5,
3133
"domPatch": 3065,
3234
"loading": 0,
33-
"blankFrames": 2
35+
"blankFrames": 2,
36+
"hubViews": 4
3437
},
3538
"type1b": {
36-
"mutations": 112,
39+
"mutations": 7,
3740
"recreatedIdentical": 2,
38-
"touchedUnchangedRows": 25,
39-
"outsideRecords": 112,
40-
"wsInBytes": 168036,
41+
"touchedUnchangedRows": 2,
42+
"outsideRecords": 7,
43+
"wsInBytes": 334666,
4144
"renderFull": 5,
4245
"domPatch": 3065,
4346
"loading": 0,
44-
"blankFrames": 2
47+
"blankFrames": 2,
48+
"hubViews": 4
4549
},
4650
"burst": {
47-
"mutations": 1531,
51+
"mutations": 9,
4852
"recreatedIdentical": 2,
49-
"touchedUnchangedRows": 25,
50-
"outsideRecords": 1531,
51-
"wsInBytes": 168109,
52-
"renderFull": 39,
53-
"domPatch": 44409,
54-
"loading": 0,
55-
"blankFrames": 2
56-
},
57-
"paste": {
58-
"mutations": 399,
59-
"recreatedIdentical": 17,
60-
"touchedUnchangedRows": 16,
61-
"outsideRecords": 399,
62-
"wsInBytes": 213434,
63-
"renderFull": 6,
64-
"domPatch": 4505,
53+
"touchedUnchangedRows": 2,
54+
"outsideRecords": 9,
55+
"wsInBytes": 334782,
56+
"renderFull": 5,
57+
"domPatch": 3065,
6558
"loading": 0,
66-
"blankFrames": 2
59+
"blankFrames": 2,
60+
"hubViews": 4
6761
},
6862
"scroll-up": {
69-
"mutations": 15485,
70-
"recreatedIdentical": 389,
63+
"mutations": 2269,
64+
"recreatedIdentical": 411,
7165
"touchedUnchangedRows": 2,
72-
"outsideRecords": 305,
73-
"wsInBytes": 1161691,
74-
"renderFull": 44,
75-
"domPatch": 53154,
66+
"outsideRecords": 75,
67+
"wsInBytes": 1925310,
68+
"renderFull": 27,
69+
"domPatch": 31795,
7670
"loading": 0,
77-
"blankFrames": 2
71+
"blankFrames": 2,
72+
"hubViews": 27
7873
},
7974
"scroll-down": {
80-
"mutations": 4627,
81-
"recreatedIdentical": 645,
75+
"mutations": 1380,
76+
"recreatedIdentical": 644,
77+
"touchedUnchangedRows": 17,
78+
"outsideRecords": 74,
79+
"wsInBytes": 1833240,
80+
"renderFull": 26,
81+
"domPatch": 31339,
82+
"loading": 0,
83+
"blankFrames": 2,
84+
"hubViews": 26
85+
},
86+
"stress-up": {
87+
"mutations": 1549,
88+
"recreatedIdentical": 217,
8289
"touchedUnchangedRows": 17,
83-
"outsideRecords": 225,
84-
"wsInBytes": 1162315,
90+
"outsideRecords": 2,
91+
"wsInBytes": 2590076,
92+
"renderFull": 29,
93+
"domPatch": 34424,
94+
"loading": 0,
95+
"blankFrames": 2,
96+
"hubViews": 29
97+
},
98+
"stress-down": {
99+
"mutations": 1981,
100+
"recreatedIdentical": 842,
101+
"touchedUnchangedRows": 15,
102+
"outsideRecords": 2,
103+
"wsInBytes": 2155078,
85104
"renderFull": 27,
86-
"domPatch": 32927,
105+
"domPatch": 32281,
87106
"loading": 0,
88-
"blankFrames": 2
107+
"blankFrames": 152,
108+
"hubViews": 27
89109
},
90-
"clock": {
91-
"mutations": 104,
92-
"recreatedIdentical": 2,
93-
"touchedUnchangedRows": 47,
94-
"outsideRecords": 104,
95-
"wsInBytes": 166969,
110+
"paste": {
111+
"mutations": 124,
112+
"recreatedIdentical": 47,
113+
"touchedUnchangedRows": 7,
114+
"outsideRecords": 124,
115+
"wsInBytes": 250722,
116+
"renderFull": 6,
117+
"domPatch": 4537,
118+
"loading": 0,
119+
"blankFrames": 2,
120+
"hubViews": 5
121+
},
122+
"pastebig": {
123+
"mutations": 87,
124+
"recreatedIdentical": 36,
125+
"touchedUnchangedRows": 2,
126+
"outsideRecords": 2,
127+
"wsInBytes": 65590,
96128
"renderFull": 4,
97129
"domPatch": 1622,
98130
"loading": 0,
99-
"blankFrames": 2
131+
"blankFrames": 2,
132+
"hubViews": 2
133+
},
134+
"clock": {
135+
"mutations": 2,
136+
"recreatedIdentical": 2,
137+
"touchedUnchangedRows": 2,
138+
"outsideRecords": 2,
139+
"wsInBytes": 65536,
140+
"renderFull": 2,
141+
"domPatch": 2,
142+
"loading": 0,
143+
"blankFrames": 2,
144+
"hubViews": 2
100145
},
101146
"bg-stream": {
102-
"mutations": 1631,
147+
"mutations": 2,
103148
"recreatedIdentical": 2,
104-
"touchedUnchangedRows": 47,
105-
"outsideRecords": 1582,
106-
"wsInBytes": 1641207,
107-
"renderFull": 25,
108-
"domPatch": 27632,
149+
"touchedUnchangedRows": 2,
150+
"outsideRecords": 2,
151+
"wsInBytes": 69686,
152+
"renderFull": 2,
153+
"domPatch": 2,
109154
"loading": 0,
110-
"blankFrames": 2
155+
"blankFrames": 2,
156+
"hubViews": 2
111157
},
112158
"send": {
113-
"mutations": 326,
114-
"recreatedIdentical": 25,
115-
"touchedUnchangedRows": 25,
159+
"mutations": 10,
160+
"recreatedIdentical": 4,
161+
"touchedUnchangedRows": 2,
116162
"outsideRecords": 2,
117-
"wsInBytes": 167939,
118-
"renderFull": 5,
119-
"domPatch": 3080,
163+
"wsInBytes": 65776,
164+
"renderFull": 2,
165+
"domPatch": 2,
120166
"loading": 0,
121-
"blankFrames": 2
167+
"blankFrames": 2,
168+
"hubViews": 2
122169
},
123170
"stream": {
124-
"mutations": 3437,
125-
"recreatedIdentical": 49,
126-
"touchedUnchangedRows": 24,
171+
"mutations": 2,
172+
"recreatedIdentical": 2,
173+
"touchedUnchangedRows": 2,
127174
"outsideRecords": 2,
128-
"wsInBytes": 3241047,
129-
"renderFull": 57,
130-
"domPatch": 66482,
175+
"wsInBytes": 65596,
176+
"renderFull": 2,
177+
"domPatch": 2,
131178
"loading": 0,
132-
"blankFrames": 2
179+
"blankFrames": 2,
180+
"hubViews": 2
133181
},
134182
"toolgroup": {
135-
"mutations": 4425,
136-
"recreatedIdentical": 95,
137-
"touchedUnchangedRows": 22,
183+
"mutations": 12,
184+
"recreatedIdentical": 5,
185+
"touchedUnchangedRows": 2,
138186
"outsideRecords": 2,
139-
"wsInBytes": 4105801,
140-
"renderFull": 72,
141-
"domPatch": 86830,
187+
"wsInBytes": 66064,
188+
"renderFull": 2,
189+
"domPatch": 2,
142190
"loading": 0,
143-
"blankFrames": 2
191+
"blankFrames": 2,
192+
"hubViews": 2
144193
},
145194
"switch-away": {
146-
"mutations": 789,
147-
"recreatedIdentical": 10,
148-
"touchedUnchangedRows": 5,
195+
"mutations": 287,
196+
"recreatedIdentical": 39,
197+
"touchedUnchangedRows": 2,
149198
"outsideRecords": 2,
150-
"wsInBytes": 494284,
199+
"wsInBytes": 872044,
151200
"renderFull": 9,
152-
"domPatch": 7674,
201+
"domPatch": 9105,
153202
"loading": 0,
154-
"blankFrames": 2
203+
"blankFrames": 2,
204+
"hubViews": 7
155205
},
156206
"switch-back": {
157-
"mutations": 1532,
158-
"recreatedIdentical": 10,
159-
"touchedUnchangedRows": 5,
207+
"mutations": 226,
208+
"recreatedIdentical": 36,
209+
"touchedUnchangedRows": 2,
160210
"outsideRecords": 2,
161-
"wsInBytes": 335320,
162-
"renderFull": 11,
163-
"domPatch": 10735,
211+
"wsInBytes": 871232,
212+
"renderFull": 10,
213+
"domPatch": 9236,
164214
"loading": 0,
165-
"blankFrames": 2
215+
"blankFrames": 2,
216+
"hubViews": 7
166217
}
167218
}

0 commit comments

Comments
 (0)