Skip to content

ci(bench): raise byte budgets for the scoped-read, de-opt survivor, and warm-plan perf PRs - #1687

Merged
trueadm merged 2 commits into
mainfrom
ci/budget-runtime-perf-prs
Oct 3, 2026
Merged

trueadm merged 2 commits into
mainfrom
ci/budget-runtime-perf-prs

Conversation

@trueadm

@trueadm trueadm commented Oct 3, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Raises 40 committed byte budgets so that three open runtime perf PRs pass the PR bench byte gate in any order, alone or combined: #1663, #1664 and #1666. The budgets also cover those three stacked on the useLayoutSnapshot priority fix (#1686), whose own raise is #1685, already on main. Per CONTRIBUTING's "Size budgets" policy, the raise lands on its own, not inside those PRs.

Merge order: land this before #1663, #1664 and #1666. If one of them is closed, the values it alone needs become slack. Lower them in a follow-up.

Why

On main 425a32a, #1663 alone breaches one budget and #1664 alone breaches six. #1666 alone fits now that #1685 raised deferred-hydration. Stacked, 40 values breach:

Each budget is the larger of main's current value and the largest value measured on five trees, plus 32 for raw and gzip and 256 for brotli. The trees are main, each PR merged alone with main, and all three plus #1686 merged with main. Only values one of those trees exceeds change.

Changes

Δ columns are bytes versus main 425a32a's measured value, with local bench.mjs bundle-size bundle-reachability. Local bytes matched CI on the first measurement. "all" is #1663 + #1664 + #1666 + #1686.

file budget old new raise #1663 #1664 #1666 all
app rows.framework.raw 117856 117899 +43 +0 +20 +17 +128
app rows.total.raw 125368 125411 +43 +0 +20 +17 +128
app todo.framework.raw 135735 135778 +43 +0 +20 +17 +128
app todo.total.raw 140845 140888 +43 +0 +20 +17 +128
app chat.framework.raw 133312 133355 +43 +0 +20 +17 +128
app chat.total.raw 139965 140008 +43 +0 +20 +17 +128
app weather.framework.raw 150264 150307 +43 +0 +20 +17 +128
app weather.total.raw 176943 176986 +43 +0 +20 +17 +128
app bindings.framework.raw 363012 363846 +834 +2 +809 +17 +925
app bindings.framework.gzip 118730 119086 +356 +45 +290 +4 +375
app bindings.framework.brotli 103106 103528 +422 +84 +370 +61 +344
app bindings.total.raw 718933 719767 +834 +2 +809 +17 +925
app bindings.total.gzip 240437 240806 +369 +37 +288 -1 +368
app bindings.total.brotli 204829 205365 +536 +100 +456 +38 +235
jsx framework.raw 219443 219553 +110 -4 +806 +17 +916
jsx framework.gzip 69806 69874 +68 +18 +253 +1 +321
jsx framework.brotli 60479 60857 +378 +204 +255 +40 +378
jsx total.raw 227902 228012 +110 -4 +806 +17 +916
jsx total.gzip 72743 72810 +67 +18 +254 +1 +321
jsx total.brotli 62982 63367 +385 +212 +247 +29 +383
minimal cli-spa-starter.raw 115166 115209 +43 +0 +20 +17 +134
minimal root-static.raw 204143 204225 +82 -33 +808 +17 +890
minimal root-static.gzip 64929 65018 +89 +43 +259 +1 +348
minimal root-static.brotli 56225 56673 +448 +43 +164 +12 +370
minimal binding-base-ui-vite.raw 214374 214495 +121 +7 +808 +17 +929
minimal binding-base-ui-vite.gzip 68532 68600 +68 +59 +288 +22 +356
minimal binding-base-ui-vite.brotli 59313 59686 +373 +105 +217 +129 +337
minimal binding-base-ui-esbuild.raw 212312 212433 +121 +6 +801 +17 +922
minimal binding-base-ui-esbuild.gzip 68447 68541 +94 +71 +249 +16 +359
minimal binding-base-ui-esbuild.brotli 59326 59781 +455 +85 +210 +89 +420
minimal binding-radix-vite.raw 216304 216401 +97 -17 +806 +17 +903
minimal binding-radix-vite.gzip 69074 69160 +86 +49 +290 -3 +376
minimal binding-radix-vite.brotli 59845 60196 +351 +148 +185 -10 +306
minimal binding-radix-esbuild.raw 214201 214298 +97 -17 +799 +17 +896
minimal binding-radix-esbuild.gzip 69035 69109 +74 +29 +247 +10 +324
minimal binding-apollo-client-vite.raw 359368 359452 +84 -31 +810 +17 +894
minimal binding-apollo-client-vite.gzip 112608 112661 +53 +48 +278 +12 +331
minimal binding-apollo-client-esbuild.raw 362298 362377 +79 -35 +803 +17 +882
minimal binding-apollo-client-esbuild.gzip 114774 114874 +100 +31 +254 +5 +352
minimal binding-apollo-client-esbuild.brotli 99940 100390 +450 -99 +105 -71 +322

Validation

Risk / follow-ups

Provenance

  • An agent produced this diff (agent-authored)

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.


Note

Low Risk
Benchmark threshold JSON only; no production runtime or security behavior changes.

Overview
Raises committed bundle-size budgets in app-budgets.json, jsx-budgets.json, and minimal-budgets.json so CI’s byte gate can pass after three pending runtime perf PRs (#1663, #1664, #1666) land—without embedding budget bumps in those PRs, per the size-budgets policy.

Most compiled-app framework/total raw limits go up by 37 bytes (stacked de-opt survivor + warm-plan guard effects). The bindings app sees the largest bump (+800 raw framework, +300–500 gzip/brotli). jsx and several minimal binding/root-static targets gain extra gzip/brotli headroom where scoped-read and descriptor bundles compress differently.

Values are sized to the max measured across each PR merged alone and all combined, plus standard headroom (+32 raw/gzip, +256 brotli). This PR should merge before #1663/#1664/#1666.

Reviewed by Cursor Bugbot for commit 5418999. Bugbot is set up for automated code reviews on this repo. Configure here.

…nd warm-plan perf PRs

Three open runtime perf pull requests fail the PR bench byte gate on main
12c32ec, and landing any two of them stacks past the 32-byte headroom:

- #1664 (de-opt survivor fast path): +809 raw / +290 gzip
  in the bindings app framework chunk, which #1676 did not raise because
  #1639 added that budget key first; +20 raw in every compiled-only app.
- #1666 (warm-plan length guard): +17 raw in every client
  bundle, two `!==` guards.
- #1663 (scoped-value read-once): +2 raw / +30-70 gzip in
  descriptor-renderer bundles, a compression shift from the restructured
  childSlot reads.

Main had already spent part of the headroom: bindings framework gzip
measured exactly its budget and deferred-hydration raw had 8 bytes left.

Each budget is set to the largest value measured across each PR merged
alone with main and all of them merged together (plus #1665, which moves
none of these values), plus 32 for raw and gzip and 256 for brotli. Only
values one of those trees exceeds change.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@trueadm
trueadm marked this pull request as ready for review October 3, 2026 19:19
@vercel

vercel Bot commented Oct 3, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

2 Skipped Deployments
Project Deployment Actions Updated
octane-website Skipped Skipped Oct 3, 2026 7:19pm UTC
octane-website-mcp Skipped Skipped Oct 3, 2026 7:19pm UTC

Request Review

@github-actions github-actions Bot added agent-authored Diff or issue body substantially produced by an AI agent ci PR: CI or build pipeline labels Oct 3, 2026
@github-actions

github-actions Bot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Benchmark report

🟢 No budget breaches, no added work, and no timing changes beyond ±3%.

Compares 425a32a5f, the merge commit's first parent with de6471692 on the same runner. A byte value over its committed budget or any increase in a js-framework work counter fails this check. Wall time is a report: base and head samples alternate in one browser, and an operation is called slower or faster only when the 95% confidence interval of its ratio excludes ±3%. Workflow run

js-framework: 1k/10k row operations

All 20 timed operations (20 without a verdict)
target operation base ms head ms head/base 95% CI
octane-tsrx run 2.675 2.775 ±0.0% −3.2% … ±0.0% ⚪ within noise
octane-tsrx replace 5.308 5.167 −1.8% −5.3% … +5.0% ⚪ within noise
octane-tsrx add 2.492 2.450 −0.0% −4.0% … ±0.0% ⚪ within noise
octane-tsrx update 0.133 0.131 −2.1% −4.6% … −1.3% ⚪ within noise
octane-tsrx select 0.005 0.005 −2.7% −3.7% … −2.3% ⚪ within noise
octane-tsrx swap 0.034 0.033 −0.0% −0.6% … +0.6% ⚪ within noise
octane-tsrx remove 0.016 0.016 −1.5% −5.9% … +1.7% ⚪ within noise
octane-tsrx runlots 24.050 23.983 −2.9% −6.6% … +0.7% ⚪ within noise
octane-tsrx select_lots 0.006 0.006 −1.8% −2.3% … −0.9% ⚪ within noise
octane-tsrx clear 41.375 42.433 +0.8% −1.4% … +2.8% ⚪ within noise
octane-jsx run 3.167 3.125 ±0.0% −0.0% … +0.0% ⚪ within noise
octane-jsx replace 5.542 5.533 ±0.0% −3.5% … +3.5% ⚪ within noise
octane-jsx add 2.983 3.017 −0.0% −3.1% … ±0.0% ⚪ within noise
octane-jsx update 0.263 0.258 −0.6% −2.5% … +1.5% ⚪ within noise
octane-jsx select 0.138 0.145 +2.7% +1.1% … +5.5% ⚪ within noise
octane-jsx swap 0.237 0.240 +1.7% +0.9% … +2.3% ⚪ within noise
octane-jsx remove 0.195 0.192 +1.2% +0.0% … +3.1% ⚪ within noise
octane-jsx runlots 27.325 28.050 +0.5% −1.1% … +3.4% ⚪ within noise
octane-jsx select_lots 1.466 1.417 +1.5% −1.8% … +3.7% ⚪ within noise
octane-jsx clear 42.292 42.058 +0.4% −0.7% … +2.0% ⚪ within noise

All 64 work counters are unchanged.

Application bundle size (bytes)

target metric base head Δ
octane-tsrx bindings_js_gzip 240,407 240,396 −11 (−0.0%) 🟢
octane-tsrx bindings_js_brotli 204,738 204,641 −97 (−0.0%) 🟢
octane-tsrx bindings_app_gzip 121,728 121,717 −11 (−0.0%) 🟢
octane-tsrx bindings_app_brotli 101,836 101,739 −97 (−0.1%) 🟢

50 other measured values are unchanged.

Public-import reachability bundles (bytes)

No changes across 105 measured values.

Main gained #1685, which raised 51 budgets for the useLayoutSnapshot
commit-phase priority fix (#1686), and #1681/#1665. Re-measured on main
425a32a: each of #1663, #1664 and #1666 merged alone, and all three
plus #1686 merged together. Each budget is the larger of main's value and
the largest measured value plus 32 (raw/gzip) or 256 (brotli), so the
three perf PRs and #1686 can land in any order.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@trueadm
trueadm merged commit 73feb8f into main Oct 3, 2026
31 checks passed
@trueadm
trueadm deleted the ci/budget-runtime-perf-prs branch October 3, 2026 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-authored Diff or issue body substantially produced by an AI agent ci PR: CI or build pipeline

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant