cypress: `cy.visit` in 3.3.1 is 2x-4x as slow as 3.2.0
Current behavior:
Running my tests in 3.2.0 takes 1 hour 54 minutes. Running my tests in 3.3.1 takes 4 hours 41 minutes.
(This is running on headless electron using cypress.run with the module API; I haven’t measured it with cypress open).
Both cases are running on the same WIndows 10 VM, and not using parallelization.
Desired behavior:
I’d like my tests to take less than 2 hours.
Versions
Cypress 3.3.1
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 5
- Comments: 37 (17 by maintainers)
@danceric0919 We have a fix in place, it will be out with the next patch release (3.3.2).
We’re triangulating a few different issues in the
3.3.xreleases and several may all be related to the same underlying problem. Likely will have a patch in the next few days and then we can go from there.I am fairly certain that this is not OS-specific, as I’ve seen it both on Windows 10 and Mac OS.
I wrote a small test case to benchmark cy.visit:
In Cypress 3.2.0, this executes in 17.25 seconds.
In Cypress 3.3.1, this executes in 61.58 (!) seconds.
So it does look like the issue is with
cy.visit(). I recorded a short video of the benchmark which shows that every fewcy.visit()s, it seems to hang for a couple of seconds before continuing: https://drive.google.com/file/d/15a26L9dC9EQHFJKd-hQfvxkxMnFgmPmN/view?usp=sharingLooks like #4349 is a duplicate of this issue, then. I’ll close that issue and log future progress on tracking down the
cy.visitslowness here.@flotwig We are running 3.3.1 on Windows 10 & using headless electron. We don’t have proxy
Sure, I’ll work on trying to get a reproducible example.