Repository navigation
fix(benchmarks): restore effectful-list workload honesty and enable React Compiler in spa-navigation - #1205
Closed
jonkwheeler wants to merge 2 commits into
Closed
fix(benchmarks): restore effectful-list workload honesty and enable React Compiler in spa-navigation#1205jonkwheeler wants to merge 2 commits into
jonkwheeler wants to merge 2 commits into
Conversation
…eact Compiler in spa-navigation
3 of 6 tasks
1 task done
jonkwheeler
marked this pull request as ready for review
September 21, 2026 13:54
Contributor
Author
This was referenced Sep 21, 2026
Collaborator
|
This PR is stale, please re-create PR given the new repo agent constraints and rules. |
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.
Part of #1202. Split from #1188.
Summary
benchmarks/effectful-list: restores workload honesty across all nine fixtures — everyRowbody now re-invokes onupdate_nodepsvia a realtickprop, and awindow.__renders.rowinvocation gate asserts the exact per-op count on the five VDOM targets.benchmarks/spa-navigation/react: enables React Compiler, so the suite's React column measures what it claims to measure.packages/*/audit/react-parity.json, eval corpus manifest) regenerated viapnpm sync.Why
update_nodepsop bumped an unrelated parent state and relied on each fixture re-rendering rows on principle. Two dishonesty holes resulted: thetickstate never reachedRowas a prop, so a memoized/cached row could legitimately skip all 1,000 bodies and post a ~µs "win" that measured no work; and nothing counted row-body invocations, so the harness could not distinguish "fast re-render" from "skipped render".spa-navigation/reactfixture is documented as the React-19-with-Compiler column, but its Vite config never applied the plugin — the published React medians were uncompiled React.sha256(pnpm-lock.yaml); the new dev-deps changed the hash, so they must be regenerated in the same PR or their CI checks go stale.Changes
benchmarks/effectful-list/contract.mjs—expect.rendersper-op counts added (mount_1k/update_nodeps/update_deps/remount= 1000,clear= 0;remove_100_scattereddeliberately ungated — an equal-props skip on the 900 survivors is legitimate divergence, not fraud);VDOM_TARGETSset exported.benchmarks/effectful-list/run.mjs—gateCheckfolds the__rendersassertion into the existing per-op gate; a declared VDOM target missing the probe fails every op (fixture defect, not an exemption); aggregate failure still exits 1 withBENCH_JSON.failed.benchmarks/effectful-list/{react,preact,inferno,octane-jsx,octane-tsrx}/—Rowinstallswindow.__renders.row++as its first statement;tickthreaded throughApp→Rowas a real prop;fx.jsresets the probe via__resetFx;ops.jspassestickonupdate_nodeps.benchmarks/effectful-list/{solid,ripple,vue-vapor,svelte}/src/ops.js—tickthreaded for workload parity (fine-grained targets stay uninstrumented by design — they never re-invoke row bodies).benchmarks/effectful-list/README.md— gate table gains the__renders.rowcolumn and the load-bearing-gate rationale.benchmarks/spa-navigation/react/{vite.config.js,package.json}—reactCompiler()frombenchmarks/react-compiler.mjs(the same helpermemo-wall/react-compileruses) plusbabel-plugin-react-compiler+@rolldown/plugin-babeldev-deps; README documents the correction.pnpm-lock.yaml— the two new dev-deps.pnpm syncoutput, 88 files): 87 ×packages/*/audit/react-parity.jsonlockfile-hash records +packages/octane-evals/datasets/train/user-apps-v1/manifest.jsonl. Regenerated, not hand-edited.Validation
pnpm bench:spa-navigation:typecheck— pass (fixture typechecks with the compiler plugin present).TARGETS='[{"name":"octane-tsrx","url":"http://localhost:5201/"},{"name":"react","url":"http://localhost:5203/"}]' node run.mjs 3againstvite previewbuilds — all six ops pass both the__fxand__rendersgates on both targets; exit 0.__rendersgate failure path:TARGETS='[{"name":"react","url":"http://localhost:5204/"}]' node run.mjs 1(VDOM name pointed at the uninstrumented solid server) — every op reportsGATE FAIL: renders: window.__renders probe missing on a declared VDOM target, exit 1,BENCH_JSONcarriesfailed+fxGate: fail.pnpm format:files/pnpm format:files:checkon touched paths — clean.pnpm syncafter commits — worktree clean.pnpm format:check,pnpm typecheck,pnpm test— deferred to CI per repo convention (same as perf(runtime): beat React 19 + Compiler across the timing benchmark portfolio #1188).Risk / follow-ups
node benchmarks/bench.mjs effectful-list.Provenance
agent-authored)Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Note
Low Risk
Benchmark fixtures, harness gates, and generated audit metadata only; no published runtime package behavior changes.
Overview
effectful-list gains honest VDOM workload measurement: parent
tickis threaded into everyRowas a real prop (soupdate_nodepscannot bail via equal props or element cache), and VDOM fixtures incrementwindow.__renders.rowas each row body’s first statement. The harness contract andrun.mjsadd a row-invocation gate (VDOM_TARGETS,expect.renders) alongside the existing__fxgate; missing probes fail all ops on declared VDOM targets. Fine-grained targets stay uninstrumented;remove_100_scatteredremains ungated for survivor skips.spa-navigation/react now applies
reactCompiler()frombenchmarks/react-compiler.mjs(plus Babel compiler dev-deps) so the documented React-19-with-Compiler column matches the build; README notes prior medians were uncompiled.Lockfile-driven
packages/*/audit/react-parity.jsonhash updates accompany the new dev-dependencies.Reviewed by Cursor Bugbot for commit 8d8fec6. Bugbot is set up for automated code reviews on this repo. Configure here.