question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cypress performance issues

See original GitHub issue

Since about version 4.11 our cypress has become insanely slow. It hogs network like crazy [any page I’m trying to load, like this github post is taking forever when tests are running] Failed video compression takes AGES it logs progress every few seconds, and all I’m seeing are 1-5% increments in that time

Started processing:  Compressing to 32 CRF
    Compression progress:  8%
    Compression progress:  16%
    Compression progress:  22%
    Compression progress:  27%
    Compression progress:  32%
    Compression progress:  37%
    Compression progress:  40%
    Compression progress:  44%
    Compression progress:  48%
    Compression progress:  52%
    Compression progress:  56%
    Compression progress:  60%
    Compression progress:  63%
    Compression progress:  67%
    Compression progress:  70%
    Compression progress:  72%
    Compression progress:  74%
    Compression progress:  77%
    Compression progress:  79%

Typing has been insanely slow as well. Tests in general got exponentially longer. Is it only our instance or did anyone else experience it? I’m not really sure where to look for a fix for this. Anything you guys can point me to would help! thanks! Also: headless seems to be WAY SLOWER then the non-headless, which is already really slow. All in CHROME - electron doesn’t seem to be affected by this.

Versions

4.11, 4.12

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:9
  • Comments:21 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
nicolajvcommented, Aug 27, 2020

After some research it looks like this issue started in 4.9 and is related to asset requests being cancelled and retried a bunch of times. We see it in the dev console on both electron and chrome. Downgrading to 4.8 or using Firefox we do not see this issue. image I replicated the issue in a test in this repo: https://github.com/nicolajv/cypress-chromium-issue

5reactions
srdjanprolecommented, Aug 25, 2020

This is a huge problem… with cypress 5.0.0 we have like 2k requests and with 4.8.0 we have like 100 requests…

Read more comments on GitHub >

github_iconTop Results From Across the Web

CT Performance Improvements: v10 slower than v9 #22353
After upgrading to the latest version, we have an issue with slowness when we run cypress run --component . The tests themselves are...
Read more >
Troubleshooting | Cypress Documentation
Troubleshooting · Support channels · Isolate the Problem · Download specific Chrome version · Clear Cypress cache · Launching browsers · Allow the...
Read more >
Cypress timeout – uncovering website performance issues
We were continuously adding new features to the site, due to which performance of the site was impacted, and our Cypress tests started...
Read more >
How to Speed up Cypress Automation Tests
A real-world integration test typically involves signon, etc before testing the actual functionality. Do these as As Cypress's best ...
Read more >
Common Cypress Testing Pitfalls & How to Avoid Them
Avoid Using Wait in Cypress Tests · Use a baseUrl in the Cypress Configuration File · Chains are Not Promises · Abstract Calls...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found