Skip to content

ci(bench): raise byte budgets for the de-opt survivor fast path - #1676

Merged
trueadm merged 1 commit into
mainfrom
ci/budget-deopt-survivor
Oct 3, 2026
Merged

trueadm merged 1 commit into
mainfrom
ci/budget-deopt-survivor

Conversation

@trueadm

@trueadm trueadm commented Oct 3, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Raises the 21 byte budgets that #1664 (de-opt survivor fast path) exceeds. Each is set to #1664's measured bytes plus 32 for raw and gzip, and plus 256 for brotli, following #1638's convention. Per the report's policy, this raise lands on its own instead of inside the feature PR.

Merge order: land this before #1664. On main alone these raises are slack. If #1664 doesn't land, close this PR.

Interaction with #1639 (budgets owner's check, with #1664's head merged into #1639 at ea780ae). #1639 adds a new bindings app budget key, and #1664 grows that app's framework chunk.

Why

#1664 lets a surviving value-position list row (createElement descriptors, as every @octanejs/* binding renders) take its component's memo bail without entering the item render. Results:

The bytes are the fast path itself, updateDeoptComponent. It reaches compiled-@for code only as data (ForSlot.plainDeopt), so compiled-only apps pay +20 raw / about +10 gzip and stay inside their budgets, apart from weather's total gzip, whose headroom had fallen to 7 bytes.

Changes

Measured in PR bench run 37140101926 (#1664's merge commit with main d826c3e):

file budget old new Δ
app-budgets weather total gzip 57,795 57,829 +34
jsx-budgets framework raw / gzip 218,637 / 69,553 219,443 / 69,806 +806 / +253
jsx-budgets total raw / gzip 227,096 / 72,489 227,902 / 72,743 +806 / +254
minimal root-static raw / gzip 203,335 / 64,670 204,143 / 64,929 +808 / +259
minimal binding-base-ui-vite raw / gzip 213,566 / 68,244 214,374 / 68,532 +808 / +288
minimal binding-base-ui-esbuild raw / gzip 211,511 / 68,202 212,312 / 68,447 +801 / +245
minimal binding-radix-vite raw / gzip 215,498 / 68,784 216,304 / 69,074 +806 / +290
minimal binding-radix-esbuild raw / gzip / brotli 213,402 / 68,776 / 59,803 214,201 / 69,035 / 60,125 +799 / +259 / +322
minimal binding-apollo-client-vite raw / gzip / brotli 358,558 / 112,330 / 98,226 359,368 / 112,608 / 98,502 +810 / +278 / +276
minimal binding-apollo-client-esbuild raw / gzip 361,495 / 114,525 362,298 / 114,774 +803 / +249

Validation

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
Only updates benchmark budget JSON thresholds; no runtime or application logic changes.

Overview
Raises bundle-size CI ceilings in app-budgets.json, jsx-budgets.json, and minimal-budgets.json so the de-opt survivor fast path from #1664 can pass the budget gate without landing the threshold bumps inside the feature PR.

Weather total gzip gets a small bump (+34). JSX framework/total raw and gzip rise (~+800 raw / ~+250 gzip). Minimal budgets for root-static, several @octanejs/* binding fixtures (base-ui, radix, apollo-client, vite/esbuild variants), and one radix-esbuild brotli value are updated to match post-#1664 measurements plus the repo’s usual headroom (+32 raw/gzip, +256 brotli where applied).

Intended to merge with #1664; on main alone these limits are looser than needed.

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

#1664 lets a surviving value-position list row whose
descriptor names the same component take the memo bail without entering its
item render. memo-wall one_change_B goes from 1.30-1.41x to 0.80x React
Compiler (paired, same runner). Per bailed row it drops from 48 to 26
production calls and from 8 root-journal slots to 0.

The fast path itself (updateDeoptComponent) is code that bundles which already
contain the descriptor renderer now carry: about +800 raw / +210-290 gzip.
Compiled-only applications pay +20 raw / about +10 gzip for the shared call,
which fits their budgets except weather's total gzip, whose headroom had
fallen to 7 bytes.

Each budget below is set to #1664's measured bytes (PR bench run 37140101926,
on its merge commit with main d826c3e) plus 32 for raw and gzip and plus
256 for brotli, as #1638 set them. Only values #1664 exceeds change.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@vercel
vercel Bot temporarily deployed to Preview – octane-website October 3, 2026 17:31 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp October 3, 2026 17:31 Inactive
@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 5:32pm UTC
octane-website-mcp Skipped Skipped Oct 3, 2026 5:32pm UTC

Request Review

@trueadm
trueadm marked this pull request as ready for review October 3, 2026 17:32
@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 d826c3e09, the merge commit's first parent with 4f36ab068 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 select_lots 0.006 0.006 −7.8% −8.1% … −7.2% 🟢 faster
All 20 timed operations (19 without a verdict)
target operation base ms head ms head/base 95% CI
octane-tsrx run 3.233 3.483 +3.1% −1.5% … +6.1% ⚪ within noise
octane-tsrx replace 7.142 6.883 −0.8% −5.8% … +1.5% ⚪ within noise
octane-tsrx add 2.725 2.658 ±0.0% −3.6% … ±0.0% ⚪ within noise
octane-tsrx update 0.132 0.131 −1.2% −2.1% … +0.3% ⚪ within noise
octane-tsrx select 0.006 0.006 +0.0% −0.6% … +1.1% ⚪ within noise
octane-tsrx swap 0.037 0.038 +1.5% +0.4% … +1.5% ⚪ within noise
octane-tsrx remove 0.020 0.019 −2.8% −5.5% … −0.8% ⚪ within noise
octane-tsrx runlots 27.467 26.625 −5.1% −10.6% … +0.8% ⚪ within noise
octane-tsrx select_lots 0.006 0.006 −7.8% −8.1% … −7.2% 🟢 faster
octane-tsrx clear 47.575 49.508 +1.4% −1.4% … +4.2% ⚪ within noise
octane-jsx run 3.850 3.892 +0.0% −2.6% … +2.6% ⚪ within noise
octane-jsx replace 7.517 7.225 −0.7% −2.8% … +1.9% ⚪ within noise
octane-jsx add 3.542 3.583 ±0.0% −1.4% … +2.8% ⚪ within noise
octane-jsx update 0.268 0.267 −1.0% −1.4% … ±0.0% ⚪ within noise
octane-jsx select 0.143 0.139 +0.5% −0.3% … +1.4% ⚪ within noise
octane-jsx swap 0.244 0.243 +0.6% −1.7% … +1.7% ⚪ within noise
octane-jsx remove 0.188 0.187 −0.3% −1.3% … +0.6% ⚪ within noise
octane-jsx runlots 32.200 32.350 −1.9% −3.5% … +1.6% ⚪ within noise
octane-jsx select_lots 1.621 1.661 +0.3% −1.2% … +1.9% ⚪ within noise
octane-jsx clear 53.883 53.517 +0.8% −0.6% … +2.1% ⚪ within noise

All 64 work counters are unchanged.

Application bundle size (bytes)

No changes across 45 measured values.

Public-import reachability bundles (bytes)

No changes across 105 measured values.

@trueadm
trueadm merged commit 33408e5 into main Oct 3, 2026
54 of 56 checks passed
@trueadm
trueadm deleted the ci/budget-deopt-survivor branch October 3, 2026 18:37
trueadm added a commit that referenced this pull request Oct 3, 2026
…nd warm-plan perf PRs (#1687)

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]>

This branch was previously deployed

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