Skip to content

Commit ac49b09

Browse files
committed
Simplify analysis policy passes
1 parent fff930d commit ac49b09

4 files changed

Lines changed: 257 additions & 317 deletions

File tree

benchmarks/chrome.json

Lines changed: 58 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,22 @@
33
"results": [
44
{
55
"label": "Our library: prepare()",
6-
"ms": 9.949999988079071,
6+
"ms": 9.449999988079071,
77
"desc": "One cold 500-text measurement batch"
88
},
99
{
1010
"label": "Our library: layout()",
11-
"ms": 0.09700000002980233,
11+
"ms": 0.09650000005960464,
1212
"desc": "Normalized hot-path throughput per 500-text batch"
1313
},
1414
{
1515
"label": "DOM batch",
16-
"ms": 2.5999999940395355,
16+
"ms": 2.5499999821186066,
1717
"desc": "Single 400→300px batch resize: write all, then read all"
1818
},
1919
{
2020
"label": "DOM interleaved",
21-
"ms": 28.750000029802322,
21+
"ms": 27.650000005960464,
2222
"desc": "Single 400→300px batch resize: write + read per div"
2323
}
2424
],
@@ -30,17 +30,17 @@
3030
},
3131
{
3232
"label": "Our library: layoutWithLines()",
33-
"ms": 0.034999999403953555,
33+
"ms": 0.033749999850988394,
3434
"desc": "60-text shared-corpus batch across widths 180/220/260px; materializes text lines"
3535
},
3636
{
3737
"label": "Our library: walkLineRanges()",
38-
"ms": 0.016250000149011613,
38+
"ms": 0.017499999701976778,
3939
"desc": "60-text shared-corpus batch across widths 180/220/260px; line ranges only, no line text strings"
4040
},
4141
{
4242
"label": "Our library: layoutNextLine()",
43-
"ms": 0.027499999105930328,
43+
"ms": 0.026249999552965163,
4444
"desc": "60-text shared-corpus batch across widths 180/220/260px; streaming line-by-line layout"
4545
}
4646
],
@@ -52,7 +52,7 @@
5252
},
5353
{
5454
"label": "Our library: walkRichInlineLineRanges()",
55-
"ms": 0.014999999850988387,
55+
"ms": 0.013750000298023224,
5656
"desc": "36 rich-text inline flow shared-corpus texts across widths 180/220/260px; per-line ranges with fragment ownership, no text strings"
5757
},
5858
{
@@ -74,39 +74,39 @@
7474
},
7575
{
7676
"label": "Our library: layoutWithLines()",
77-
"ms": 0.2450000002980232,
77+
"ms": 0.24249999970197678,
7878
"desc": "12 generated pre-wrap texts with 320 hard-break chunks across widths 220/260/320px; materializes text lines"
7979
},
8080
{
8181
"label": "Our library: walkLineRanges()",
82-
"ms": 0.12749999910593032,
82+
"ms": 0.125,
8383
"desc": "12 generated pre-wrap texts with 320 hard-break chunks across widths 220/260/320px; line ranges only, no line text strings"
8484
},
8585
{
8686
"label": "Our library: layoutNextLine()",
87-
"ms": 0.5349999994039536,
87+
"ms": 0.5299999982118606,
8888
"desc": "12 generated pre-wrap texts with 320 hard-break chunks across widths 220/260/320px; streaming line-by-line layout"
8989
}
9090
],
9191
"richLongResults": [
9292
{
9393
"label": "Our library: measureLineStats()",
94-
"ms": 0.9112500004470347,
94+
"ms": 0.9137500002980232,
9595
"desc": "8 Arabic long-form texts across widths 240/300/360px; stats only"
9696
},
9797
{
9898
"label": "Our library: layoutWithLines()",
99-
"ms": 3.504999999701977,
99+
"ms": 3.427500000596046,
100100
"desc": "8 Arabic long-form texts across widths 240/300/360px; materializes text lines"
101101
},
102102
{
103103
"label": "Our library: walkLineRanges()",
104-
"ms": 1.4212499998509884,
104+
"ms": 1.4100000008940696,
105105
"desc": "8 Arabic long-form texts across widths 240/300/360px; line ranges only, no line text strings"
106106
},
107107
{
108108
"label": "Our library: layoutNextLine()",
109-
"ms": 3.075,
109+
"ms": 3.05625,
110110
"desc": "8 Arabic long-form texts across widths 240/300/360px; streaming line-by-line layout"
111111
}
112112
],
@@ -121,9 +121,9 @@
121121
"breakableSegments": 0,
122122
"width": 300,
123123
"lineCount": 193,
124-
"analysisMs": 1.600000023841858,
124+
"analysisMs": 1.5,
125125
"measureMs": 2.400000035762787,
126-
"prepareMs": 4,
126+
"prepareMs": 3.899999976158142,
127127
"layoutMs": 0.014000000059604644
128128
},
129129
{
@@ -136,10 +136,10 @@
136136
"breakableSegments": 1,
137137
"width": 300,
138138
"lineCount": 380,
139-
"analysisMs": 3.100000023841858,
140-
"measureMs": 4.800000011920929,
141-
"prepareMs": 8,
142-
"layoutMs": 0.02699999988079071
139+
"analysisMs": 3,
140+
"measureMs": 4.699999988079071,
141+
"prepareMs": 7.800000011920929,
142+
"layoutMs": 0.026500000059604643
143143
},
144144
{
145145
"id": "ko-unsu-joh-eun-nal",
@@ -151,10 +151,10 @@
151151
"breakableSegments": 0,
152152
"width": 300,
153153
"lineCount": 428,
154-
"analysisMs": 1.7999999523162842,
155-
"measureMs": 5.199999988079071,
156-
"prepareMs": 6.899999976158142,
157-
"layoutMs": 0.05299999982118606
154+
"analysisMs": 1.699999988079071,
155+
"measureMs": 4.800000011920929,
156+
"prepareMs": 6.599999964237213,
157+
"layoutMs": 0.0525
158158
},
159159
{
160160
"id": "ko-sonagi",
@@ -167,8 +167,8 @@
167167
"width": 300,
168168
"lineCount": 332,
169169
"analysisMs": 1.300000011920929,
170-
"measureMs": 4.100000023841858,
171-
"prepareMs": 5.5,
170+
"measureMs": 3.900000035762787,
171+
"prepareMs": 5.200000047683716,
172172
"layoutMs": 0.04
173173
},
174174
{
@@ -181,10 +181,10 @@
181181
"breakableSegments": 2,
182182
"width": 300,
183183
"lineCount": 626,
184-
"analysisMs": 4.800000011920929,
185-
"measureMs": 8.199999988079071,
186-
"prepareMs": 13,
187-
"layoutMs": 0.04199999988079071
184+
"analysisMs": 4.600000023841858,
185+
"measureMs": 7.699999988079071,
186+
"prepareMs": 12.5,
187+
"layoutMs": 0.0425
188188
},
189189
{
190190
"id": "zh-guxiang",
@@ -196,10 +196,10 @@
196196
"breakableSegments": 14,
197197
"width": 300,
198198
"lineCount": 375,
199-
"analysisMs": 2.900000035762787,
200-
"measureMs": 5.099999964237213,
201-
"prepareMs": 8.100000023841858,
202-
"layoutMs": 0.025999999940395355
199+
"analysisMs": 2.799999952316284,
200+
"measureMs": 4.899999916553497,
201+
"prepareMs": 7.599999964237213,
202+
"layoutMs": 0.025499999821186066
203203
},
204204
{
205205
"id": "th-nithan-vetal-story-1",
@@ -211,10 +211,10 @@
211211
"breakableSegments": 8087,
212212
"width": 300,
213213
"lineCount": 1024,
214-
"analysisMs": 6.699999988079071,
215-
"measureMs": 4.399999916553497,
216-
"prepareMs": 11.099999964237213,
217-
"layoutMs": 0.0575
214+
"analysisMs": 6.400000035762787,
215+
"measureMs": 4.300000071525574,
216+
"prepareMs": 10.699999988079071,
217+
"layoutMs": 0.058499999940395356
218218
},
219219
{
220220
"id": "my-cunning-heron-teacher",
@@ -256,10 +256,10 @@
256256
"breakableSegments": 2916,
257257
"width": 300,
258258
"lineCount": 352,
259-
"analysisMs": 2,
260-
"measureMs": 2.5000000596046448,
261-
"prepareMs": 4.600000023841858,
262-
"layoutMs": 0.025
259+
"analysisMs": 1.899999976158142,
260+
"measureMs": 2.400000035762787,
261+
"prepareMs": 4.300000011920929,
262+
"layoutMs": 0.025499999821186066
263263
},
264264
{
265265
"id": "km-prachum-reuang-preng-khmer-volume-7-stories-1-10",
@@ -271,10 +271,10 @@
271271
"breakableSegments": 3541,
272272
"width": 300,
273273
"lineCount": 591,
274-
"analysisMs": 3.900000035762787,
275-
"measureMs": 3.199999988079071,
276-
"prepareMs": 7.099999964237213,
277-
"layoutMs": 0.05650000005960464
274+
"analysisMs": 3.799999952316284,
275+
"measureMs": 3.0000000596046448,
276+
"prepareMs": 6.699999988079071,
277+
"layoutMs": 0.055999999940395354
278278
},
279279
{
280280
"id": "hi-eidgah",
@@ -286,9 +286,9 @@
286286
"breakableSegments": 4089,
287287
"width": 300,
288288
"lineCount": 653,
289-
"analysisMs": 3.100000023841858,
290-
"measureMs": 4.900000035762787,
291-
"prepareMs": 7.900000035762787,
289+
"analysisMs": 2.899999976158142,
290+
"measureMs": 4.500000059604645,
291+
"prepareMs": 7.5,
292292
"layoutMs": 0.044000000059604645
293293
},
294294
{
@@ -301,10 +301,10 @@
301301
"breakableSegments": 1540,
302302
"width": 300,
303303
"lineCount": 2860,
304-
"analysisMs": 4.800000011920929,
305-
"measureMs": 8.100000083446503,
306-
"prepareMs": 13.100000023841858,
307-
"layoutMs": 0.2775
304+
"analysisMs": 4.5,
305+
"measureMs": 8.099999964237213,
306+
"prepareMs": 12.699999988079071,
307+
"layoutMs": 0.27
308308
},
309309
{
310310
"id": "ar-risalat-al-ghufran-part-1",
@@ -316,10 +316,10 @@
316316
"breakableSegments": 18743,
317317
"width": 300,
318318
"lineCount": 2643,
319-
"analysisMs": 13.899999976158142,
320-
"measureMs": 25.800000071525574,
321-
"prepareMs": 41.200000047683716,
322-
"layoutMs": 0.1630000001192093
319+
"analysisMs": 12.199999988079071,
320+
"measureMs": 25.80000001192093,
321+
"prepareMs": 39.69999998807907,
322+
"layoutMs": 0.17299999982118608
323323
}
324324
]
325325
}

0 commit comments

Comments
 (0)