Repository navigation
ci(bench): triage the weekly ratio-guard breaches so new ones show - #1641
Merged
Merged
Conversation
The weekly Bench job (`bench.mjs --quick --ratios`) was red with 81 ratio
breaches, 4 suites that wrote no numbers and 4 harness gate failures, so a new
breach was invisible. Every item is now a fix or a rebaseline.
- Harness drift, fixed. Each harness had stopped producing numbers when runtime
source it anchors on changed:
- ssr-final-replay: a second suspended loop since 2026-09-29.
- root-transactions/contracts: staged-DOM text and attribute journaling since
2026-09-15.
- signal-dom-bindings: a second native style Block allocation site since
2026-09-23.
- codegen-size: the server runtime's lazy streamed-signals chunk since
2026-09-16.
- recursive-context: counted a pure-call annotation and trailing newlines as
output growth.
- Rebaselined, with numbers in each note: five cross-framework bundle-size
ratios and the workerd script-size ratio. The absolute app and server-render
budgets are now the ratchet. Lynx's no-worklet byte caps from 2026-08-17 are
reset to measured + 32, with the background program pinned exactly.
- Fix pending, with dated waivers that expire 2026-10-24, each with an owner
task:
- three exact counters the revived harnesses exposed (one extra closure per
ssrTry, 128 live text reads per 128 unchanged compiled updates, compiled
output at 1.295x its source);
- Lynx create ratios and the re-entrant transport gate;
- superlinear hydrate boundary preparation;
- Octane Three versus R3F size and frame dispatch;
- two timing regressions near the timer floor;
- ten quick-mode timing guards whose samples are noise-bound;
- the scoped descriptor shape change.
- bench.mjs supports a guard `waiver` ({ reason, expires }). A waived breach
prints and does not fail, and fails again once the date passes.
HARNESS_FAILURE_ALLOWLIST now also covers a suite whose harness writes no
numbers.
The budget breaches (57) clear when the budget reset lands.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
Benchmark report
Compares js-framework: 1k/10k row operations (ms, lower is better)All 20 timed operations (20 within noise)
Application bundle size (bytes)
14 other measured values are unchanged. Public-import reachability bundles (bytes)
24 other measured values are unchanged. |
This was referenced Oct 3, 2026
The waived guards now have owner PRs: ssr-final-replay try_closures (#1644), root-transactions equal_reads (#1643) and codegen-size gzip compiled/source (#1645). #1645 rebaselines the same codegen-size entry, so this branch no longer edits it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The lynx-render transport gate failure and the create_1k/create_10k ratio breaches both trace to #885's JSON-encoded transport and now have an owner fix. Its branch re-notes those two guards, so this branch drops their waivers and the suite's allowlist entry instead of editing the same entries. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…es to their owner Waiving a suite that throws before it writes numbers would hide any crash in that suite, not only the known shape change, and skip all of its guards. The scoped-descriptor-shapes defect has an owner fix in progress. That fix re-pins the harness's expected keys, so narrowing the waiver here would edit the same assertion. HARNESS_FAILURE_ALLOWLIST is empty again, and a thrown suite failure always fails the job. Dated waivers remain only on individual ratio guards. Co-Authored-By: Claude Opus 5.5 <[email protected]>
7 of 8 tasks
three-renderer frame_1k_subscribers and the two three-bundle-size ratios have owner PRs (#1651, #1652) that re-note and ratchet those entries, so this branch drops their waivers instead of editing the same entries. Co-Authored-By: Claude Opus 5.5 <[email protected]>
trueadm
marked this pull request as ready for review
October 3, 2026 10:24
7 of 8 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
Triages every failure in the weekly Bench job (
node benchmarks/bench.mjs --quick --ratios) into a fix or a rebaseline, so the job can go green and a new breach shows up. This addresses review findings A4 and H6.Fresh run on main (37082371718, 2026-10-03): 81 ratio breaches, 4 suites that wrote no numbers, 4 harness gate failures.
*-budgetpeers)try_closures), #1643 (root-transactionsequal_reads), #1645 (codegen-size rebaseline to 1.30×)Harness drift fixed
Each of these stopped producing numbers when runtime source it anchors on changed. That hid every guard in the suite.
isStalledWave(fix(ssr): let prerender outlast a reader that rethrows a settled thenable #1409, 2026-09-29) added a secondfor (const { promise, key } of suspended)loop, so the exact-once anchor broke. Both loops are now counted, andsuspended_visitsstays at its 528 budget.(STAGED_DOM?.view(node) ?? node), so the audit's substitutions are re-anchored there.server/streamed-signals.jswithimport(). Rspack emits that asNNN.main.cjs, which the measured entry never evaluates.plain_contextsize check counted the/* @__PURE__ */annotation on module-levelcreateContext, plus the printer's trailing newlines, as output growth.Rebaselined (numbers in each guard's note)
Fixed or rebaselined in owner PRs (not waived here)
The revived harnesses exposed three regressions. Each now has an owner PR off main:
ssr-final-replay
try_closures: 14,784 against 13,728. The cause is feat(islands): renderer-free island activation and islands-only routes #1582's per-callslotarrow inssrTry; perf(ssr): label @try binding arms without a per-call closure #1644 hoists it back to 13,728.root-transactions
equal_reads: 128 live text reads where 0 are allowed. The cause is feat: add async signals and streaming SSR #1069's only-child Text token forcingupdateTextValue's compare; fix(octane): keep a signal-capable only-child text hole's last primitive #1643 brings it to 0.codegen-size gzip compiled/source: 1.294×. Compiler growth on the fixed corpus is 1.124× and the rest is corpus drift; chore(bench): rebaseline the codegen-size gzip ratio #1645 rebaselines to 1.30×, with the attribution in its note.
lynx-render: the re-entrant transport gate failure and
create_1k_rows_ms/create_10k_rows_ms(2.3×/1.4×) trace to fix(lynx): serialize cross-thread transport payloads #885's JSON-encoded transport. The owner session's fix measures 1.14× and 1.13× and re-notes both guards.Three: fix(benchmarks): pass stable checksum callbacks in the Three frame bench #1651 keeps
frame_1k_subscribersat maxRatio 1 (0.81×); the breach came from the bench's per-render callback, not dispatch. perf(octane): ship universal host bindings and template programs only to renderers that use them #1652 ships host bindings and template programs only to renderers that use them, then ratchets three-bundle-size to 1.034/1.024.If this PR merges before those, the weekly job shows them until they land.
Waived until 2026-10-24 (each guard's
waiver.reasonhas the numbers)Real regressions, each with an owner task:
compile_per_1000_boundaries: 23.9× and 19.6× against 1.5.parent_rerender_equal_A, svg-dashboardtooltip_swarm: consistent across two runs but near the timer floor.Noise-bound in
--quick(rme 40–635%, or flipping between runs), waived pending harness hardening:rotateb(both sides under the 0.1 ms timer floor);reports; ssr-workerdcold_spawn_to_first_byte;nav_teardown/nav_mount;ctx_through_wall_B/mount/one_change_B;icon_swap/pan_zoom.Mechanism
bench.mjsreads an optionalwaiver: { reason, expires }on a guard. A waived breach prints! waived until …and does not fail; once the date passes, it fails again with its reason. The loader rejects a waiver without a reason or a valid date.HARNESS_FAILURE_ALLOWLISTstays empty, and a suite that throws before writing numbers is never waivable: that would hide any crash and skip all of the suite's guards. scoped-descriptor-shapes, whose harness throws on the extra__octaneInvocationSiteaccessor added in feat: add async signals and streaming SSR #1069, stays red until its owner fix lands.benchmarks/baselines/README.mdsays every breach is a fix or a rebaseline, and documents the waiver.Validation
11a9da935a: codegen-size, ssr-final-replay, root-transactions contracts, signal-dom-bindings (--quick) and lynx-bundle-size. All write numbers, with no unwaived breach.node benchmarks/bench.mjs --ratios codegen-sizeprints the breach plus! waived until 2026-10-24 …and exits 0.plain_context: client and server each measure 190 ≤ 190 B. The rest of that suite (browser) runs in CI.pnpm sync,pnpm format:files:checkon changed files.gh workflow run bench.yml --ref ci/weekly-ratio-triageonce ci(bench): re-set every byte budget to measured + 32 bytes #1638 is on main and merged in here. Before then, its budget guards still fail.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
Changes are limited to benchmark harnesses, ratio baselines, and CI exit policy; waivers are time-boxed so hidden regressions surface again after 2026-10-24.
Overview
Unblocks the weekly
--quick --ratiosBench job by triaging 81 ratio breaches into harness fixes, rebaselined ceilings, dated waivers, or intentionally left failing until owner PRs land.Runner:
bench.mjsnow honors optional per-guardwaiver: { reason, expires }—waived breaches log! waived until …and do not fail CI until the date passes; invalid waivers fail at load time.benchmarks/baselines/README.mddocuments fix-or-rebaseline policy.HARNESS_FAILURE_ALLOWLISTstays empty so suites that throw before emitting numbers remain non-waivable.Harness drift (suites that stopped writing numbers): Re-anchors or broadens audits for ssr-final-replay (second
suspendedloop), root-transactions/contracts (STAGED_DOM?.viewreads), signal-dom-bindings (second native styleBlocksite), codegen-size (ignore RspackNNN.main.cjsstreamed-signals chunk), and recursive-context (plain_contextbyte check vs/* @__PURE__ *// printer noise).Guards: Rebaselines cross-framework gzip ratios, workerd script vs React, and stale Lynx byte caps; 12 guards get 2026-10-24 waivers for confirmed regressions or
--quicktiming noise. Remaining breaches (e.g.try_closures,equal_reads, codegen-size ratio, lynx-render, three.js frame/bundle, scoped-descriptor-shapes harness throw) stay red for separate fix PRs.Reviewed by Cursor Bugbot for commit dca1b22. Bugbot is set up for automated code reviews on this repo. Configure here.