Skip to content

[REGRESSION]: Very slow on v1.1 #2616

@jinjor

Description

@jinjor

Context:

  • GOOD Playwright Version: v1.0.2
  • BAD Playwright Version: v1.1.0
  • Operating System: Mac
  • Extra: Both local (mac) and CI (ubuntu) environment, using chromium for tests

Code Snippet

Sorry, no snippet to reproduce this. I have a huge proprietary code and have not find the suspicious code in it. I will share it whenever I find it.

Describe the bug

I'm trying to upgrade playwright v0.11.1 to v1.1.1, but found a huge performance loss between v1.0.2 and v1.1.0. Our test becomes about 4x slower.

On local (mac):

  • v0.11.1: npm run page-test 430.59s user 64.33s system 133% cpu 6:11.71 total
  • v1.0.2: npm run page-test 396.36s user 53.51s system 106% cpu 7:00.52 total
  • v1.1.0: npm run page-test 2600.17s user 224.96s system 199% cpu 23:38.11 total
  • v1.1.1: npm run page-test 2621.26s user 223.12s system 200% cpu 23:40.09 total

On CircleCI (ubuntu):

  • v0.11.1: 7m30s
  • v1.0.2: 7m45s
  • v1.1.1: 28m42s

It seems the new version uses CPU much more than before. Has something internally changed? Is there anyone who has run into similar situation?

For more context:

  • Tests are written in mocha framework (not in parallel), they are written in one large file.
  • Playwright is launched only once, context, page object is reused through all tests.
  • Proxy is not used.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions