Repository navigation
ci(bench): raise byte budgets for the scoped-read, de-opt survivor, and warm-plan perf PRs - #1687
Merged
Merged
Conversation
…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
marked this pull request as ready for review
October 3, 2026 19:19
|
The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
|
4 of 5 tasks
Contributor
Benchmark report🟢 No budget breaches, no added work, and no timing changes beyond ±3%. Compares js-framework: 1k/10k row operationsAll 20 timed operations (20 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. |
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]>
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.
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:
updateDeoptComponent). memo-wallone_change_Bgoes from 1.30–1.41x to 0.80x React Compiler. ci(bench): raise byte budgets for the de-opt survivor fast path #1676 raised its budgets, but ci: enforce every byte budget on pull requests and keep raises out of feature changes #1639 had already added thebindingsapp key, which ci(bench): raise byte budgets for the de-opt survivor fast path #1676 did not cover. That chunk grows +809 raw / +290 gzip, and every compiled-only app grows +20 raw for the sharedForSlot.plainDeoptcall.!==guards.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.Validation
node benchmarks/bundle-size/budget-raises.mjs --base origin/main: 40 raises in a budget-only change.pnpm format:files:checkon the three budget files.pnpm sync: no generated changes.bundle-sizeandbundle-reachabilityon the five trees above.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
Benchmark threshold JSON only; no production runtime or security behavior changes.
Overview
Raises committed bundle-size budgets in
app-budgets.json,jsx-budgets.json, andminimal-budgets.jsonso 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.