Repository navigation
ci(benchmarks): recommit bundle budgets to measured main reality - #1207
Merged
Merged
Conversation
1 task done
jonkwheeler
marked this pull request as ready for review
September 21, 2026 13:54
Contributor
Author
This was referenced Sep 21, 2026
2 of 5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #1202. Split from #1188.
Summary
app-budgets.json,jsx-budgets.json,minimal-budgets.json) to whatmainactually produces today, and adds a void-root specialization verdict + gate tobenchmarks/bundle-size/run.mjs.bundle-sizeratio guards inbenchmarks/baselines/ratios.jsonwith per-guard re-measurement notes.Why
main:packages/octane/src/runtime.tssource grew 1157028 → 1793553 bytes across 116 runtime-touching commits since the 2026-08-16 ceilings, so most ceilings were below current production output and the guards no longer reflected reality.run.mjsgate closes a reporting gap: the compiled app-mode root must emit__createVoidRoot(never the genericcreateRoot) frompackages/octane/src/runtime.ts. All fouroctane-tsrxapp targets reportspecializedonmain;octane-jsxreportsgeneric-root, which is expected — it hand-writes a user-levelcreateRootcall — and stays informational.mainfirst keeps the bundle-size gate green for the runtime PRs that follow in this split.Changes
benchmarks/bundle-size/run.mjs: inspects each octane target's build result forruntime.tsrenderedExports, recordsmeta.voidRootsper app set, prints the verdict, and assertsoctane-tsrxisspecialized(compiled apps gate;octane-jsxreports only).benchmarks/bundle-size/{app,jsx,minimal}-budgets.json: ceilings re-measured under the pinned CI Node 24.19.0 onmain; bumped entries carry ~3% headroom rounded up to 32-byte alignment, and entries that still pass keep their tighter committed values (per-metric — e.g.server-hooksbrotli,jsxapp raw/brotli,root-static-local,hooks-state,contextare unchanged).benchmarks/baselines/ratios.json: 15bundle-sizecross-framework guards re-committed atceil(observed × 1.01, 2dp)with dated notes; the 45 measured-vs-budget guards (maxRatio: 1) and the passingoctane-jsx/octane-tsrx,todo_app_gzipvs ripple, andweather_app_gzipvs react guards are untouched.binding-aria-esbuildstays committed but unmeasurable: esbuild fails to parsepackages/aria/src/stately/tokenfield/TokenFieldValue.tsx(Unexpected "enum"), a pre-existingmaininfrastructure issue that skips its three guards rather than failing them.Validation
Node
v24.19.0(/Users/jonwheeler/.nvm/versions/node/v24.19.0/bin/node— the pinned CI major) on macOS:node benchmarks/bundle-size/run.mjs— all fouroctane-tsrxtargets✓ void-root specialized;octane-jsxgeneric-root(expected, informational). Measured rowsoctane-tsrx: total gz 40594 / app gz 2581 / fw gz 38013; identical bytes on re-run (deterministic).node benchmarks/bundle-size/run-minimal.mjs— all scenarios measured within committed budgets; aborts atbinding-aria-esbuildon the pre-existing esbuildenumparse error (documented above). The 10 later binding scenarios were measured separately by name and pass.node benchmarks/bundle-size/run-minimal.mjs --budgets root-static-local hooks-state context behavior-root— the per-PR CI command (ci.yml): PASS, exit 0.node benchmarks/bundle-size/run-minimal.mjs --budgets binding-radix-vite binding-radix-esbuild binding-motion-vite binding-motion-esbuild binding-floating-ui-vite binding-floating-ui-esbuild binding-mantine-hooks-vite binding-mantine-hooks-esbuild binding-usehooks-ts-vite binding-usehooks-ts-esbuild— PASS, exit 0 (deterministic bytes).node benchmarks/bench.mjs --record --ratios bundle-size(baselines redirected to a temp dir) — 63/63 runnablebundle-sizeguards PASS, wroteratios.suggested.jsonfor review (its 1.5× suggestions are intentionally looser than the committed ~1% ceilings).node benchmarks/bench.mjs --quick --ratios bundle-size bundle-reachability—[ratios] checked 123/1116 guard(s) — PASS — no ratio guards breached; exits 1 on the pre-existingbundle-reachabilityharness gate failure (binding-aria-esbuildesbuildenumparse error, same as onmain). This gate runs in the manual/weeklybench.yml, not per-PR CI.pnpm format:files/pnpm format:files:checkon the five touched paths — clean.pnpm sync— tree stays clean.pnpm format:check/pnpm typecheck/pnpm test— deferred to CI (same convention as perf(runtime): beat React 19 + Compiler across the timing benchmark portfolio #1188).Risk / follow-ups
binding-aria-esbuildremains unmeasurable until theTokenFieldValue.tsxesbuild parse issue is fixed upstream onmain; its committed ceiling and three guards carry forward unchanged.Provenance
agent-authored)Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Note
Low Risk
Benchmark and CI guard data only; no application or runtime behavior changes beyond stricter build-time assertions in the bundle-size harness.
Overview
Re-aligns bundle-size CI with current
mainoutput after Octane runtime growth: committed byte ceilings and cross-framework ratio guards were below what production builds actually measure, so the gates were effectively stale.benchmarks/bundle-size/{app,jsx,minimal}-budgets.json— raw/gzip/brotli ceilings are re-measured on pinned CI Node 24 (with ~3% headroom where bumped); unchanged entries stay tight where builds still pass.benchmarks/baselines/ratios.json— 15octane-tsrxvs Ripple/Solid/Svelte/Reactbundle-sizemaxRatiovalues and notes are re-committed from fresh measurements (~1% slack), replacing August-era snapshots.benchmarks/bundle-size/run.mjs— after each Octane build, inspectspackages/octane/src/runtime.tsrenderedExports, records a void-root verdict inmeta.voidRoots, and fails ifoctane-tsrxis notspecialized(__createVoidRootpresent, genericcreateRootabsent);octane-jsxmay reportgeneric-rootas informational only.Reviewed by Cursor Bugbot for commit 5197181. Bugbot is set up for automated code reviews on this repo. Configure here.