Skip to content

fix(benchmarks): pair the timing samples behind waived ratio guards and re-judge them - #1646

Merged
trueadm merged 16 commits into
mainfrom
fix/bench-paired-timing
Oct 3, 2026
Merged

trueadm merged 16 commits into
mainfrom
fix/bench-paired-timing

Conversation

@trueadm

@trueadm trueadm commented Oct 3, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Stacked on #1641 (ci/weekly-ratio-triage), which adds dated waiver support. Review the three commits after ci(bench): triage the weekly ratio-guard breaches…. This branch rebases onto main once #1641 lands.

#1641 waived twelve timing guards whose weekly breaches could not be judged. The samples sat near Chromium's 100 µs clock or rested on two samples, and each target ran its whole block minutes apart from the other side of its guard. This PR hardens those harnesses, then re-judges every guard from paired CI runs and same-runner A/B runs against the commits that set the guards.

Harnesses (new benchmarks/lib/paired.mjs: a rotating per-round visit order and the ~20 ms calibration)

  • js-framework-reorder, memo-wall, svg-dashboard, spa-navigation: every target's page stays open in one browser, each in its own context, and every sample round visits all targets in a rotating order. Short operations repeat until a sample takes about 20 ms: clicks, hook invocations, op batches, and summed navigation legs with a GC before each timed leg.
  • activity caught-reveal: a sample reveals several independent hidden roots in one window. The small case reveals 8× the large case's roots, so both cases do equal work, and the cases alternate per round. Quick mode takes at least 5 samples.
  • ssr-workerd: each target gets an untimed priming spawn, then cold spawns run in paired rounds. Quick mode runs 6 rounds instead of 2. The first workerd launch of a run also pages in the binary, which used to land on whichever target ran first.
  • bench.yml: a suites dispatch input runs selected suites.

Guards (benchmarks/baselines/ratios.json)

Guard Weekly (unpaired) Paired, final 2 quick runs Same-runner A/B, then → now Outcome
activity reports (≤1.35) 1.06×, 1.63× (rme 79–635%) 1.07×, 1.15× — waiver removed
ssr-workerd cold_spawn_to_first_byte (≤1.2) 1.56×, 1.36× (rme >500%) 0.75×, 0.74× — waiver removed
svg pan_zoom (≤0.7) 0.68×, 0.71× 0.51×, 0.51× Octane 2.30 → 2.19 ms waiver removed
memo-wall mount jsx/tsrx (≤1.6) 1.18×, 1.73× 1.38×, 1.35× — waiver removed
memo-wall parent_rerender_equal_A (≤0.6) 0.63×, 0.65× 0.55×, 0.54× Octane 0.45 → 0.94 µs waiver removed; regression chipped
spa nav_teardown (≤1.6) 0.67×, 1.80× 1.13×, 1.22× 1.29× at #674 → 1.24× now waiver removed
spa nav_mount (1.2 → 1.35) 1.17×, 1.20× 1.10×, 1.16× 1.15× at #674 → 1.09× now rebaselined: the 1.2 came from a local 0.94×
svg icon_swap (1.2 → 1.6) 1.13×, 1.30× 1.28×, 1.28× Octane 3.09 → 3.21 ms; React 2.98 → 2.55 ms from #983's esbuild rebaselined
reorder rotateb (≤0.6) 0.62×, 0.62× 0.62×, 0.65× Octane 0.046 → 0.064 ms (1.41×) confirmed regression, waiver kept
memo-wall one_change_B (≤1.4) 1.37×, 1.47× 1.31×, 1.27× Octane 0.18 → 0.27 ms (1.5×) confirmed regression, waiver kept
memo-wall ctx_through_wall_B (≤0.85) 0.82×, 1.23× 0.84×, 0.88× Octane 0.47 → 0.68 ms (1.44×) confirmed regression, waiver kept
svg tooltip_swarm (≤0.8) 0.93×, 0.83× 0.76×, 0.76× Octane 1.74 → 2.28 ms (1.31×) confirmed regression, waiver kept

The A/B runs served three builds at once: the guard-setting commit's fixtures (#639 for reorder and memo-wall, #635 for svg, #674 for spa), today's fixtures, and today's fixtures rebuilt with the pre-#983 minifier. The rebuild matched today's numbers everywhere, so the minifier does not explain any Octane slowdown. React got 10–20% faster from #983's esbuild minification, which is why icon_swap is a rebaseline and not a regression.

rotateb's note claimed React moves every survivor; with production React it moves one, as LIS does. A new rotatef guard (≤0.15, measured 0.042–0.045×) covers the LIS-vs-lastPlacedIndex differentiator, where React moves all 999 rows.

Validation

  • Paired harness CI runs before the guard edits: 37107144486, 37107153269. Every harness exited 0 with its gates passing. The jobs failed only on breaches, because main has no waivers.
  • A/B runs: memo-wall + svg, spa, reorder.
  • Final validation runs with this guard set, both green: 37108140665, 37108144324 (--quick --ratios over all six suites; 84 guards checked, the only breaches are the waived rotateb and ctx_through_wall_B). The nav_mount rebaseline came after them and only loosens a passing guard.
  • pnpm format:files:check and pnpm typecheck:files on the activity fixture pass. No benchmarks ran locally.
  • pnpm format:check
  • pnpm typecheck
  • pnpm test

Risk / follow-ups

  • The confirmed regressions span every keyed op (removefirst 1.9×, 100-row inserts 1.6–1.9×), memo-wall (parent re-render 2.1×, mount 1.29×) and SVG portals. A bisect-and-fix task carries the A/B method, and the kept waivers name it. The waivers expire on 2026-10-24.
  • Absolute timings in benchmarks/baselines/local/ predate the new sampling; re-record them deliberately.

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

Medium Risk
Changes how CI ratio guards are sampled and which breaches fail vs waive; mis-tuned pairing or rebaselines could hide real regressions or cause flaky CI, though product runtime code is largely untouched.

Overview
Introduces benchmarks/lib/paired.mjs and rewires the browser timing suites that feed ratio guards so targets are measured in the same run, interleaved per sample (rotating visit order) instead of back-to-back blocks minutes apart. Short work is scaled to ~20 ms samples via calibratedReps / SAMPLE_MS, including reorder clicks, memo-wall batches, SVG op repeats, SPA navigation legs (GC before each timed leg), activity caught-reveal (many hidden roots per sample with equal total boundary work), and ssr-workerd cold spawns (untimed priming spawn per target, then paired rounds; quick mode 6 rounds).

bench.yml adds a manual suites input passed through BENCH_SUITES; bench.mjs bumps caught-reveal quick iterations to at least 5 and documents waiver handling already on the stack.

ratios.json is re-triaged after paired CI/A/B runs: waivers dropped where noise drove weekly failures (activity caught-reveal, workerd cold start, several memo/svg/spa guards), waivers kept for confirmed Octane regressions (rotateb, memo-wall, tooltip_swarm, hydrate slicing, etc.), ceilings rebaselined where methodology or React minification shifted baselines (nav_mount, icon_swap, bundle gzip ratios), and a new js-framework-reorder rotatef guard replaces the old rotateb LIS story.

Smaller harness fixes track bundler/runtime drift (Rspack async chunk, root-transaction journal hooks, scoped-signal block counts, Lynx gzip budgets, plain-hook byte normalization).

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

trueadm and others added 5 commits October 3, 2026 08:43
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]>
…atio guards

Twelve timing guards breached in weekly quick runs without a verdict. Their
samples sat near Chromium's 100 µs clock or under two-sample noise, and each
target ran its whole block minutes after the other side of its guard.

- benchmarks/lib/paired.mjs: rotating per-round visit order and a ~20 ms
  sample calibration shared by the harnesses below.
- js-framework-reorder, memo-wall, svg-dashboard, spa-navigation: every
  target's page stays open in one browser and each sample round visits all
  targets; short ops repeat until a sample takes about 20 ms (clicks,
  hook invocations, op batches, and summed navigation legs).
- activity caught-reveal: a sample reveals several independent hidden roots
  in one window, with the small case revealing eight times as many roots so
  both cases do equal work; the cases alternate per round.
- ssr-workerd: an untimed priming spawn per target, then paired cold-spawn
  rounds; quick mode runs six rounds instead of two.
- bench.yml: a `suites` dispatch input to run selected suites.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The untimed return leg mounts a whole route, and its collection landed
inside the next timed teardown: nav_teardown samples ran at 17-45% rme.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… samples

Two quick CI runs of the paired, ~20 ms harness and same-runner A/B runs
against the commits that set each guard decided every waiver:

- Passing, waiver removed: activity reports, ssr-workerd
  cold_spawn_to_first_byte, svg-dashboard pan_zoom, memo-wall
  parent_rerender_equal_A and octane-jsx mount, spa-navigation
  nav_teardown and nav_mount (no Octane change since #674 on one runner).
- Rebaselined: svg-dashboard icon_swap 1.2 -> 1.6, because #983's esbuild
  minification made React 15% faster while Octane stayed flat.
- Confirmed Octane regressions, waiver kept and pointed at the fix:
  js-framework-reorder rotateb (1.41x per click since #639), memo-wall
  one_change_B (1.5x) and ctx_through_wall_B (1.44x), and svg-dashboard
  tooltip_swarm (1.31x since #635).
- The rotateb note claimed React moves every survivor; it moves one. A new
  rotatef guard covers the LIS-vs-lastPlacedIndex differentiator (0.043x).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The 1.2 ceiling came from a local 0.94x reading. On CI runners #674 itself
measures 1.15x and head 1.09-1.16x, so the ceiling left 3% of quick-mode
headroom; 1.35 keeps a margin while still catching per-node mount growth.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added agent-authored Diff or issue body substantially produced by an AI agent fix PR: bug fix labels Oct 3, 2026
@trueadm
trueadm marked this pull request as ready for review October 3, 2026 08:08
trueadm and others added 4 commits October 3, 2026 09:08
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]>

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix prepared a fix for the issue found in the latest run.

  • ✅ Fixed: Non-empty harness failure allowlist restored
    • Restored HARNESS_FAILURE_ALLOWLIST to an empty object and removed the catch-block waiver logic that let a suite crash silently pass CI, matching the #1592 requirement.

Create PR

Or push these changes by commenting:

@cursor push ad9a0cf49b
Preview (ad9a0cf49b)
diff --git a/benchmarks/bench.mjs b/benchmarks/bench.mjs
--- a/benchmarks/bench.mjs
+++ b/benchmarks/bench.mjs
@@ -59,16 +59,7 @@
 // waiver here. A waiver needs a reason (ideally an issue link) and an expiry
 // date — when it lapses the failure becomes fatal again and must be re-triaged,
 // so a known-bug exemption cannot quietly become permanent.
-//
-// A waiver also covers a suite whose harness fails before it writes numbers,
-// since that hides every guard in the suite until the failure is fixed.
-const HARNESS_FAILURE_ALLOWLIST = {
-	'scoped-descriptor-shapes': {
-		reason:
-			'Since #1069 (2026-09-16) every scoped element descriptor defines an enumerable __octaneInvocationSite accessor that ordinary descriptors carry only when set, so the two no longer share one shape. Decide the descriptor contract, then re-pin the expected keys.',
-		expires: '2026-10-24',
-	},
-};
+const HARNESS_FAILURE_ALLOWLIST = {};
 const todayISO = () => new Date().toISOString().slice(0, 10);
 
 const SUITES = [
@@ -1880,13 +1871,6 @@
 			const res = await runSuite(suite);
 			resultsBySuite.set(suite.name, res);
 		} catch (e) {
-			const waiver = HARNESS_FAILURE_ALLOWLIST[suite.name];
-			if (waiver && todayISO() <= waiver.expires) {
-				console.error(
-					`! ${suite.name}: ${e.message} — waived until ${waiver.expires} (${waiver.reason})`,
-				);
-				continue;
-			}
 			console.error(`✗ ${suite.name}: ${e.message}`);
 			hardErrors.push(`${suite.name}: ${e.message}`);
 		}

You can send follow-ups to the cloud agent here.

Reviewed by Cursor Bugbot for commit 7f4def6. Configure here.

Comment thread benchmarks/bench.mjs Resolved
@github-actions

github-actions Bot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Benchmark report

  • 🔴 bundle-size: 8 value(s) increased
  • 🔴 bundle-reachability: 7 value(s) increased

Compares 421287457 with 50f56a11a on the same runner. Timing verdicts require a change beyond the combined margin of error (at least 5%) and one 0.1ms timer tick, with the fastest sample also moving beyond that margin. Workflow run

js-framework: 1k/10k row operations (ms, lower is better)

All 20 timed operations (20 within noise)
target operation base head Δ noise
octane-tsrx run 3.31 3.32 +0.3% ±5% ⚪ within noise
octane-tsrx replace 8.03 7.93 −1.2% ±27% ⚪ within noise
octane-tsrx add 3.35 3.43 +2.4% ±12% ⚪ within noise
octane-tsrx update 0.42 0.43 +2.4% ±45% ⚪ within noise
octane-tsrx select 0.21 0.22 +4.8% ±64% ⚪ within noise
octane-tsrx swap 0.45 0.41 −8.9% ±48% ⚪ within noise
octane-tsrx remove 0.43 0.41 −4.7% ±50% ⚪ within noise
octane-tsrx runlots 29.94 31.19 +4.2% ±14% ⚪ within noise
octane-tsrx select_lots 0.25 0.25 −0.0% ±47% ⚪ within noise
octane-tsrx clear 45.86 44.82 −2.3% ±5% ⚪ within noise
octane-jsx run 3.77 3.54 −6.1% ±12% ⚪ within noise
octane-jsx replace 8.10 7.17 −11.5% ±18% ⚪ within noise
octane-jsx add 3.31 3.20 −3.3% ±7% ⚪ within noise
octane-jsx update 0.56 0.57 +1.8% ±27% ⚪ within noise
octane-jsx select 0.41 0.43 +4.9% ±34% ⚪ within noise
octane-jsx swap 0.70 0.67 −4.3% ±28% ⚪ within noise
octane-jsx remove 0.70 0.65 −7.1% ±17% ⚪ within noise
octane-jsx runlots 30.36 28.09 −7.5% ±11% ⚪ within noise
octane-jsx select_lots 2.73 2.57 −5.9% ±32% ⚪ within noise
octane-jsx clear 47.86 46.10 −3.7% ±13% ⚪ within noise

Application bundle size (bytes)

target metric base head Δ
octane-tsrx js_raw 125,203 125,057 −146 (−0.1%) 🟢
octane-tsrx js_gzip 41,356 41,337 −19 (−0.0%) 🟢
octane-tsrx js_brotli 36,465 36,482 +17 (+0.0%) 🔴
octane-tsrx app_brotli 2,226 2,224 −2 (−0.1%) 🟢
octane-tsrx fw_raw 117,691 117,545 −146 (−0.1%) 🟢
octane-tsrx fw_gzip 38,794 38,775 −19 (−0.0%) 🟢
octane-tsrx fw_brotli 34,239 34,258 +19 (+0.1%) 🔴
octane-tsrx todo_js_raw 140,590 140,534 −56 (−0.0%) 🟢
octane-tsrx todo_js_gzip 46,407 46,386 −21 (−0.0%) 🟢
octane-tsrx todo_js_brotli 40,640 40,685 +45 (+0.1%) 🔴
octane-tsrx todo_app_gzip 2,477 2,476 −1 (−0.0%) 🟢
octane-tsrx todo_app_brotli 2,119 2,121 +2 (+0.1%) 🔴
octane-tsrx todo_fw_raw 135,480 135,424 −56 (−0.0%) 🟢
octane-tsrx todo_fw_gzip 43,930 43,910 −20 (−0.0%) 🟢
octane-tsrx todo_fw_brotli 38,521 38,564 +43 (+0.1%) 🔴
octane-tsrx chat_js_raw 139,799 139,654 −145 (−0.1%) 🟢
octane-tsrx chat_js_gzip 46,353 46,311 −42 (−0.1%) 🟢
octane-tsrx chat_js_brotli 40,785 40,711 −74 (−0.2%) 🟢
octane-tsrx chat_app_gzip 2,978 2,976 −2 (−0.1%) 🟢
octane-tsrx chat_app_brotli 2,639 2,629 −10 (−0.4%) 🟢
octane-tsrx chat_fw_raw 133,146 133,001 −145 (−0.1%) 🟢
octane-tsrx chat_fw_gzip 43,375 43,335 −40 (−0.1%) 🟢
octane-tsrx chat_fw_brotli 38,146 38,082 −64 (−0.2%) 🟢
octane-tsrx weather_js_raw 176,764 176,630 −134 (−0.1%) 🟢
octane-tsrx weather_js_gzip 57,763 57,749 −14 (−0.0%) 🟢
octane-tsrx weather_js_brotli 50,323 50,357 +34 (+0.1%) 🔴
octane-tsrx weather_app_brotli 7,584 7,619 +35 (+0.5%) 🔴
octane-tsrx weather_fw_raw 150,029 149,895 −134 (−0.1%) 🟢
octane-tsrx weather_fw_gzip 48,718 48,704 −14 (−0.0%) 🟢
octane-tsrx weather_fw_brotli 42,739 42,738 −1 (−0.0%) 🟢
octane-jsx js_raw 226,680 226,632 −48 (−0.0%) 🟢
octane-jsx js_gzip 72,367 72,341 −26 (−0.0%) 🟢
octane-jsx js_brotli 62,726 62,641 −85 (−0.1%) 🟢
octane-jsx app_gzip 2,935 2,936 +1 (+0.0%) 🔴
octane-jsx fw_raw 218,221 218,173 −48 (−0.0%) 🟢
octane-jsx fw_gzip 69,432 69,405 −27 (−0.0%) 🟢
octane-jsx fw_brotli 60,229 60,144 −85 (−0.1%) 🟢

8 other measured values are unchanged.

Public-import reachability bundles (bytes)

target metric base head Δ
cli-spa-starter raw 114,895 114,869 −26 (−0.0%) 🟢
cli-spa-starter gzip 38,762 38,757 −5 (−0.0%) 🟢
cli-spa-starter brotli 33,916 33,926 +10 (+0.0%) 🔴
root-static-specialized raw 77,026 76,940 −86 (−0.1%) 🟢
root-static-specialized gzip 25,574 25,536 −38 (−0.1%) 🟢
root-static-specialized brotli 22,778 22,741 −37 (−0.2%) 🟢
root-chained-jsx raw 84,344 84,258 −86 (−0.1%) 🟢
root-chained-jsx gzip 27,881 27,845 −36 (−0.1%) 🟢
root-chained-jsx brotli 24,833 24,808 −25 (−0.1%) 🟢
root-static raw 203,008 202,869 −139 (−0.1%) 🟢
root-static gzip 64,558 64,528 −30 (−0.0%) 🟢
root-static brotli 55,969 55,936 −33 (−0.1%) 🟢
root-static-local raw 77,029 76,943 −86 (−0.1%) 🟢
root-static-local gzip 25,560 25,523 −37 (−0.1%) 🟢
root-static-local brotli 22,776 22,754 −22 (−0.1%) 🟢
hooks-state raw 89,190 88,983 −207 (−0.2%) 🟢
hooks-state gzip 29,633 29,551 −82 (−0.3%) 🟢
hooks-state brotli 26,389 26,264 −125 (−0.5%) 🟢
prop-attributes raw 95,796 95,589 −207 (−0.2%) 🟢
prop-attributes gzip 31,774 31,699 −75 (−0.2%) 🟢
prop-attributes brotli 28,217 28,174 −43 (−0.2%) 🟢
context raw 109,201 109,005 −196 (−0.2%) 🟢
context gzip 36,119 36,057 −62 (−0.2%) 🟢
context brotli 32,026 31,926 −100 (−0.3%) 🟢
hydrate-root raw 172,836 172,841 +5 (+0.0%) 🔴
hydrate-root gzip 54,795 54,794 −1 (−0.0%) 🟢
hydrate-root brotli 47,808 47,891 +83 (+0.2%) 🔴
deferred-hydration raw 236,221 236,115 −106 (−0.0%) 🟢
deferred-hydration gzip 74,695 74,648 −47 (−0.1%) 🟢
deferred-hydration brotli 64,439 64,412 −27 (−0.0%) 🟢
suspense-transition raw 165,145 164,948 −197 (−0.1%) 🟢
suspense-transition gzip 53,003 52,939 −64 (−0.1%) 🟢
suspense-transition brotli 46,418 46,342 −76 (−0.2%) 🟢
server-hooks raw 654 571 −83 (−12.7%) 🟢
server-hooks gzip 435 391 −44 (−10.1%) 🟢
server-hooks brotli 351 332 −19 (−5.4%) 🟢
server-render raw 65,080 64,995 −85 (−0.1%) 🟢
server-render gzip 22,439 22,412 −27 (−0.1%) 🟢
server-render brotli 20,250 20,192 −58 (−0.3%) 🟢
component-owned-effects raw 81,638 81,431 −207 (−0.3%) 🟢
component-owned-effects gzip 26,931 26,841 −90 (−0.3%) 🟢
component-owned-effects brotli 23,981 23,907 −74 (−0.3%) 🟢
binding-hooks raw 87,703 87,496 −207 (−0.2%) 🟢
binding-hooks gzip 29,336 29,291 −45 (−0.2%) 🟢
binding-hooks brotli 26,130 26,087 −43 (−0.2%) 🟢
binding-base-ui-vite raw 213,239 213,100 −139 (−0.1%) 🟢
binding-base-ui-vite gzip 68,137 68,108 −29 (−0.0%) 🟢
binding-base-ui-vite brotli 59,057 59,019 −38 (−0.1%) 🟢
binding-base-ui-esbuild raw 211,196 211,053 −143 (−0.1%) 🟢
binding-base-ui-esbuild gzip 68,119 68,068 −51 (−0.1%) 🟢
binding-base-ui-esbuild brotli 59,070 59,025 −45 (−0.1%) 🟢
binding-aria-vite raw 8,016 7,931 −85 (−1.1%) 🟢
binding-aria-vite gzip 3,092 3,056 −36 (−1.2%) 🟢
binding-aria-vite brotli 2,758 2,724 −34 (−1.2%) 🟢
binding-aria-esbuild raw 8,696 8,603 −93 (−1.1%) 🟢
binding-aria-esbuild gzip 3,363 3,331 −32 (−1.0%) 🟢
binding-aria-esbuild brotli 3,014 2,980 −34 (−1.1%) 🟢
binding-radix-vite raw 215,169 215,032 −137 (−0.1%) 🟢
binding-radix-vite gzip 68,709 68,660 −49 (−0.1%) 🟢
binding-radix-vite brotli 59,589 59,632 +43 (+0.1%) 🔴
binding-radix-esbuild raw 213,086 212,945 −141 (−0.1%) 🟢
binding-radix-esbuild gzip 68,708 68,650 −58 (−0.1%) 🟢
binding-radix-esbuild brotli 59,547 59,604 +57 (+0.1%) 🔴
binding-mantine-hooks-vite raw 96,431 96,224 −207 (−0.2%) 🟢
binding-mantine-hooks-vite gzip 31,991 31,935 −56 (−0.2%) 🟢
binding-mantine-hooks-vite brotli 28,434 28,377 −57 (−0.2%) 🟢
binding-mantine-hooks-esbuild raw 96,030 95,819 −211 (−0.2%) 🟢
binding-mantine-hooks-esbuild gzip 32,165 32,098 −67 (−0.2%) 🟢
binding-mantine-hooks-esbuild brotli 28,613 28,546 −67 (−0.2%) 🟢
binding-apollo-client-vite raw 358,254 358,115 −139 (−0.0%) 🟢
binding-apollo-client-vite gzip 112,253 112,223 −30 (−0.0%) 🟢
binding-apollo-client-vite brotli 97,970 98,004 +34 (+0.0%) 🔴
binding-apollo-client-esbuild raw 361,203 361,060 −143 (−0.0%) 🟢
binding-apollo-client-esbuild gzip 114,461 114,405 −56 (−0.0%) 🟢
binding-apollo-client-esbuild brotli 99,684 99,739 +55 (+0.1%) 🔴
binding-usehooks-ts-vite raw 97,064 96,857 −207 (−0.2%) 🟢
binding-usehooks-ts-vite gzip 32,156 32,111 −45 (−0.1%) 🟢
binding-usehooks-ts-vite brotli 28,573 28,545 −28 (−0.1%) 🟢
binding-usehooks-ts-esbuild raw 96,652 96,441 −211 (−0.2%) 🟢
binding-usehooks-ts-esbuild gzip 32,316 32,256 −60 (−0.2%) 🟢
binding-usehooks-ts-esbuild brotli 28,719 28,662 −57 (−0.2%) 🟢

24 other measured values are unchanged.

trueadm and others added 4 commits October 3, 2026 09:20
…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]>
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 and others added 2 commits October 3, 2026 11:16
…ed fixes

rotateb and ctx_through_wall_B clear with #1655 and #1656; one_change_B's
per-row remainder and tooltip_swarm's scoped-descriptor accessor reads each
have their own fix task.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@trueadm
trueadm merged commit 3ee853c into main Oct 3, 2026
30 checks passed
@trueadm
trueadm deleted the fix/bench-paired-timing branch October 3, 2026 10:54
trueadm added a commit that referenced this pull request Oct 3, 2026
#1646 waived memo-wall one_change_B (octane-tsrx/react, maxRatio 1.4) until
the per-row survivor work was fixed. With same-component de-opt survivors
taking the memo bail directly, paired ~20 ms samples measured 0.80x, 0.80x
and 0.82x across two same-runner runs (the previous code: 1.30-1.41x; #639:
0.97x). 1.1 keeps about 35% headroom while catching a return of the per-row
item render.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
trueadm added a commit that referenced this pull request Oct 3, 2026
…ng its render (#1664)

* perf(octane): record event signal authority on the host instead of weak maps

#1069 made every module that can receive a signal handle record each native
handler's signal authority: the element's owner in one weak map and an
"escaped" mark for the scope in another. Keyed rows paid two weak-map
insertions per mounted row even with no signals in use. A same-runner paired
A/B put prepend100/append100/insertmid100 at 0.48 -> 0.76 ms across #1069.

The element's authority now lives in a $$signalOwner property beside its
handler slots, journaled and rolled back like before, and the escape mark is a
signalTokenEscaped field on Scope/Block with the same retirement truth table.
Mounting no longer touches a weak map.

bindSignalText also writes a scalar over the Text it already owns directly,
skipping bindDirectSignal's policy dispatch; setText still journals the text
and the binding bag. That path runs for every compiled text-hole update in
such a module (memo-wall context refresh: 0.669 -> 0.622 ms paired).

The signal-dom-bindings suite gains a deterministic guard counting weak-map
insertions per mounted and inserted handler row (2 on main, 0 now), with
dispatch and survivor-identity controls.

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

* perf(octane): restore keyed survivor indices from the list's shape record

#833 made root renders undoable and journaled every keyed survivor's previous
itemIndex in updateSurvivor: four journal slots per row on each reorder,
removal, or insertion that shifts positions. A same-runner paired A/B put a
1,000-row rotate at 0.050 ms before #833 and 0.071 ms on main.

An index moves only when the list's membership or order does, which records
the list's shape (journalForSlot) anyway. reconcileKeyed now takes that
record before the first survivor index write, and restoreForSlot restores
each row's itemIndex from its chain position; a row whose index already
differed is kept exactly. The hydration adoption branch, which restores a DOM
range instead of a chain, still journals indices per row. Transition journals,
which never restored itemIndex, now restore it too.

The shape record also builds the key order with one spread and an early-exit
comparison instead of an iterator loop that copied the order element by
element.

The root-transactions suite gains reorders.mjs, which counts root-journal
slots per row for rotate/reverse/remove-first/insert-first (4 on main, 0
now). A held-root test pins that index-reading rows render their positions
after a held reorder retries; it fails when the index restore is removed.

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

* test(bench): observe stable event authority on the host property

The stable-event-authority work observer counted authority writes through
WeakMap.prototype.set. Authority now lives in each host's $$signalOwner
property, so the observer counts writes through an Element.prototype
accessor instead. The expected counts are unchanged (400 mount, 0 retained,
0 changed capture), and dropping the runtime's unchanged-authority skip
still fails the retained-write assertion.

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

* perf(octane): trim the keyed index journal to +51 raw / +10 gzip bytes

The bench report on this PR measured +250 raw / +90 gzip bytes in every
bundle with a keyed list. journalForSlot now returns false, so the call
sites clear their pending flag without a helper. Rollback restores each
row's index from its chain position without a side map, since every
reconcile leaves a row's index equal to its position and the record is
taken before the first survivor index write. The hydration-adoption branch
does not restore a chain at all (its rows are fresh), so it no longer
journals indices per row either.

js-framework octane-tsrx bundle against main: +51 raw / +10 gzip (was
+251 / +51). The held-root index test still fails when the restore is
removed; the reorder guard still reads 0 slots per row.

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

* fix(octane): keep row indices across a hydrating keyed rollback

The hydration-adoption branch of journalForSlot restores a DOM range, not a
chain, so the trim that dropped its per-row index entries left an existing
row's itemIndex on the aborted position after a hydrating render reordered
the list and rolled back. Journal each existing row's index there again,
before reconcileKeyed moves any of them. Bundle cost against main is now
+130 raw / +31 gzip for js-framework octane-tsrx.

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

* perf(octane): update a same-component de-opt list item without entering its render

A value-position list rebuilt by createElement (memo-wall wall B, every
@octanejs binding) hands back a fresh descriptor per row. Each surviving row
entered its item render (renderBlock, deoptItemBody, a nested childSlot) only
to reach the memo bail of the component already mounted there, and the root
journal recorded the item's inputs and render for every row.

updateSurvivor now hands a plain de-opt item to updateDeoptComponent, which
takes that nested childSlot's same-component branch directly, in the item's
scope and with the priority its render would inherit: the memo bail, the
identical-props bail, or a journaled props update and render of the existing
component Block. A bail leaves the item's committed descriptor in place.
Hydration, signal owners, native reads, non-root captures, unsettled items and
every other child regime keep the ordinary item render. The function reaches
updateSurvivor through ForSlot.itemUpdate, stamped in renderPreparedChildList,
so compiled @for bundles never retain the descriptor renderer.

Per bailed row (new memo-wall survivor-work guard, jitless precise calls):
48 calls and 8 root-journal slots before, 26 and 0 now. One __oneChangeB on
the memo-wall production build: 46,138 calls before, 24,138 now.

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

* perf(octane): point childSlot's same-component branch at its de-opt item twin

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

* perf(octane): drop de-opt item fast-path checks its component Block already implies

An item whose nested slot holds a component Block never has recorded
$$ctxReads (it is neither memo nor armed) and never also holds a portal.
Its end marker and a former body-function flag do not change the
same-component branch it mirrors. A non-object item fails the kind check
without the separate null and typeof tests. -100 raw / -17 gzip in bundles
that include the descriptor renderer.

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

* ci(bench): drop the one_change_B waiver and tighten its guard to 1.1

#1646 waived memo-wall one_change_B (octane-tsrx/react, maxRatio 1.4) until
the per-row survivor work was fixed. With same-component de-opt survivors
taking the memo bail directly, paired ~20 ms samples measured 0.80x, 0.80x
and 0.82x across two same-runner runs (the previous code: 1.30-1.41x; #639:
0.97x). 1.1 keeps about 35% headroom while catching a return of the per-row
item render.

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

* perf(octane): carry the de-opt survivor update in ForSlot.plainDeopt

The plain de-opt flag now holds the list's survivor update itself
(updateDeoptComponent, or null), so ForSlot needs no second field and the
compiled @for path that shares updateSurvivor pays only one optional call.
updateDeoptComponent writes the survivor's index. The js-framework rows app
(compiled lists only) now grows +20 raw / +11 gzip over main, within the
committed +32 budget, instead of +74 / +29.

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

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
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 fix PR: bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant