Skip to content

ci(bench): raise byte budgets for pending query owner retirement - #1782

Merged
trueadm merged 4 commits into
mainfrom
ci/pending-query-owner-budget
Oct 5, 2026
Merged

trueadm merged 4 commits into
mainfrom
ci/pending-query-owner-budget

Conversation

@trueadm

@trueadm trueadm commented Oct 5, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

This raises byte budgets for the #1764 fix. It changes only the three budget files, as CONTRIBUTING.md ("Size budgets") requires.

The fix aborts a pending query$ request when a retried Suspense or @try attempt replaces or removes its owner. Before the fix, those requests stayed live until the boundary resolved. The pruning lives in the retry-owner machinery, which renderBlock reaches through scopeSignalOwner in every client bundle. It adds about 0.9–1.1 kB raw, 0.3–0.45 kB gzip and 0.25–0.6 kB brotli to each client scenario.

Why it's worth it: without it, a replaced or removed owner's fetch keeps running, and its loader never sees its AbortSignal abort.

Why it isn't gated: signal documents can be activated through enableSignalBindings, octane/signals' __enableSignalDocument, or streamed-signal hydration. None of them can install runtime-internal code without importing the runtime, so this addition can't be gated cheaply. The existing retry-owner machinery already ships in every client bundle for the same reason. I compacted the fix from about 1.5 kB raw to about 1.1 kB raw before measuring.

