Skip to content

benchmarks: add lifecycle, forms, and external-store stress suites - #296

Merged
trueadm merged 1 commit into
octanejs:mainfrom
openai-oss-forks:codex/benchmark-stress-3-4-5
Jul 26, 2026
Merged

trueadm merged 1 commit into
octanejs:mainfrom
openai-oss-forks:codex/benchmark-stress-3-4-5

Conversation

@domgan-oai

@domgan-oai domgan-oai commented Jul 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Add three production-built, correctness-gated Chromium benchmark suites across Octane, React, Preact, Solid 2, Svelte, and Vue Vapor:

  • Lifecycle and memory soak: 96 effectful rows across more than 1,000 normal-run mount–update–unmount cycles; verify exact effect, DOM listener, timer, and external-store cleanup, post-unmount event probes, and explicitly collected Chromium heap.
  • Large controlled forms: 512 real controlled fields; verify Playwright typing, original input identity, focus, insertion caret, stale async-validation cancellation, checkbox/radio/select state, complete FormData submission, conditional sections, and reset.
  • External-store fan-out: 512 independent subscribers using native renderer APIs; verify narrow writes, broad updates, rapid-write consistency, snapshot/notification/render diagnostics, and exact unsubscribe behavior.

Register all three suites in the unified runner and MCP registry, document their contracts, and add three measured, noise-tolerant Octane-versus-React regression guards. No dependencies or lockfile changes.

Validation

  • node benchmarks/bench.mjs --quick --ratios lifecycle-memory controlled-form external-store-fanout — all 18 framework/suite combinations and all 3 ratio guards pass.
  • MCP server tests — 34 tests pass across both files, including exact runner/registry synchronization.
  • Whole-repository Prettier check — passes with the repository-equivalent formatting configuration.
  • git diff --check — passes.

Based directly on octanejs/octane:main at 2374980349ba0c02e41952213edcb39cd0c459a0.


Note

Low Risk
Benchmark and fixture additions only; no production runtime or auth paths change. CI impact is longer benchmark runs when these suites execute.

Overview
Adds three production Chromium runtime-stress benchmarks (lifecycle-memory, controlled-form, external-store-fanout) that vite-build each target, serve the bundle locally, and drive Playwright with strict correctness gates before recording timings.

A shared benchmarks/runtime-stress/shared.js hook store and counters back a unified benchmarks/news/runtime-stress.mjs harness; thin per-suite run.mjs files only set OCTANE_RUNTIME_STRESS_SUITE. Parallel runtime-stress fixtures land under each benchmarks/news/* framework package (Octane, React, Preact, Solid, Svelte, Vue Vapor).

bench.mjs registers the suites (no preview servers; per-target runs like hydration-interactivity), README documents them, baselines/ratios.json adds Octane-vs-React guards, and the MCP server suite list stays in sync.

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

@vercel

vercel Bot commented Jul 26, 2026

Copy link
Copy Markdown

@domgan-oai is attempting to deploy a commit to the Ripple Team Team on Vercel.

A member of the Team first needs to authorize it.

@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 is ON, but it could not run because the branch was deleted or merged before autofix could start.

Reviewed by Cursor Bugbot for commit 1f43ab4. Configure here.

output: document.querySelector('[data-field-output="37"]')?.textContent,
select: document.querySelector('#form-select')?.value,
value: document.querySelector('input[data-field-index="37"]')?.value,
}));

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Reset gate skips radio state

Medium Severity

The controlled-form reset gate asserts text fields, checkbox, select, and the conditional section, but never checks that delivery returns to standard after the suite switches it to express. A renderer that leaves the radio stuck on express can still pass this correctness-gated suite.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 1f43ab4. Configure here.

@trueadm
trueadm marked this pull request as ready for review July 26, 2026 23:29
@trueadm
trueadm merged commit d94b287 into octanejs:main Jul 26, 2026
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants