hermes-agent/apps/desktop/scripts/perf/scenarios
brooklyn! 920beecfa8
perf(desktop): long streaming agent sessions — steady window cut, stable rows, stepped backfill, pane-shared budget (#83446)
* test(desktop): stress long agent sessions in the multitab perf scenario

--tools seeds every transcript with settled tool rounds and drives the live
stream as a working agent turn (tool calls opened and completed between text
chunks), and each tile reveal is timed to next paint (reveal_max_ms) so deep
transcripts report their mount cost.

* perf(desktop): hold the transcript window cut steady while streaming

A fresh weight-walk per store flush slid the cut forward one message at a
time, ~30x/s, and every slide re-indexed the whole windowed transcript —
each row rendered a different message and the runtime repository took its
O(window) rebuild path instead of the one-message update. advanceTranscriptWindow
anchors the cut to a message id and re-cuts once per ~half page of new
content instead of once per flush.

* perf(desktop): stable rows, stepped backfill, pane-shared render budget

Three thread-list fixes for long streaming sessions: memoize the visible-
groups slice and each turn row so a budget-cut advance no longer re-renders
every mounted turn per streamed token; raise the first-paint backfill in
BACKFILL_STEP slices (one bounded commit per frame) instead of a single
20-to-600 transition whose commit landed as a 780ms freeze mid-stream; and
share RENDER_BUDGET across mounted panes so a 4-way grid mounts a quarter
page per pane instead of 4x the fibers.
2026-08-10 21:06:59 +00:00
..
cold-start.mjs bench(desktop): measure the full picture — prod build, cold-start, first-token (#67697) 2026-07-19 17:52:39 -05:00
first-token.mjs bench(desktop): measure the full picture — prod build, cold-start, first-token (#67697) 2026-07-19 17:52:39 -05:00
idle-cost.mjs perf(desktop): baseline multitab + render-churn, leave idle-cost report-only 2026-07-26 19:56:56 -05:00
index.mjs perf(desktop): isolate right pane layout work 2026-08-03 13:39:33 +05:30
keystroke.mjs
…
multitab.mjs perf(desktop): long streaming agent sessions — steady window cut, stable rows, stepped backfill, pane-shared budget (#83446) 2026-08-10 21:06:59 +00:00
profile-switch.mjs
…
render-churn.mjs fix(desktop): make render-churn measure streaming, not boot churn 2026-07-26 15:54:18 -05:00
right-pane.mjs perf(desktop): isolate right pane layout work 2026-08-03 13:39:33 +05:30
session-load.mjs perf(desktop): add a session-load scenario to the harness 2026-07-29 12:13:36 -05:00
session-switch.mjs
…
stream-history.mjs perf(desktop): add a stream-history scenario to the perf harness 2026-07-26 03:15:48 -05:00
stream.mjs perf(desktop): add a stream-history scenario to the perf harness 2026-07-26 03:15:48 -05:00
submit.mjs
…
transcript.mjs
…