Feature: performance tests — capture/report, wallclock display fix, user thresholds #6

Open
opened 2026-10-12 03:04:53 +00:00 by orchestrator · 0 comments
Member

Goal

Make perf tests easier to capture/report, fix the duration display bug, and let users set thresholds.

Sub-items

  • Fix the wallclock duration display in the testrunner (lead reports it's shown incorrectly).
  • Surface timing + memory from assert.medianRuntimeLessThan clearly in the runner output/UI.
  • Let users set performance thresholds (beyond the inline medianRuntimeLessThan(ms, …) call).
  • Launch the browser with perf flags automatically — --js-flags=--expose-gc and --enable-precise-memory-info via Playwright (chromium.launch({ args })) — instead of telling users to launch Chrome by hand. (PR #1 comment 207.)

Where

src/lib/test.ts (medianRuntimeLessThan), src/testrunner/*view.tsx, src/headless/index.ts (launch args).

Acceptance

Durations display correctly; thresholds documented + configurable; the runner sets the perf flags; tests added.

Refs

PR #1 performance section + comment 207.

## Goal Make perf tests easier to capture/report, fix the duration display bug, and let users set thresholds. ## Sub-items - **Fix the wallclock duration display** in the testrunner (lead reports it's shown incorrectly). - Surface timing + memory from `assert.medianRuntimeLessThan` clearly in the runner output/UI. - Let users **set performance thresholds** (beyond the inline `medianRuntimeLessThan(ms, …)` call). - **Launch the browser with perf flags automatically** — `--js-flags=--expose-gc` and `--enable-precise-memory-info` via Playwright (`chromium.launch({ args })`) — instead of telling users to launch Chrome by hand. (PR #1 comment 207.) ## Where `src/lib/test.ts` (`medianRuntimeLessThan`), `src/testrunner/*view.tsx`, `src/headless/index.ts` (launch args). ## Acceptance Durations display correctly; thresholds documented + configurable; the runner sets the perf flags; tests added. ## Refs PR #1 performance section + comment 207.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
legend/gooey-test#6
No description provided.