Repository navigation
feat(benchmarks): add an SPA full-page navigation suite - #614
Merged
Merged
Conversation
Measures what a client-side navigation costs: tearing down one route's
component tree and building the next while the app shell stays mounted. Five
fixtures over one tree shape (octane in both dialects, react, solid 2.0, vue
vapor), four navigations plus a 6x CPU-throttled one, so teardown and mount can
be read apart instead of only in sum.
The semantic gate is fatal and asserts the shell survives every navigation and
the layout survives the nested one BY NODE IDENTITY, so a framework cannot score
well by skipping the work. work.mjs reads Chromium precise call coverage over
both octane production bundles, which is what turns a slow navigation into a
named cause rather than a number.
First run says the JSX dialect reaches the runtime de-opt renderer for the whole
routed subtree: 4099 createElement, 4094 childSlot, 2046 deoptItemBody and 1023
hostElementBody calls that the .tsrx path never makes, 1.40x the block renders,
3.3x the wall clock on nav_deep and 3.5x under throttling. The gates hold .tsrx
at zero de-opt calls and cap the .tsx counts so the gap cannot widen.
precise-work.mjs now accepts { name, arg } hooks alongside bare strings, because
this suite drives one __navigate with a route rather than one hook per
destination.
WebEferen
marked this pull request as draft
August 7, 2026 16:11
…ench # Conflicts: # packages/hook-form/audit/react-parity.json # packages/octane-evals/datasets/train/user-apps-v1/manifest.jsonl # packages/react-map-gl/audit/react-parity.json # pnpm-lock.yaml # pnpm-workspace.yaml
trueadm
marked this pull request as ready for review
August 9, 2026 20:16
This was referenced Aug 9, 2026
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.
Measures what a client-side navigation costs: tearing down one route's component tree and building the next while the app shell stays mounted. Five fixtures over one tree shape (octane in both dialects, react, solid 2.0, vue vapor), four navigations plus a 6x CPU-throttled one, so teardown and mount can be read apart instead of only in sum.
The semantic gate is fatal and asserts the shell survives every navigation and the layout survives the nested one BY NODE IDENTITY, so a framework cannot score well by skipping the work. work.mjs reads Chromium precise call coverage over both octane production bundles, which is what turns a slow navigation into a named cause rather than a number.
First run says the JSX dialect reaches the runtime de-opt renderer for the whole routed subtree: 4099 createElement, 4094 childSlot, 2046 deoptItemBody and 1023 hostElementBody calls that the .tsrx path never makes, 1.40x the block renders, 3.3x the wall clock on nav_deep and 3.5x under throttling. The gates hold .tsrx at zero de-opt calls and cap the .tsx counts so the gap cannot widen.
precise-work.mjs now accepts { name, arg } hooks alongside bare strings, because this suite drives one __navigate with a route rather than one hook per destination.
Summary
Validation
pnpm format:checkpnpm typecheckpnpm testRisk / follow-ups
Provenance
agent-authored)Note
Low Risk
Adds benchmark fixtures and a backward-compatible optional-arg change to shared precise-work helpers; no production runtime or auth paths touched.
Overview
Adds a
spa-navigationbrowser benchmark that times routed subtree teardown/mount while the app shell stays fixed, comparing octane-tsrx, octane-jsx, React, Solid, and Vue Vapor over the same deep-tree fixture.run.mjsdrives Playwright with a fatal semantic gate (leaf counts, route replacement, shell/layout node identity on nested navigations) plus ops such asnav_deep, split teardown/mount probes,nav_nested, and 6× CPU throttling;work.mjsgates Octane production bundles via Chromium precise call coverage (renderBlockvs de-opt paths).Wires the suite into
benchmarks/bench.mjs, workspacepnpm-workspace.yaml, docs, andbench:spa-navigation:typecheckon roottypecheck. Extendsprecise-work.mjsso hooks can be{ name, arg }(parameterized__navigate(route)). Registersspa-navigationon the Octane benchmark MCP tool and adds a@octanejs/mcp-serverchangeset.Reviewed by Cursor Bugbot for commit 56c347a. Bugbot is set up for automated code reviews on this repo. Configure here.