Repository navigation
test: cover buffered backlog responsiveness in Chromium - #1877
Conversation
…alesce-stream-signal-renders
Benchmark report
Compares js-framework: 1k/10k row operationsAll 20 timed operations (20 without a verdict)
All 64 work counters are unchanged. Application bundle size (bytes)❌ 9 value(s) exceed their committed budget. Reduce the growth, or raise the budget in a separate pull request that names the bytes and the reason (CONTRIBUTING.md, "Size budgets").
7 other measured values are unchanged. Public-import reachability bundles (bytes)❌ 26 value(s) exceed their committed budget. Reduce the growth, or raise the budget in a separate pull request that names the bytes and the reason (CONTRIBUTING.md, "Size budgets").
36 other measured values are unchanged. |
…ler-browser-backlogs
…am-signal-renders # Conflicts: # .agents/skills/performance-audit/references/scheduling.md # .claude/skills/performance-audit/references/scheduling.md # .cursor/skills/performance-audit/references/scheduling.md # .gemini/skills/performance-audit/references/scheduling.md # .github/skills/performance-audit/references/scheduling.md # .rulesync/skills/performance-audit/references/scheduling.md # benchmarks/scheduler-responsiveness/README.md
…ler-browser-backlogs # Conflicts: # benchmarks/scheduler-responsiveness/README.md
…ler-browser-backlogs
…ler-browser-backlogs
…am-signal-renders # Conflicts: # benchmarks/bundle-size/app-budgets.json
…ler-browser-backlogs
…ler-browser-backlogs
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
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 f1560aa. Configure here.

Summary
Add production Chromium coverage for buffered query and derived streams, ready Action backlogs, and many simultaneously ready independent hydration islands. The first trusted keystroke releases the backlog, so the measurement cannot accidentally start after a long microtask checkpoint has already finished.
This addresses priority 4 in #1864. It builds on #1875 and the scheduler already landed in #1873. The #1875 producer changes remain in the diff until that parent merges; the browser-specific changes add tests and measurements without new runtime behavior.
Validation
f1560aae0, after integrating main90a57d820and the native/transition capability fix: all five cases pass, preserving all 100 query/derived/Action values, 60 adopted island buttons, controlled draft, and the equivalent React Action workload. This is fixture validation, not browser responsiveness evidence.git diff --checkpass.e201e0464) passes, including the backlog cases; every other check, including the separate size gate, also passed. Browser runpnpm syncwas attempted but stops at unavailabletypescript-native/package.json. Local interactive browser execution remains blocked by managed Chrome's DevTools policy; Chromium CI provides the browser evidence.The shared browser runner builds production code, applies 6× CPU throttling, and asserts trusted input, exact draft/focus/caret, complete ordered publications/Action state threading, final DOM, retained island nodes, and live hydrated handlers. Deliberately prolonged stream/island cases require a later keystroke before the work is exhausted. Fast Action completion is allowed.
Event Timing is installed before startup and must be supported. The report takes the maximum duration per nonzero interaction ID, retains the first interaction, reports input/observed interaction counts, and uses
nullfor an empty sample at Chromium's 16 ms floor. Total completion covers source termination and the final DOM commit. No absolute millisecond threshold gates CI.Run
node benchmarks/scheduler-responsiveness/browser-backlogs.mjsfor one excluded warmup and five samples, or pass a baseline checkout and--quickfor one sample. The equivalent Action/input fixture runs in React. CI retainsbenchmarks/results/scheduler-backlogs.jsonin its browser work-results artifact.Current-head CI
CI at
f1560aae0is running. The previous heade201e0464passed every check in its completed run. This head inherits #1875's reviewed integration with the newly landed #1888: native readers and transitions work in either initialization order, while pending cues keep their previous-state commit. The parent passes 171 focused development tests and 30 production-mode tests; all five browser-fixture semantic smoke cases pass here.The shared native-capture tests now synchronize with actual capture entry. The repeated-draft-save test waits for the loaded draft route before editing again; this covers repeated saves after navigation readiness, not edits made during navigation.
#1891's producer budgets are on main; #1887 covers #1888. The exact #1875 and #1877 byte artifacts are identical and need 18 additional ceiling adjustments, proposed separately in #1901. This PR raises no budgets; current-head runtime checks run independently while the size gates await those budget dependencies and the final downward ratchet.
Risk / follow-ups
The fairness canaries pass on the recorded CI run; its timings are one sample, not a comparative performance verdict. The fixtures use public component APIs with explicit hook slots and the native reader ABI; they do not measure compiler output quality. Stream subscribers and island activations include 2 ms of synthetic CPU work. Island markup and modules are ready locally, so network loading and input replay inside an inactive island are outside this measurement. Event Timing is reported for the driven interactions, not as a page-level INP score.
Provenance
agent-authored)Codex task · host
com-79386Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Note
Low Risk
Adds benchmarks and browser tests only; no production runtime or scheduler behavior changes in this diff.
Overview
Adds Chromium Playwright coverage for scheduler backlog responsiveness under 6× CPU throttling, using production-minified Octane (and a React baseline for the actions scenario).
A shared harness (
browser-backlogs.mjs) serves esbuild bundles, starts work from the first trusted keystroke (so measurement isn’t skewed by prior microtasks), and records completion time plus optional Event Timing stats. Fixtures exercise query streams, derived signals, Action backlogs instartTransition, and 60 independent hydration islands, with assertions on trusted input, ordered values, DOM/focus, and island adoption.Vitest runs the suite in heavy browser integration and writes
benchmarks/results/scheduler-backlogs.json; CI now uploads that file with the other js-framework benchmark artifacts. The same module can be run locally via CLI for multi-sample benchmarks.Reviewed by Cursor Bugbot for commit 4d46fd9. Bugbot is set up for automated code reviews on this repo. Configure here.