You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Noticeable performance slowdown with trace enabled in Playwright 1.46 #32746
Measure the time taken to complete the test run with trace enabled.
Expected behavior
The performance overhead with trace enabled should be minimal, and the time difference between running tests with trace on and off should be negligible.
Actual behavior
With trace off, the test run completes in 1.8 minutes.
With trace on, the test run completes in 2.1 minutes.
Is this something which got worse with Playwright v1.46? Its expected that tests will run slower when you are running your tests with tracing enabled, hence we recommend on-first-retry. Especially when your web app which you are testing is big, since we record snapshots, network requests etc. 1.8 -> 2.1 sounds reasonable for that.
If this is something which got worse in v1.46 - we need a reproduction in order to investigate what caused it.
Yes, compared to version 1.24, which we’re currently using, the newer version is noticeably slowing down the app, and this is causing some tests to fail. In version 1.24, even with the trace configuration: trace: { mode: 'retain-on-failure', screenshots: true, snapshots: true, sources: true,} the sources weren’t included in the report.
We unfortunately need a reproduction in order to figure out which exact Playwright change caused the performance regression you are encountering. If the performance in v1.46 is significant worse compared to v1.24 then we'd love to dig deeper into this, for that we need something we can run locally or you are manually checking which Playwright version caused it (we also have daily builds on NPM).
For the sources issue, it looks indeed like a bug, I can repro and we'll triage it in #32745.
Activity
mxschmitt commentedon Sep 21, 2024
Is this something which got worse with Playwright v1.46? Its expected that tests will run slower when you are running your tests with tracing enabled, hence we recommend
on-first-retry. Especially when your web app which you are testing is big, since we record snapshots, network requests etc. 1.8 -> 2.1 sounds reasonable for that.If this is something which got worse in v1.46 - we need a reproduction in order to investigate what caused it.
ibrocodes7 commentedon Sep 21, 2024
Yes, compared to version 1.24, which we’re currently using, the newer version is noticeably slowing down the app, and this is causing some tests to fail. In version 1.24, even with the trace configuration:
trace: { mode: 'retain-on-failure', screenshots: true, snapshots: true, sources: true,}the sources weren’t included in the report.I thought this might have contributed to the slowdown, so I tested version 1.46 with sources: false, but the sources are still being captured. I’ve reported this issue here: 32745https://github.com/microsoft/playwright/issues/32745
mxschmitt commentedon Sep 21, 2024
We unfortunately need a reproduction in order to figure out which exact Playwright change caused the performance regression you are encountering. If the performance in v1.46 is significant worse compared to v1.24 then we'd love to dig deeper into this, for that we need something we can run locally or you are manually checking which Playwright version caused it (we also have daily builds on NPM).
For the sources issue, it looks indeed like a bug, I can repro and we'll triage it in #32745.
yury-s commentedon Sep 25, 2024
We need more information to act on this report. Once you have a repro, please file a new issue and provide it there.