Repository navigation
ci(bench): raise byte budgets for the passive-cascade update budget fix - #1689
Merged
Merged
Conversation
Raise 72 byte budgets to the bytes #1688 measures plus the usual headroom (32 raw/gzip, 256 brotli). #1688 gives each passive-driven commit a fresh nested-update budget and holds passive effects for one render when a budget runs out. That adds about 250 raw and 100 gzip bytes of scheduler code to every bundle, all inline on the commit path so the PR benchmark's call counters stay flat. Budgets only; no other change. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
|
trueadm
marked this pull request as ready for review
October 3, 2026 20:49
2 of 5 tasks
Contributor
Benchmark report
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)
50 other measured values are unchanged. Public-import reachability bundles (bytes)No changes across 105 measured values. |
4 of 7 tasks
2 of 5 tasks
trueadm
added a commit
that referenced
this pull request
Oct 4, 2026
#1690 (stacked on #1688) fits every raw and gzip budget that #1689 raised, but measures two brotli values above main's budgets: hydrate-root 48,099 and chat/total 40,951. Raise both to that measurement plus the 256-byte brotli headroom (48,355 and 41,207), so the budgets cover #1688 alone and #1688 + #1690. Budgets only. Co-authored-by: Claude Opus 5.5 <[email protected]>
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
Budget-only raise for #1688 (fix(octane): give each passive-driven commit a fresh nested-update budget). Merge this first, then #1688. CONTRIBUTING "Size budgets" keeps a raise out of the change that needs it, and
budget-raises.mjsenforces that.Why the bytes are worth it. On main, a passive effect that advances state once per commit throws "Maximum update depth exceeded" around step 50 whenever a
useLayoutEffectoruseLayoutSnapshotpublishes one converging measurement per commit. React allows that cascade. #1688 fixes it in the scheduler:commitRootImplrule.Why it cannot be smaller. All the new logic runs inline on the commit path. A helper that saved about 78 raw bytes made 4 extra function calls per operation, which failed the PR benchmark's exact call counters, so it was removed. No development-only code reaches production bundles.
Bytes. Every bundle grows by about 250 raw and 100 gzip bytes. For example,
cli-spa-startergoes from 115,177 to 115,434 raw (+257) and 38,886 to 38,987 gzip (+101).hooks-stategoes from 89,148 to 89,400 raw (+252) and 29,603 to 29,708 gzip (+105).Each new budget is #1688's measured bytes on its head 342e28a (merged with main 16d6090), plus the usual headroom: 32 raw and gzip, 256 brotli. Only breached metrics are raised. Stale headroom elsewhere is left alone, so other open PRs keep it. The 72 raises run from +248 to +280 raw and +85 to +146 gzip, relative to the current budgets.
All 72 raised budgets
minimal-budgets.jsoncli-spa-starter.rawminimal-budgets.jsoncli-spa-starter.gzipminimal-budgets.jsonroot-static-specialized.rawminimal-budgets.jsonroot-static-specialized.gzipminimal-budgets.jsonroot-chained-jsx.rawminimal-budgets.jsonroot-chained-jsx.gzipminimal-budgets.jsonroot-static.rawminimal-budgets.jsonroot-static.gzipminimal-budgets.jsonroot-static-local.rawminimal-budgets.jsonroot-static-local.gzipminimal-budgets.jsonhooks-state.rawminimal-budgets.jsonhooks-state.gzipminimal-budgets.jsonprop-attributes.rawminimal-budgets.jsonprop-attributes.gzipminimal-budgets.jsoncontext.rawminimal-budgets.jsoncontext.gzipminimal-budgets.jsonhydrate-root.rawminimal-budgets.jsonhydrate-root.gzipminimal-budgets.jsondeferred-hydration.rawminimal-budgets.jsondeferred-hydration.gzipminimal-budgets.jsonsuspense-transition.rawminimal-budgets.jsonsuspense-transition.gzipminimal-budgets.jsoncomponent-owned-effects.rawminimal-budgets.jsoncomponent-owned-effects.gzipminimal-budgets.jsonbinding-hooks.rawminimal-budgets.jsonbinding-hooks.gzipminimal-budgets.jsonbinding-base-ui-vite.rawminimal-budgets.jsonbinding-base-ui-vite.gzipminimal-budgets.jsonbinding-base-ui-esbuild.rawminimal-budgets.jsonbinding-base-ui-esbuild.gzipminimal-budgets.jsonbinding-radix-vite.rawminimal-budgets.jsonbinding-radix-vite.gzipminimal-budgets.jsonbinding-radix-esbuild.rawminimal-budgets.jsonbinding-radix-esbuild.gzipminimal-budgets.jsonbinding-mantine-hooks-vite.rawminimal-budgets.jsonbinding-mantine-hooks-vite.gzipminimal-budgets.jsonbinding-mantine-hooks-esbuild.rawminimal-budgets.jsonbinding-mantine-hooks-esbuild.gzipminimal-budgets.jsonbinding-apollo-client-vite.rawminimal-budgets.jsonbinding-apollo-client-vite.gzipminimal-budgets.jsonbinding-apollo-client-esbuild.rawminimal-budgets.jsonbinding-apollo-client-esbuild.gzipminimal-budgets.jsonbinding-usehooks-ts-vite.rawminimal-budgets.jsonbinding-usehooks-ts-vite.gzipminimal-budgets.jsonbinding-usehooks-ts-esbuild.rawminimal-budgets.jsonbinding-usehooks-ts-esbuild.gzipapp-budgets.jsonrows.framework.rawapp-budgets.jsonrows.framework.gzipapp-budgets.jsonrows.total.rawapp-budgets.jsonrows.total.gzipapp-budgets.jsontodo.framework.rawapp-budgets.jsontodo.framework.gzipapp-budgets.jsontodo.framework.brotliapp-budgets.jsontodo.total.rawapp-budgets.jsontodo.total.gzipapp-budgets.jsontodo.total.brotliapp-budgets.jsonchat.framework.rawapp-budgets.jsonchat.framework.gzipapp-budgets.jsonchat.total.rawapp-budgets.jsonchat.total.gzipapp-budgets.jsonweather.framework.rawapp-budgets.jsonweather.framework.gzipapp-budgets.jsonweather.total.rawapp-budgets.jsonweather.total.gzipapp-budgets.jsonbindings.framework.rawapp-budgets.jsonbindings.framework.gzipapp-budgets.jsonbindings.total.rawapp-budgets.jsonbindings.total.gzipjsx-budgets.jsonframework.rawjsx-budgets.jsonframework.gzipjsx-budgets.jsontotal.rawjsx-budgets.jsontotal.gzipValidation
pnpm format:check(repo-wide, left to CI)pnpm typecheck(no code changes)pnpm test(no code changes)node benchmarks/bundle-size/budget-raises.mjs --base origin/mainreports "72 raise(s) in a budget-only change".run-minimal.mjs --write-budgetsandrun.mjs --write-budgets octane-tsrx octane-jsxran on the fix(octane): give each passive-driven commit a fresh nested-update budget #1688 head. Only the raised values were kept.pnpm format:files:checkon the three budget files passes, andpnpm syncproduces no changes.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
No production or runtime code changes—only benchmark budget JSON used by CI size checks.
Overview
Budget-only CI change that raises bundle size ceilings in
app-budgets.json,jsx-budgets.json, andminimal-budgets.jsonso the size gate can pass after the passive-cascade nested-update fix in #1688 lands.Across 72 metric bumps (only values that would breach), framework/total budgets go up by roughly +248–280 raw and +85–146 gzip per entry (~250/100 on typical fixtures such as
cli-spa-starterandhooks-state). App-only and untouched headroom entries are left as-is. Intended merge order: this PR first, then #1688; budgets should be re-measured or lowered if that follow-up changes or is dropped.Reviewed by Cursor Bugbot for commit 83d9228. Bugbot is set up for automated code reviews on this repo. Configure here.