Repository navigation
ci(bench): raise two brotli budgets for the TSRX 0.5 reformat - #1727
Merged
Merged
Conversation
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]>
|
The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
|
leonidaz
marked this pull request as ready for review
October 4, 2026 18:58
trueadm
approved these changes
Oct 4, 2026
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. |
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]>
24 of 25 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
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.mjsenforces that.Why the bytes are worth it. #1399 reformats the repository's
.tsrxsources 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 forbinding-apollo-client-viteand +64 forsuspense-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.minimal-budgets.jsonbinding-apollo-client-vite.brotliminimal-budgets.jsonsuspense-transition.brotlirun-minimal.mjs --write-budgetsandrun.mjs --write-budgets octane-tsrx octane-jsxon fix: update the TSRX toolchain to @tsrx/core 0.5 and the new formatter #1399's head breach nothing else. Several budgets would ratchet down; they are left alone so this PR stays a raise.Validation
pnpm format:check: not run repo-wide. The diff changes two numeric values in a JSON file;prettier --checkon it passes.pnpm typecheck: not applicable, budget data only.pnpm test: not applicable, budget data only.node benchmarks/bundle-size/run-minimal.mjs binding-apollo-client-vite binding-apollo-client-esbuild suspense-transitionon main 8489303 and on fix: update the TSRX toolchain to @tsrx/core 0.5 and the new formatter #1399 at 927e5e8 gives the measurements above.node benchmarks/bundle-size/run-minimal.mjs --write-budgetsandnode benchmarks/bundle-size/run.mjs --write-budgets octane-tsrx octane-jsxon fix: update the TSRX toolchain to @tsrx/core 0.5 and the new formatter #1399's head raise only these two values.node benchmarks/bundle-size/budget-raises.mjs --base origin/mainreports2 raise(s) in a budget-only change.Provenance
agent-authored)🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith 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.jsonforsuspense-transition(46,608 → 46,866) andbinding-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.