Repository navigation
ci(bench): raise byte budgets for pending query owner retirement - #1782
Merged
Merged
Conversation
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]>
|
The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
|
6 of 7 tasks
trueadm
marked this pull request as ready for review
October 5, 2026 13:20
Contributor
Benchmark report🟢 No budget breaches, no added work, and no timing changes beyond ±3%. Compares js-framework: 1k/10k row operations
All 20 timed operations (19 without a verdict)
All 64 work counters are unchanged. Application bundle size (bytes)
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]>
…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
This was referenced Oct 5, 2026
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]>
This was referenced Oct 5, 2026
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]>
7 of 8 tasks
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]>
4 tasks
This branch was previously deployed
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.
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@tryattempt replaces or removes its owner. Before the fix, those requests stayed live until the boundary resolved. The pruning lives in the retry-owner machinery, whichrenderBlockreaches throughscopeSignalOwnerin 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
AbortSignalabort.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, usingnode benchmarks/bundle-size/run-minimal.mjs --write-budgetsandnode 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 coversdeferred-hydrationraw, 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
minimal-budgetscli-spa-starter.rawminimal-budgetscli-spa-starter.gzipminimal-budgetscli-spa-starter.brotliminimal-budgetsroot-static-specialized.rawminimal-budgetsroot-static-specialized.gzipminimal-budgetsroot-static-specialized.brotliminimal-budgetsroot-chained-jsx.rawminimal-budgetsroot-chained-jsx.gzipminimal-budgetsroot-chained-jsx.brotliminimal-budgetsroot-static.rawminimal-budgetsroot-static.gzipminimal-budgetsroot-static.brotliminimal-budgetsroot-static-local.rawminimal-budgetsroot-static-local.gzipminimal-budgetsroot-static-local.brotliminimal-budgetshooks-state.rawminimal-budgetshooks-state.gzipminimal-budgetshooks-state.brotliminimal-budgetsprop-attributes.rawminimal-budgetsprop-attributes.gzipminimal-budgetsprop-attributes.brotliminimal-budgetscontext.rawminimal-budgetscontext.gzipminimal-budgetscontext.brotliminimal-budgetshydrate-root.rawminimal-budgetshydrate-root.gzipminimal-budgetshydrate-root.brotliminimal-budgetsdeferred-hydration.rawminimal-budgetsdeferred-hydration.gzipminimal-budgetssuspense-transition.rawminimal-budgetssuspense-transition.gzipminimal-budgetssuspense-transition.brotliminimal-budgetscomponent-owned-effects.rawminimal-budgetscomponent-owned-effects.gzipminimal-budgetscomponent-owned-effects.brotliminimal-budgetsbinding-hooks.rawminimal-budgetsbinding-hooks.gzipminimal-budgetsbinding-hooks.brotliminimal-budgetsbinding-base-ui-vite.rawminimal-budgetsbinding-base-ui-vite.gzipminimal-budgetsbinding-base-ui-vite.brotliminimal-budgetsbinding-base-ui-esbuild.rawminimal-budgetsbinding-base-ui-esbuild.gzipminimal-budgetsbinding-base-ui-esbuild.brotliminimal-budgetsbinding-radix-vite.rawminimal-budgetsbinding-radix-vite.gzipminimal-budgetsbinding-radix-vite.brotliminimal-budgetsbinding-radix-esbuild.rawminimal-budgetsbinding-radix-esbuild.gzipminimal-budgetsbinding-radix-esbuild.brotliminimal-budgetsbinding-mantine-hooks-vite.rawminimal-budgetsbinding-mantine-hooks-vite.gzipminimal-budgetsbinding-mantine-hooks-vite.brotliminimal-budgetsbinding-mantine-hooks-esbuild.rawminimal-budgetsbinding-mantine-hooks-esbuild.gzipminimal-budgetsbinding-mantine-hooks-esbuild.brotliminimal-budgetsbinding-apollo-client-vite.rawminimal-budgetsbinding-apollo-client-vite.gzipminimal-budgetsbinding-apollo-client-esbuild.rawminimal-budgetsbinding-apollo-client-esbuild.gzipminimal-budgetsbinding-apollo-client-esbuild.brotliminimal-budgetsbinding-usehooks-ts-vite.rawminimal-budgetsbinding-usehooks-ts-vite.gzipminimal-budgetsbinding-usehooks-ts-vite.brotliminimal-budgetsbinding-usehooks-ts-esbuild.rawminimal-budgetsbinding-usehooks-ts-esbuild.gzipminimal-budgetsbinding-usehooks-ts-esbuild.brotliapp-budgetsrows.framework.rawapp-budgetsrows.framework.gzipapp-budgetsrows.framework.brotliapp-budgetsrows.total.rawapp-budgetsrows.total.gzipapp-budgetsrows.total.brotliapp-budgetstodo.framework.rawapp-budgetstodo.framework.gzipapp-budgetstodo.framework.brotliapp-budgetstodo.total.rawapp-budgetstodo.total.gzipapp-budgetstodo.total.brotliapp-budgetschat.framework.rawapp-budgetschat.framework.gzipapp-budgetschat.framework.brotliapp-budgetschat.total.rawapp-budgetschat.total.gzipapp-budgetschat.total.brotliapp-budgetsweather.framework.rawapp-budgetsweather.framework.gzipapp-budgetsweather.framework.brotliapp-budgetsweather.total.rawapp-budgetsweather.total.gzipapp-budgetsweather.total.brotliapp-budgetsbindings.framework.rawapp-budgetsbindings.framework.gzipapp-budgetsbindings.framework.brotliapp-budgetsbindings.total.rawapp-budgetsbindings.total.gzipapp-budgetsbindings.total.brotlijsx-budgetsframework.rawjsx-budgetsframework.gzipjsx-budgetsframework.brotlijsx-budgetstotal.rawjsx-budgetstotal.gzipjsx-budgetstotal.brotliValidation
node benchmarks/bundle-size/budget-raises.mjs --base origin/main --head HEAD: "103 raise(s) in a budget-only change"prettier --checkon the three budget filespnpm format:checkpnpm typecheckpnpm test: left to CI (the change is budget JSON only)Risk / follow-ups
Provenance
agent-authored)🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith 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, andjsx-budgets.jsonso 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.