Comments (7)
I'll close this issue, because there is no action item for Playwright right now. If you come up with some new findings, please file a new issue and link to this one, so we can continue the discussion.
from playwright.
Seems like problem also exists when running from command line, but with smaller impact:
from playwright.
@pbrzosko I have played with your repro a bit. Things are slowing down indeed, but some of that is expected due to increased parallelization between single worker and many workers. However, I did not reach 10 seconds.
UI mode is noticeably slower. I think this is due to trace being recorded by UI mode, and disk access slowing everything down. Perhaps the shared disk access may even slow down all workers in parallel, which looks like "locking effect".
from playwright.
How about every worker using its own directory to gather trace and then everything is combined at the end of the run?
Why it doesn't happen on OSX?
What times do you get? It might be some of the company installed software that spoils things but we have no idea where to look?
from playwright.
How about every worker using its own directory to gather trace and then everything is combined at the end of the run?
Each worker has its own directory already.
Why it doesn't happen on OSX?
I guess the filesystem is implemented differently? Note that it was just my first idea, and the problem might be entirely different.
What times do you get?
Everything is ~1.8x slower in UI mode. Going up to 8 workers slows down each test ~2x.
It might be some of the company installed software that spoils things but we have no idea where to look?
That could easily be the case with the antivirus. You can check that by running with --workers=1
and --trace=on
/--trace=off
without UI mode. This way you can isolate the impact of tracing, which writes to disk, on the test timing. Something like an antivirus could slow things down significantly.
from playwright.
I will check the trace impact. But when we run with 1 worker in UI mode, times are as expected. So it seems like some locking issue which is only visible with many workers running.
from playwright.
Yyy, say that again @dgozman? You have clear evodence that tests run over 10s instead of one and you say there is nothing to do from your side?
from playwright.
Related Issues (20)
- [Feature]: launchServer bind hostname or address
- [Please read the message below]
- [Bug]: python confusing stacked context of page.pdf header_template HOT 1
- [Question] Add 'retain-on-failure' option to .net HOT 4
- [Bug]: Submit button is not getting enabled after filling a login form HOT 1
- [Bug]: OffscreenCanvas in Webworker missing for Webkit in GithubActions HOT 2
- [Feature]: Support optGroup parameter in Locator.selectOption method HOT 5
- [Feature]: get and set radiogroup value
- Contribute new matcher
- [Bug]: --ui mode doesn't respect --trace as of 1.43 HOT 5
- [Bug]: Playwright Extension versions 1.1.1 to 1.1.6 cannot see tests in test files HOT 1
- [Bug]: component tests fail with cryptic error when files are moved around HOT 1
- [Bug]: Linux WebKit missing support for WebRTC
- [Docs]: Clarify WebKit Feature Support on Non-Apple Platforms HOT 1
- [Bug]: context.pages is not being updated with newly opened tabs HOT 3
- [Bug]: Attribute resolved to 2 elements HOT 1
- [Bug]: `create-playwright` doesn't show a version number HOT 4
- [Bug]: `create-playwright` adds duplicate .gitignore entries HOT 2
- [Bug]: `create-playwright` doesn't exclude `playwright-report` in `tsconfig.json`, leading to type errors HOT 2
- [Bug]: Results from UI mode are not merged with merge reports command HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from playwright.