Cypress performance issues
See original GitHub issueSince 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:
- Created 3 years ago
- Reactions:9
- Comments:21 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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. I replicated the issue in a test in this repo: https://github.com/nicolajv/cypress-chromium-issue
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…