Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facing performance issue in parallel execution #53

Closed
T-e-j-k-u-m-a-r opened this issue Sep 4, 2021 · 2 comments
Closed

Facing performance issue in parallel execution #53

T-e-j-k-u-m-a-r opened this issue Sep 4, 2021 · 2 comments
Labels
wontfix This will not be worked on

Comments

@T-e-j-k-u-m-a-r
Copy link

Hi,

I have a smoke suite with 21 scripts which takes 5 mins to execute in single thread chrome headed mode, Where when the same is tried with 4 thread parallel execution mode, The execution takes 12 minutes and below are parallel observations.

  1. CPU utilization during execution is above 80%
  2. Memory Utilization during execution is above 75%
  3. The application hangs

Cypress Version: 8.3.1

@modern-sapien
Copy link

I'm interested to see what time savings you get with 2 machines.

What you're encountering is exactly what Cypress explains will happen when utilizing parallelization on a single machine, resources can get maxed out and you end up costing yourself more time in the long run.

@tnicola
Copy link
Owner

tnicola commented Dec 4, 2021

Well, what @modern-sapien says is correct, it totally depends on your machine.

e.g.: I'm using it on a Mac, 2,3 GHz 8-Core Intel Core i9, with 16 GB 2667 MHz DDR4 and with parallelization set to 8 threads I'm getting 75% of savings in terms of time, you have to find the right compromise based on your machine power, probably you won't get any benefit using more than 2 parallel threads.

@tnicola tnicola added the wontfix This will not be worked on label Mar 20, 2022
@tnicola tnicola closed this as completed Mar 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants