Skip to content

👷 Run the perf suite as parallel shards - #116

Merged
simonhull merged 2 commits into
mainfrom
ci/perf-shards
Nov 18, 2026
Merged

simonhull merged 2 commits into
mainfrom
ci/perf-shards

Conversation

@simonhull

Copy link
Copy Markdown
Owner

The Perf job took about 37 minutes, 31 of them the browser suite on one runner. It now runs on five runners at once:

  • Perf (server): the *Speed tests, as before, with their table in its summary.
  • Perf (1k|50k, 1/2|2/2): the browser suite, one library and one shard of its files a runner, each with one worker as before. Each runner sets up only its own library.
  • Perf: gathers every shard's samples (artifacts) into the one table, in its summary, and fails when the server tests or any shard did.

Playwright's own --shard splits by test count, and these tests run from 3 s to 2 minutes, so its two shards came out 646 s against 193 s. web/perf/shards.ts splits the files by about how long each takes on CI instead (longest first, each to the shard with the least), which gives 443 s and 448 s on 50k. A file missing from its table counts as 60 s and still runs in exactly one shard. KITSUNE_PERF_SHARD=i/n runs one locally.

Budgets, ciMultiplier, 20 runs and one worker per runner are unchanged.

@simonhull
simonhull merged commit 6734944 into main Nov 18, 2026
10 checks passed
@simonhull
simonhull deleted the ci/perf-shards branch November 18, 2026 21:37
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.

1 participant