Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 15 additions & 14 deletions packages/app/perf/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,21 @@ launches (A B, B A, …) at normal speed, decides one primary metric per case wi
cannot defend (a hidden window, a software GPU, a throttled CPU, a busy machine). The web cases run the production
build on the e2e mock server, so they need no backend.

| File | Cases | Workload |
| --------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------ |
| `timeline.bench.ts` | scroll history · type in composer · find in session · expand an edit · drag the review's edge | A 120-turn session of markdown, code, tools and diffs. |
| `stream.bench.ts` | stream a reply · into a tool-heavy history · with review open · with Find open · wait on a running session | 160 markdown deltas at 40 a second from a server that never waits. |
| `tabs.bench.ts` | switch tab (warm, review open, after a resize, 1,200 models) · away and back with review open · open an unvisited tab (± review) | Two tabs of 200 long markdown exchanges each, loaded in full. |
| `navigation.bench.ts` | Home → session · close the last tab · new session (Home, titlebar) · new session page in and out · child session · restore 8 tabs · activate a restored tab · command palette (session, Home, scroll) | The stress fixture, paginated, from a fresh document every run. |
| `home.bench.ts` | load home · update a session in the background | 500, 5,000 and 10,000 root sessions across 12 folders. |
| `review.bench.ts` | open review · filter files · next file | 100 and 10,000 changed files of 100 lines each. |
| `diff.bench.ts` | open a long diff · open a huge diff · return to a long diff | A 1,559-line diff, highlighted; a 15,599-line one, plain. |
| `composer.bench.ts` | type in a large draft · move the cursor in it · recall a prompt from history | A 44,000-character saved draft; 100 prompts with screenshots. |
| `docks.bench.ts` | open and close request docks | A permission dock and an MCP elicitation over a 20-turn session. |
| `send.bench.ts` | send a prompt | Enter until the prompt request reaches the server, 20 turns. |
| `question.bench.ts` | switch questions | The new question dock with its motion on: five questions. |
| `desktop.bench.ts` | idle | The packaged desktop app, every process, doing nothing for 5 s. |
| File | Cases | Workload |
| ------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------ |
| `timeline.bench.ts` | scroll history · type in composer · find in session · expand an edit · drag the review's edge | A 120-turn session of markdown, code, tools and diffs. |
| `stream.bench.ts` | stream a reply · into a tool-heavy history · with review open · with Find open · wait on a running session | 160 markdown deltas at 40 a second from a server that never waits. |
| `tabs.bench.ts` | switch tab (warm, review open, after a resize, 1,200 models) · away and back with review open · open an unvisited tab (± review) | Two tabs of 200 long markdown exchanges each, loaded in full. |
| `navigation.bench.ts` | Home → session · close the last tab · new session (Home, titlebar) · new session page in and out · child session · restore 8 tabs · activate a restored tab · command palette (session, Home, scroll) | The stress fixture, paginated, from a fresh document every run. |
| `home.bench.ts` | load home · update a session in the background | 500, 5,000 and 10,000 root sessions across 12 folders. |
| `review.bench.ts` | open review · filter files · next file | 100 and 10,000 changed files of 100 lines each. |
| `diff.bench.ts` | open a long diff · open a huge diff · return to a long diff | A 1,559-line diff, highlighted; a 15,599-line one, plain. |
| `composer.bench.ts` | type in a large draft · move the cursor in it · recall a prompt from history | A 44,000-character saved draft; 100 prompts with screenshots. |
| `docks.bench.ts` | open and close request docks | A permission dock and an MCP elicitation over a 20-turn session. |
| `subagent-pill.bench.ts` | scroll pill static · scroll pill with live events | 20 long-running subagents in the background activity popover. |
| `send.bench.ts` | send a prompt | Enter until the prompt request reaches the server, 20 turns. |
| `question.bench.ts` | switch questions | The new question dock with its motion on: five questions. |
| `desktop.bench.ts` | idle | The packaged desktop app, every process, doing nothing for 5 s. |

Every case decides `main.work` (renderer main-thread task time per run) unless it says otherwise: it is continuous,
while durations that end on a presented frame move in whole vsyncs. Durations, interaction latency, frames and the
Expand Down
Loading
Loading