Repository navigation
ci(bench): rebaseline the CSS-module client minified ratio after #1762 - #1843
Merged
Merged
Conversation
The codegen-size guard for css-modules-client-proven/control minified has breached on main since e233e4a (#1762): 2294 / 2582 = 0.888x against a 0.84 ceiling (0.818x at e233e4a^, 3183 / 3890). #1762 binds opaque holes in modules without signals through plain writers, so each control class binding shrank from bindSignalAttribute (seven arguments plus a signal key) to setClassNameIfChanged. The 15 class bindings the CSS proof removes fell from 755 to 352 minified bytes, so the saving fell from 707 to 288 B. The proof itself did not change: both commits fold the same 15 of 18 classes into byte-identical templates. Raise the ceiling to 0.91 (55 B headroom, 2.4%, against 84 B, 2.6%, before). No other guard changes; every sibling CSS guard still passes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
trueadm
marked this pull request as ready for review
October 7, 2026 10:46
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)No changes across 60 measured values. Public-import reachability bundles (bytes)No changes across 108 measured values. |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
octane-website | 788d11c | Commit Preview URL Branch Preview URL |
Oct 07 2026, 11:14 AM |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
octane-website-mcp | 788d11c | Commit Preview URL Branch Preview URL |
Oct 07 2026, 11:16 AM |
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 is a ratios-only rebaseline. One guard changes in
benchmarks/baselines/ratios.json: the codegen-sizeminifiedguard forcss-modules-client-provenagainstcss-modules-client-controlgoes from 0.84 to 0.91. Itsnoterecords the measurements and the cause.This is an expected rebaseline, not a regression in the compiler's CSS-module constant folding. e233e4a (#1762) made the control variant's class bindings cheaper. The proven variant had already removed those bindings, so its saving relative to the control fell. The folding itself is unchanged.
Why
On main,
node benchmarks/bench.mjs --quick --ratios codegen-sizefails with 2,294 / 2,582 = 0.888×, abovemaxRatio0.84. Bench runs weekly and on manual dispatch, so the next scheduled run would report it.The lane is compiler-only (
benchmarks/codegen-size/css-modules.mjs). I compiled and minified the client fixture with the compiler from e233e4a^ and from e233e4a, then compared the outputs.Evidence that this is a rebaseline:
class={styles.x}hole could carry a signal handle, so the control emittede.d=l(n,e.d,e.e,"class",a.header,"b:1d1fd180","class")(bindSignalAttribute). After it, a module without signals emitse.d=t(n.header,e.d,e.e)(setClassNameIfChanged). The 15 bindings the proof removes cost 755 minified bytes before and 352 after. That 403 B accounts for almost all of the 419 B drop in the saving.setClassNameIfChangedwas imported only by the control; now both variants import it, which is about 27 B. Minifier renaming accounts for the last few bytes.bindSignalTextpath in both, which shrinks the denominator but not the saving.Changes
css-modules-clientminified:maxRatio0.84 → 0.91.notegives the date, the measured bytes, the perf(octane): stop shipping the signal binding runtime in apps without signals #1762 cause, and the headroom.No other guard changes. Every sibling CSS guard moved with #1762 but still passes. Raising a guard that passes would only loosen it:
The raw values depend on the checkout path, because esbuild's unminified output includes absolute namespace paths. The "now" column is from this worktree. Minified, gzip and Brotli do not depend on the path.
Validation
node benchmarks/bench.mjs --quick --ratios codegen-sizeon this head:PASS — no ratio guards breached(34 guards). On main the same command reports the one breach.The same command in detached checkouts of e233e4a^ (passes, 0.818×) and e233e4a (breaches, 0.888×), each with its own
pnpm install --frozen-lockfile.Negative check against the new ceiling. I compiled with a proof that withholds some classes:
So withholding 3 or more of the 15 folds still breaches a guard.
pnpm format:files:check benchmarks/baselines/ratios.jsonpnpm sync(no generated changes)pnpm format:check,pnpm typecheck,pnpm test: not run. The diff is one JSON value and its note.Risk / follow-ups
benchmarks/compiler-output/server.mdmentions this guard breaching at an older revision. That is a historical measurement, so it is left as written.Provenance
agent-authored)🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Note
Low Risk
Only adjusts a CI benchmark threshold and documentation in JSON; no runtime or compiler behavior changes.
Overview
Updates the codegen-size
minifiedratio guard forcss-modules-client-provenvscss-modules-client-controlinbenchmarks/baselines/ratios.json:maxRatio0.84 → 0.91, with an expandednotedocumenting the 2026-10-07 measurement and why the ceiling moved.This is a benchmark rebaseline, not a change to CSS-module constant folding. After #1762, the control client emits cheaper per-class bindings (
setClassNameIfChangedinstead ofbindSignalAttribute), so the proven variant’s relative minified savings dropped (~707 B → ~288 B) even though both still fold the same 15 classes. The new 0.91 cap matches the measured ~0.888× ratio and leaves ~55 B headroom sobench.mjs --quick --ratios codegen-sizepasses again.Reviewed by Cursor Bugbot for commit 788d11c. Bugbot is set up for automated code reviews on this repo. Configure here.