Giter VIP home page Giter VIP logo

Comments (7)

dgozman avatar dgozman commented on June 15, 2024 2

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.

pbrzosko avatar pbrzosko commented on June 15, 2024

Seems like problem also exists when running from command line, but with smaller impact:

image

from playwright.

dgozman avatar dgozman commented on June 15, 2024

@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.

pbrzosko avatar pbrzosko commented on June 15, 2024

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.

dgozman avatar dgozman commented on June 15, 2024

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.

pbrzosko avatar pbrzosko commented on June 15, 2024

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.

pbrzosko avatar pbrzosko commented on June 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.