Skip to content

Commit 70fe0c7

Browse files
size: re-derive the frames / page caps after merging next (#3860)
CI Size run 37671002618 on the merge, caps at CI brotli + 10 B rounded up to 0.01 KB, recorded minified from CI. Against next's caps every one is lower: - frames: eager client 14.02 -> 11.13 KB (33,418 B min) - page: base SC (floor) 45.14 -> 33.92 KB (105,252 B) - page: live SC (floor) 48.91 -> 37.53 KB (117,301 B) The two compiled-page scenarios (new here, not on next) move from this branch's local pre-merge caps to CI's bytes on the merge, which carry next's bytes since the branch's base: - page: compiled base SC 34.88 -> 35.09 KB (109,300 B) - page: compiled live SC 40.28 -> 40.61 KB (122,779 B) Co-authored-by: Cursor <[email protected]>
1 parent 7f5b9e0 commit 70fe0c7

2 files changed

Lines changed: 48 additions & 10 deletions

File tree

‎scripts/size/floor-caps.json‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
"minified": 52841
1313
},
1414
"page: base server components (hydrating + dynamic + frames + sf reference)": {
15-
"cap": "33.58 KB",
16-
"minified": 104586
15+
"cap": "33.92 KB",
16+
"minified": 105252
1717
},
1818
"page: live server components (base + live/GET + action + isPending/latest)": {
19-
"cap": "37.26 KB",
20-
"minified": 116485
19+
"cap": "37.53 KB",
20+
"minified": 117301
2121
},
2222
"server: floor (getRequestEvent + isServer)": {
2323
"cap": "1.34 KB",

‎scripts/size/scenarios.js‎

Lines changed: 44 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3675,8 +3675,16 @@ module.exports = [
36753675
// ≈ +467 min / +162 br of carrier over the −1,432 / −472 ceiling —
36763676
// −965 min / −305 br. Cap set at measured + 10 B at the 0.01 KB step
36773677
// (the ratchet); recorded minified 32,802 B.
3678-
limit: "10.90 KB",
3679-
capMinified: 32802,
3678+
// Frames tiers, merged onto `next` @ 3c1d51267 (#3860, 2026-10-07):
3679+
// `next`'s 14.02 KB -> 11.13 KB, measured at 11,112 B by CI (Size run
3680+
// 37671002618) against `next`'s 14,012 (-2,900 B; -10,178 B minified,
3681+
// 43,596 -> 33,418). The branch's own ratchets above were measured on
3682+
// its pre-merge base; `next`'s bytes since (#3846's ChunkReader, #3865,
3683+
// #3874) land under them (+616 B minified, +224 B brotli over the C2
3684+
// note's 32,802 / 10,888). Cap set at measured + 10 B rounded up to
3685+
// 0.01 KB; recorded minified 33,418 B.
3686+
limit: "11.13 KB",
3687+
capMinified: 33418,
36803688
alias: framesAlias,
36813689
external: framesExternal
36823690
},
@@ -3941,6 +3949,13 @@ module.exports = [
39413949
// model said −7,423 / −2,158). `assign` and below stay for the lazy bind
39423950
// chunk. Cap set at measured + 10 B at the 0.01 KB step (the ratchet);
39433951
// recorded minified 104,586 B.
3952+
// Frames tiers, merged onto `next` @ 3c1d51267 (#3860, 2026-10-07):
3953+
// `next`'s 45.14 KB -> 33.92 KB (floor-caps.json), measured at 33,908 B
3954+
// by CI (Size run 37671002618) against `next`'s 45,291 (-11,383 B;
3955+
// -41,032 B minified, 146,284 -> 105,252). `next`'s bytes since the
3956+
// branch's base land under the `dynamicComponent` note's 33,570 /
3957+
// 104,586 (+666 B minified, +338 B brotli). Cap set at measured + 10 B
3958+
// rounded up to 0.01 KB; recorded minified 105,252 B.
39443959
limit: floorCaps["page: base server components (hydrating + dynamic + frames + sf reference)"],
39453960
capMinified:
39463961
floorMinified["page: base server components (hydrating + dynamic + frames + sf reference)"],
@@ -4152,6 +4167,13 @@ module.exports = [
41524167
// `dynamicComponent`, shedding `dynamic`'s string-tag arm as on the base
41534168
// page — −7,418 min / −2,171 br. Cap set at measured + 10 B at the
41544169
// 0.01 KB step (the ratchet); recorded minified 116,485 B.
4170+
// Frames tiers, merged onto `next` @ 3c1d51267 (#3860, 2026-10-07):
4171+
// `next`'s 48.91 KB -> 37.53 KB (floor-caps.json), measured at 37,512 B
4172+
// by CI (Size run 37671002618) against `next`'s 48,962 (-11,450 B;
4173+
// -41,096 B minified, 158,397 -> 117,301). `next`'s bytes since the
4174+
// branch's base land under the `dynamicComponent` note's 37,241 /
4175+
// 116,485 (+816 B minified, +271 B brotli). Cap set at measured + 10 B
4176+
// rounded up to 0.01 KB; recorded minified 117,301 B.
41554177
limit: floorCaps["page: live server components (base + live/GET + action + isPending/latest)"],
41564178
capMinified:
41574179
floorMinified["page: live server components (base + live/GET + action + isPending/latest)"],
@@ -4218,10 +4240,18 @@ module.exports = [
42184240
// carry `readShallow` and the walk helpers `dynamic`'s tag arm shares).
42194241
// Cap at local measured + 10 B at the 0.01 KB step; CI (Linux, Node 24)
42204242
// must confirm — lower only.
4243+
// Merged onto `next` @ 3c1d51267 (#3860, 2026-10-07): 34.88 -> 35.09 KB,
4244+
// measured at 35,079 B by CI (Size run 37671002618; 109,300 B minified).
4245+
// The 34.88 KB above was local bytes on the branch's pre-merge base;
4246+
// `next`'s bytes since (#3846's ChunkReader, #3865, #3874 — the same
4247+
// +666 B minified as the hand-written base page) land under it. No cap
4248+
// on `next` (a new scenario; `next` cannot bundle the fixture). Cap set
4249+
// at CI measured + 10 B rounded up to 0.01 KB; recorded minified
4250+
// 109,300 B.
42214251
path: "fixtures/compiled/sc-base.jsx",
42224252
compile: { hydratable: true },
4223-
limit: "34.88 KB",
4224-
capMinified: 108634,
4253+
limit: "35.09 KB",
4254+
capMinified: 109300,
42254255
alias: pageAlias
42264256
},
42274257
{
@@ -4252,10 +4282,18 @@ module.exports = [
42524282
// Mounted with `dynamic` on this head: 42,002 / 127,779 (−1,736 /
42534283
// −5,816 for `dynamicComponent`). Cap at local measured + 10 B at the
42544284
// 0.01 KB step; CI (Linux, Node 24) must confirm — lower only.
4285+
// Merged onto `next` @ 3c1d51267 (#3860, 2026-10-07): 40.28 -> 40.61 KB,
4286+
// measured at 40,593 B by CI (Size run 37671002618; 122,779 B minified,
4287+
// the statically-imported web.js chunk counted). The 40.28 KB above was
4288+
// local bytes on the branch's pre-merge base; `next`'s bytes since land
4289+
// under it (+816 B minified, as on the hand-written live page). No cap
4290+
// on `next` (a new scenario; `next` cannot bundle the fixture). Cap set
4291+
// at CI measured + 10 B rounded up to 0.01 KB; recorded minified
4292+
// 122,779 B.
42554293
path: "fixtures/compiled/sc-live.jsx",
42564294
compile: { hydratable: true },
4257-
limit: "40.28 KB",
4258-
capMinified: 121963,
4295+
limit: "40.61 KB",
4296+
capMinified: 122779,
42594297
alias: pageAlias
42604298
},
42614299
{

0 commit comments

Comments
 (0)