Skip to content

Tweaks to squeeze out performance for Playwright runs - #35711

Draft
t3chguy wants to merge 4 commits into
developfrom
t3chguy/playwright-tweaks
Draft

t3chguy wants to merge 4 commits into
developfrom
t3chguy/playwright-tweaks

Conversation

@t3chguy

@t3chguy t3chguy commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

Requires matrix-org/matrix-js-sdk#5673

  1. Disable video capture in the happy path
  2. Disable web server compression
  3. Preload Rust Crypto WASM when user is logged in
  4. Replace some waitForTimeout with retrying assertions
  5. Avoid double-restarting Synapse

Claude assisted analysis

Before 48.5 minutes
image

After 46 minutes
Image

Noise in runner performance makes it hard to quantify exactly, but generally I saw better improvements than the above in a few runs. I'd generalise it as a 5-10% improvement.

},
webServer: {
command: process.env.CI ? "pnpm exec serve -p 8080 -L ./webapp" : "nx --outputStyle stream start",
command: process.env.CI ? "pnpm exec serve -p 8080 -L -u ./webapp" : "nx --outputStyle stream start",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

compression making a real difference does surprise me!

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is probably negligible, but quite moot on a loopback interface anyhow

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is also to free up CPU cycles to hopefully run two workers in parallel per shard without causing instability.

@t3chguy t3chguy changed the title Playwright tweaks to squeeze out performance Tweaks to squeeze out performance for Playwright runs Nov 5, 2026

This branch was successfully deployed

3 active deployments
EndToEndTests — 8b5d6f7a Deployed Nov 9, 2026 by github-actions[bot]
Netlify — 8b5d6f7a Deployed Nov 9, 2026 by github-actions[bot]
SharedComponentStorybook — 8b5d6f7a Deployed Nov 9, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T-Task Tasks for the team like planning

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants