hn.today

Flashwright: The fastest E2E testing framework, up to 4x faster than Playwright

flashwright.dev10 points1 comments
Screenshot of Flashwright: The fastest E2E testing framework, up to 4x faster than Playwright

Flashwright is an independent, Apache-2.0 fork of Playwright that aims to speed up end-to-end tests without requiring code changes: teams install it under Playwright’s package name and keep the same API, runner, commands, browsers, and reporting tools. Its benchmark results show the 24-test TodoMVC suite completing in 0.97 seconds versus Playwright’s 3.61 seconds. Across a broader set of applications and test types, it reports at least 2× faster execution in every listed scenario, with gains ranging up to 4.1×. In comparisons against eight other frameworks on the same machine and Chromium, Flashwright also finishes fastest, both with one worker and four.

The speedups come from changes to test execution: browsers stay warm while each test receives a fresh tab in a reset context; waits react to page changes rather than polling on a timer; clicks skip animation-settling waits while retaining hit-target checks; and workers launch early and prioritize longer tests. Faster startup and screenshot encoding contribute as well. These defaults can change test behavior, including context reuse, animation waits, early failure of idle assertions, and test order, but typed options can restore Playwright’s settings. The project says its Chromium implementation passes 2,610 Playwright page tests and that runner, library, and MCP suites match Playwright 1.64.1. Most gains apply to Chromium; Firefox and WebKit largely retain Playwright behavior. A warm-session mode is designed for rapid repeated runs, reporting 72 milliseconds for one TodoMVC test.

Read on flashwright.dev1 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Programming

Solid 2.0

Solid 2.0

Solid 2.0 is now stable, five years after version 1.0, with a smaller API and diagnostics designed for AI agents. Its reactive graph now handles asynchronous computations, while built-in server functions support RPC calls and persistent Server-Sent Events connections. (solidjs.com)

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.