How the values were measured: on e233e4a11d (origin/main after #1762 and #1759, re-measured when main moved) with the fix applied, using node benchmarks/bundle-size/run-minimal.mjs --write-budgets and node benchmarks/bundle-size/run.mjs --write-budgets octane-tsrx octane-jsx (measured + 32 raw/gzip, + 256 brotli). Only the raises are kept; unrelated drift lowerings are left to #1771. A follow-up commit adds three brotli raises (suspense-transition, binding-radix-esbuild, bindings.total). The fix PR's review follow-up added a few raw bytes, and brotli moved by more than its headroom. This also covers deferred-hydration raw, which main already breaches (238545 > 238535). #1776 restores that one value independently, so whichever merges second keeps the larger value.

After #1773 landed, each budget is max(main, this measurement); the "Old" column below is current main. #1774 and other open fixes were measured alone, so whichever fix lands second may need a re-measure. Merge this before the fix PR. Then merge main into the fix PR so its budget shard runs against these values.

All 103 raised budgets
File Budget Old New Δ
minimal-budgets cli-spa-starter.raw 109282 109922 +640
minimal-budgets cli-spa-starter.gzip 36976 37217 +241
minimal-budgets cli-spa-starter.brotli 32497 32780 +283
minimal-budgets root-static-specialized.raw 77739 78557 +818
minimal-budgets root-static-specialized.gzip 25864 26152 +288
minimal-budgets root-static-specialized.brotli 23301 23518 +217
minimal-budgets root-chained-jsx.raw 79775 80593 +818
minimal-budgets root-chained-jsx.gzip 26408 26686 +278
minimal-budgets root-chained-jsx.brotli 23699 23980 +281
minimal-budgets root-static.raw 204894 205544 +650
minimal-budgets root-static.gzip 65313 65565 +252
minimal-budgets root-static.brotli 56673 57106 +433
minimal-budgets root-static-local.raw 77742 78560 +818
minimal-budgets root-static-local.gzip 25849 26138 +289
minimal-budgets root-static-local.brotli 23322 23526 +204
minimal-budgets hooks-state.raw 89802 90620 +818
minimal-budgets hooks-state.gzip 29871 30149 +278
minimal-budgets hooks-state.brotli 26795 27087 +292
minimal-budgets prop-attributes.raw 90281 91099 +818
minimal-budgets prop-attributes.gzip 29947 30238 +291
minimal-budgets prop-attributes.brotli 26740 27138 +398
minimal-budgets context.raw 104208 105023 +815
minimal-budgets context.gzip 34550 34821 +271
minimal-budgets context.brotli 30707 31087 +380
minimal-budgets hydrate-root.raw 170130 170798 +668
minimal-budgets hydrate-root.gzip 53955 54213 +258
minimal-budgets hydrate-root.brotli 47232 47517 +285
minimal-budgets deferred-hydration.raw 233682 234315 +633
minimal-budgets deferred-hydration.gzip 73914 74141 +227
minimal-budgets suspense-transition.raw 160626 161294 +668
minimal-budgets suspense-transition.gzip 51547 51805 +258
minimal-budgets suspense-transition.brotli 45311 45614 +303
minimal-budgets component-owned-effects.raw 82251 83073 +822
minimal-budgets component-owned-effects.gzip 27141 27452 +311
minimal-budgets component-owned-effects.brotli 24421 24745 +324
minimal-budgets binding-hooks.raw 88318 89136 +818
minimal-budgets binding-hooks.gzip 29602 29882 +280
minimal-budgets binding-hooks.brotli 26343 26804 +461
minimal-budgets binding-base-ui-vite.raw 215150 215804 +654
minimal-budgets binding-base-ui-vite.gzip 68889 69136 +247
minimal-budgets binding-base-ui-vite.brotli 60024 60203 +179
minimal-budgets binding-base-ui-esbuild.raw 213090 213726 +636
minimal-budgets binding-base-ui-esbuild.gzip 68819 69079 +260
minimal-budgets binding-base-ui-esbuild.brotli 59781 60249 +468
minimal-budgets binding-radix-vite.raw 217066 217720 +654
minimal-budgets binding-radix-vite.gzip 69459 69692 +233
minimal-budgets binding-radix-vite.brotli 60501 60712 +211
minimal-budgets binding-radix-esbuild.raw 214965 215601 +636
minimal-budgets binding-radix-esbuild.gzip 69414 69633 +219
minimal-budgets binding-radix-esbuild.brotli 60411 60695 +284
minimal-budgets binding-mantine-hooks-vite.raw 91622 92440 +818
minimal-budgets binding-mantine-hooks-vite.gzip 30428 30732 +304
minimal-budgets binding-mantine-hooks-vite.brotli 27178 27560 +382
minimal-budgets binding-mantine-hooks-esbuild.raw 91269 92067 +798
minimal-budgets binding-mantine-hooks-esbuild.gzip 30598 30895 +297
minimal-budgets binding-mantine-hooks-esbuild.brotli 27360 27728 +368
minimal-budgets binding-apollo-client-vite.raw 360156 360771 +615
minimal-budgets binding-apollo-client-vite.gzip 112941 113184 +243
minimal-budgets binding-apollo-client-esbuild.raw 363080 363680 +600
minimal-budgets binding-apollo-client-esbuild.gzip 115198 115401 +203
minimal-budgets binding-apollo-client-esbuild.brotli 100722 100776 +54
minimal-budgets binding-usehooks-ts-vite.raw 92403 93221 +818
minimal-budgets binding-usehooks-ts-vite.gzip 30674 30969 +295
minimal-budgets binding-usehooks-ts-vite.brotli 27437 27781 +344
minimal-budgets binding-usehooks-ts-esbuild.raw 92035 92833 +798
minimal-budgets binding-usehooks-ts-esbuild.gzip 30798 31108 +310
minimal-budgets binding-usehooks-ts-esbuild.brotli 27577 27896 +319
app-budgets rows.framework.raw 113417 114053 +636
app-budgets rows.framework.gzip 37454 37691 +237
app-budgets rows.framework.brotli 33220 33554 +334
app-budgets rows.total.raw 120552 121188 +636
app-budgets rows.total.gzip 39888 40126 +238
app-budgets rows.total.brotli 35338 35680 +342
app-budgets todo.framework.raw 126462 127098 +636
app-budgets todo.framework.gzip 41218 41474 +256
app-budgets todo.framework.brotli 36375 36761 +386
app-budgets todo.total.raw 131273 131909 +636
app-budgets todo.total.gzip 43549 43806 +257
app-budgets todo.total.brotli 38364 38752 +388
app-budgets chat.framework.raw 123922 124558 +636
app-budgets chat.framework.gzip 40493 40772 +279
app-budgets chat.framework.brotli 35752 36153 +401
app-budgets chat.total.raw 129912 130548 +636
app-budgets chat.total.gzip 43262 43541 +279
app-budgets chat.total.brotli 38211 38611 +400
app-budgets weather.framework.raw 145712 146348 +636
app-budgets weather.framework.gzip 47417 47623 +206
app-budgets weather.framework.brotli 41633 41953 +320
app-budgets weather.total.raw 168450 169086 +636
app-budgets weather.total.gzip 55527 55732 +205
app-budgets weather.total.brotli 48529 48870 +341
app-budgets bindings.framework.raw 360838 361453 +615
app-budgets bindings.framework.gzip 118262 118506 +244
app-budgets bindings.framework.brotli 102645 102991 +346
app-budgets bindings.total.raw 715648 716263 +615
app-budgets bindings.total.gzip 239629 239883 +254
app-budgets bindings.total.brotli 204480 204533 +53
jsx-budgets framework.raw 220208 220862 +654
jsx-budgets framework.gzip 70189 70411 +222
jsx-budgets framework.brotli 61119 61240 +121
jsx-budgets total.raw 228667 229321 +654
jsx-budgets total.gzip 73125 73346 +221
jsx-budgets total.brotli 63624 63737 +113

Validation

  • node benchmarks/bundle-size/budget-raises.mjs --base origin/main --head HEAD: "103 raise(s) in a budget-only change"
  • prettier --check on the three budget files
  • pnpm format:check
  • pnpm typecheck
  • pnpm test: left to CI (the change is budget JSON only)

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
JSON-only CI threshold updates with no production code paths affected; main risk is merge conflicts with other budget PRs requiring the larger value per key.

Overview
Raises 103 bundle-size ratchet limits across minimal-budgets.json, app-budgets.json, and jsx-budgets.json so CI can pass after the upcoming query$ owner-retirement fix (octane#1764).

Increases are mostly on framework and total bytes (raw/gzip/brotli) for client scenarios—minimal apps, JSX entry, and sample apps (rows, todo, chat, weather, bindings)—by roughly ~0.9–1.1 kB raw per affected bundle, matching remeasured output plus standard headroom. No runtime or benchmark harness code changes; this is a budget-only PR intended to merge before the behavior fix.

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

The fix for #1764 adds the retry-cache pruning that aborts a pending
query$ request when a retried attempt replaces or removes its owner. The
retry-owner machinery is reachable from renderBlock in every client bundle,
so each client scenario grows by about 0.9-1.1 kB raw and 0.3-0.45 kB gzip.
Budgets are measured on fb404c2 with the fix applied, plus the standard
headroom. Only raises are recorded here.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@vercel

vercel Bot commented Oct 5, 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 5, 2026 6:33pm UTC
octane-website-mcp Skipped Skipped Oct 5, 2026 6:33pm 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 5, 2026
@trueadm
trueadm marked this pull request as ready for review October 5, 2026 13:20
@github-actions

github-actions Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Benchmark report

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

Compares 2aac5bb17, the merge commit's first parent with b19d27571 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

target operation base ms head ms head/base 95% CI
octane-tsrx clear 52.692 46.025 −9.9% −16.7% … −5.4% 🟢 faster
All 20 timed operations (19 without a verdict)
target operation base ms head ms head/base 95% CI
octane-tsrx run 3.225 3.367 −0.0% −3.5% … +2.1% ⚪ within noise
octane-tsrx replace 6.842 7.117 +1.5% −1.3% … +4.0% ⚪ within noise
octane-tsrx add 2.917 2.900 ±0.0% −3.4% … +3.4% ⚪ within noise
octane-tsrx update 0.131 0.134 +2.3% −1.7% … +7.9% ⚪ within noise
octane-tsrx select 0.007 0.007 −0.9% −2.7% … +6.6% ⚪ within noise
octane-tsrx swap 0.053 0.049 +2.3% −4.9% … +7.5% ⚪ within noise
octane-tsrx remove 0.024 0.023 +0.3% −4.7% … +10.3% ⚪ within noise
octane-tsrx runlots 44.667 37.083 −8.7% −27.2% … −1.5% ⚪ within noise
octane-tsrx select_lots 0.011 0.013 +7.0% −1.1% … +69.4% ⚪ within noise
octane-tsrx clear 52.692 46.025 −9.9% −16.7% … −5.4% 🟢 faster
octane-jsx run 8.075 6.450 −9.3% −38.5% … +2.0% ⚪ within noise
octane-jsx replace 11.733 14.458 +2.2% −6.2% … +36.3% ⚪ within noise
octane-jsx add 6.758 6.183 +4.9% +1.2% … +21.1% ⚪ within noise
octane-jsx update 0.458 0.509 −0.1% −23.4% … +60.9% ⚪ within noise
octane-jsx select 0.221 0.242 +6.6% +1.2% … +14.7% ⚪ within noise
octane-jsx swap 0.404 0.407 −0.5% −11.5% … +4.4% ⚪ within noise
octane-jsx remove 0.320 0.312 +9.7% −13.1% … +24.0% ⚪ within noise
octane-jsx runlots 59.575 68.733 +1.9% −39.2% … +27.5% ⚪ within noise
octane-jsx select_lots 3.617 3.202 −6.0% −11.4% … +8.5% ⚪ within noise
octane-jsx clear 61.075 70.350 +12.7% +1.5% … +40.6% ⚪ within noise

All 64 work counters are unchanged.

Application bundle size (bytes)

target metric base head Δ
octane-tsrx bindings_js_gzip 239,481 239,468 −13 (−0.0%) 🟢
octane-tsrx bindings_js_brotli 204,088 203,984 −104 (−0.1%) 🟢
octane-tsrx bindings_app_gzip 121,381 121,368 −13 (−0.0%) 🟢
octane-tsrx bindings_app_brotli 101,572 101,468 −104 (−0.1%) 🟢

56 other measured values are unchanged.

Public-import reachability bundles (bytes)

No changes across 105 measured values.

The fix PR's hydration client-build handoff adds a few raw bytes, which
moves brotli past the suspense-transition, binding-radix-esbuild and
bindings total budgets. Each is measured with the fix applied, plus 256.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@vercel
vercel Bot temporarily deployed to Preview – octane-website October 5, 2026 13:43 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp October 5, 2026 13:43 Inactive
…ding-query-owner-budget

# Conflicts:
#	benchmarks/bundle-size/app-budgets.json
#	benchmarks/bundle-size/minimal-budgets.json
…ding-query-owner-budget

# Conflicts:
#	benchmarks/bundle-size/app-budgets.json
#	benchmarks/bundle-size/jsx-budgets.json
#	benchmarks/bundle-size/minimal-budgets.json
@vercel
vercel Bot temporarily deployed to Preview – octane-website October 5, 2026 18:33 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp October 5, 2026 18:33 Inactive
@trueadm
trueadm merged commit 0f0a857 into main Oct 5, 2026
34 checks passed
@trueadm
trueadm deleted the ci/pending-query-owner-budget branch October 5, 2026 20:39
trueadm added a commit that referenced this pull request Oct 5, 2026
Main now carries #1773 and #1782's raises. Taking the max per value
leaves every budget at main's: on the new main the Hydrate children fix
measures deferred-hydration at 233,775 raw / 73,912 gzip / 63,763 brotli,
under main's 234,315 / 74,141 / 63,955, and no other budget is breached.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
trueadm added a commit that referenced this pull request Oct 5, 2026
#1761 (#1793)

#1782 measured the #1764 fix on its own, and #1760 measured #1761 on its
own. With #1761 now on main, adding the fix overruns 47 budgets by up to
about 135 raw bytes. Each value is measured on main 9c84293 with the fix
applied, plus the standard headroom.

Co-authored-by: Claude Opus 5.5 <[email protected]>
trueadm added a commit that referenced this pull request Oct 5, 2026
Budgets move by the measured esbuild-to-Oxc difference on the same
source (budget - max(0, esbuild - oxc)), so the methodology change
lowers 131 values, keeps 28, raises none, and leaves the headroom #1782
granted to #1783 in place. The baseline, ratio guards and website
summary are recomputed from the merged source.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
trueadm added a commit that referenced this pull request Oct 5, 2026
#1783 landed and spent the headroom #1782/#1793/#1794 granted it. Each
budget is again main's value minus the measured esbuild-to-Oxc
difference on the merged source (131 lowered, 28 unchanged, none
raised). The baseline record, home summary and refresh note follow.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
trueadm added a commit that referenced this pull request Oct 6, 2026
* ci(bench): measure bundle sizes with Vite 8's default minifier

The bundle-size and bundle-reachability harnesses forced Vite's
`minify: 'esbuild'`. That mode turns Rolldown's own minifier off, and with
it the dead-code elimination that removes branches guarded by a
never-written module flag, so the numbers were not what a Vite app ships.

- run.mjs builds every framework with `minify: 'oxc'` (Vite 8's default
  client minifier), still identical settings for every target.
- run-minimal.mjs builds its Vite scenarios with `'oxc'`; the esbuild
  bundler scenarios keep esbuild's `minify: true`. The async-identity
  encoder check accepts Oxc's template-literal quotes.
- Every budget is ratcheted down (144 lowered, 15 unchanged, 0 raised),
  the bundle-size baseline is re-recorded, the 18 cross-framework ratio
  guards are re-cut, and the website summary and copy follow.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* ci(bench): re-measure the Oxc budgets on main with #1761 and #1782

Budgets move by the measured esbuild-to-Oxc difference on the same
source (budget - max(0, esbuild - oxc)), so the methodology change
lowers 131 values, keeps 28, raises none, and leaves the headroom #1782
granted to #1783 in place. The baseline, ratio guards and website
summary are recomputed from the merged source.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(website): compare home summary ceilings at stable precision

The smoke test rounds each summary row to 15 significant digits because
Math.log/exp can differ by one ULP between libc implementations, but it
compared the bundle-size range ends exactly. Those ends are geometric
means too: the recorded Solid ceiling was 0.9500824085923075 on macOS and
0.9500824085923076 on the Linux runner. Round them the same way.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* ci(bench): re-derive the Oxc budgets on main with #1766, #1768, #1770, #1772 and #1794

Same method as before: each budget is main's value minus the measured
esbuild-to-Oxc difference on the merged source, never raised (131
lowered, 28 unchanged). The baseline record and home summary follow the
new bytes; every ratio guard still holds with the ceilings already cut.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* ci(bench): re-derive the Oxc budgets on main with #1783

#1783 landed and spent the headroom #1782/#1793/#1794 granted it. Each
budget is again main's value minus the measured esbuild-to-Oxc
difference on the merged source (131 lowered, 28 unchanged, none
raised). The baseline record, home summary and refresh note follow.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* ci(bench): re-cut the cross-framework ratio guards after #1784

With #1784's hydrating flag folded by Oxc, Octane's totals shrink 8.5-10%
instead of about 5%, so the total-gzip ceilings had grown about 6% loose.
They are re-cut at about 1.5% headroom on the merged-source measurement;
application-code ceilings are unchanged. All 72 bundle-size guards hold.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>

This branch was previously deployed

2 inactive deployments
Preview – octane-website-mcp — 32147684 Deployed Oct 5, 2026 by vercel[bot]
Preview – octane-website — 32147684 Deployed Oct 5, 2026 by vercel[bot]
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