Skip to content

ci(bench): raise two brotli budgets for the TSRX 0.5 reformat - #1727

Merged
leonidaz merged 2 commits into
mainfrom
ci/raise-budgets-tsrx-0-5-reformat
Oct 4, 2026
Merged

leonidaz merged 2 commits into
mainfrom
ci/raise-budgets-tsrx-0-5-reformat

Conversation

@leonidaz

@leonidaz leonidaz commented Oct 4, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

This raises two brotli budgets for #1399, fix: update the TSRX toolchain to @tsrx/core 0.5 and the new formatter, and changes nothing else. Merge this first, then merge main into #1399. CONTRIBUTING "Size budgets" keeps a raise out of the change that needs it, and budget-raises.mjs enforces that.

Why the bytes are worth it. #1399 reformats the repository's .tsrx sources with the new TSRX formatter. Both bundles compile to code of exactly the same size on main and on #1399: raw and gzip bytes are identical. What changes is the content of position-derived ids (b:…, c:…, i:… hashes and SSR control ids), because reformatting moves the code they hash. Brotli compresses the new ids slightly worse: +151 bytes for binding-apollo-client-vite and +64 for suspense-transition. That is 9 and 2 bytes past budgets that main still clears.

Why it cannot be smaller. No code grows. The ids are hashes of source positions, so any reformat moves brotli by a few bytes in either direction: against an earlier main, 322162c, the esbuild variant of the Apollo scenario measured 18 bytes smaller on #1399. Keeping the old formatting is not an option for a formatter upgrade.

Bytes. These are production bytes from run-minimal.mjs, on Node 24.18. The main column is main 8489303. The head column is #1399 at 927e5e8, which is that main plus the TSRX update. Each new budget is the head measurement plus the usual 256 brotli bytes of headroom, and only the breached metric is raised.

file budget old main measured head measured new Δ budget
minimal-budgets.json binding-apollo-client-vite.brotli 98,502 98,360 98,511 98,767 +265
minimal-budgets.json suspense-transition.brotli 46,608 46,546 46,610 46,866 +258

Validation

  • pnpm format:check: not run repo-wide. The diff changes two numeric values in a JSON file; prettier --check on it passes.
  • pnpm typecheck: not applicable, budget data only.
  • pnpm test: not applicable, budget data only.
  • targeted:

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
Numeric CI budget thresholds only; no runtime, auth, or production code paths.

Overview
Raises only the brotli size ceilings in minimal-budgets.json for suspense-transition (46,608 → 46,866) and binding-apollo-client-vite (98,502 → 98,767). No application or benchmark code changes.

This is a budget-only prep PR so CI stays green when the TSRX 0.5 formatter lands: raw and gzip for those scenarios stay the same, but brotli grows slightly because position-derived bundle ids change after reformat. Merge this before the toolchain/formatter PR per the size-budget workflow (budget-raises.mjs).

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

PR #1399 reformats Octane's .tsrx sources with the new TSRX formatter. The compiled code is byte-identical in size, but position-derived binding ids change, and brotli compresses binding-apollo-client-vite 151 bytes and suspense-transition 64 bytes worse. That puts them 9 and 2 bytes over budget. Raise each to the #1399 measurement plus the usual 256 bytes of brotli headroom.

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

vercel Bot commented Oct 4, 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 4, 2026 6:58pm UTC
octane-website-mcp Skipped Skipped Oct 4, 2026 6:58pm UTC

Request Review

@vercel
vercel Bot temporarily deployed to Preview – octane-website October 4, 2026 18:58 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp October 4, 2026 18:58 Inactive
@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 4, 2026
@leonidaz
leonidaz marked this pull request as ready for review October 4, 2026 18:58
@github-actions

github-actions Bot commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

Benchmark report

  • 🟡 js-framework: 1 timed operation(s) slower beyond ±3%

Compares 3b6db2b38, the merge commit's first parent with 0eae5e5b3 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.005 0.006 +8.8% +8.1% … +10.9% 🟡 slower
All 20 timed operations (19 without a verdict)
target operation base ms head ms head/base 95% CI
octane-tsrx run 2.692 2.667 −0.0% −3.3% … +3.4% ⚪ within noise
octane-tsrx replace 5.233 5.333 +1.9% −1.8% … +3.6% ⚪ within noise
octane-tsrx add 2.592 2.525 −1.9% −6.1% … +4.3% ⚪ within noise
octane-tsrx update 0.119 0.119 −0.3% −1.5% … +1.3% ⚪ within noise
octane-tsrx select 0.005 0.005 ±0.0% −0.5% … ±0.0% ⚪ within noise
octane-tsrx swap 0.032 0.032 +0.4% ±0.0% … +0.9% ⚪ within noise
octane-tsrx remove 0.016 0.016 +0.8% −1.5% … +5.7% ⚪ within noise
octane-tsrx runlots 23.142 24.242 +0.9% −0.9% … +5.3% ⚪ within noise
octane-tsrx select_lots 0.005 0.006 +8.8% +8.1% … +10.9% 🟡 slower
octane-tsrx clear 38.275 40.225 +4.0% +2.2% … +5.1% ⚪ within noise
octane-jsx run 3.192 3.200 ±0.0% −3.0% … +2.7% ⚪ within noise
octane-jsx replace 5.917 5.883 ±0.0% −1.7% … +1.8% ⚪ within noise
octane-jsx add 3.000 3.033 +1.6% −0.0% … +3.3% ⚪ within noise
octane-jsx update 0.233 0.237 +2.1% +0.7% … +3.5% ⚪ within noise
octane-jsx select 0.124 0.123 ±0.0% −1.3% … +2.9% ⚪ within noise
octane-jsx swap 0.217 0.219 +0.5% ±0.0% … +1.1% ⚪ within noise
octane-jsx remove 0.165 0.167 +2.0% +0.9% … +3.8% ⚪ within noise
octane-jsx runlots 26.617 26.658 +1.7% −0.2% … +3.6% ⚪ within noise
octane-jsx select_lots 1.357 1.376 +1.3% +0.3% … +2.7% ⚪ within noise
octane-jsx clear 45.775 44.650 +0.8% −1.6% … +4.1% ⚪ within noise

All 64 work counters are unchanged.

Application bundle size (bytes)

target metric base head Δ
octane-tsrx bindings_js_gzip 240,865 240,853 −12 (−0.0%) 🟢
octane-tsrx bindings_js_brotli 205,129 204,952 −177 (−0.1%) 🟢
octane-tsrx bindings_app_gzip 121,729 121,717 −12 (−0.0%) 🟢
octane-tsrx bindings_app_brotli 101,815 101,638 −177 (−0.2%) 🟢

50 other measured values are unchanged.

Public-import reachability bundles (bytes)

No changes across 105 measured values.

leonidaz added a commit that referenced this pull request Oct 4, 2026
Takes the two brotli budget raises from #1727 so the test shards run before it lands on main; merging main after #1727 lands removes them from this pull request's diff.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@leonidaz
leonidaz merged commit fa0ce96 into main Oct 4, 2026
30 checks passed
@leonidaz
leonidaz deleted the ci/raise-budgets-tsrx-0-5-reformat branch October 4, 2026 19:47
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.

2 participants