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

Jest: limit maxWorkers, maxConcurrency and use workerThreads #798

Merged
merged 5 commits into from
Apr 14, 2023

Conversation

XhmikosR
Copy link
Member

@XhmikosR XhmikosR commented Apr 12, 2023

The time difference hit isn't that big. We might even want to go with os.cpus() - 4 or os.cpus() / 2.

Now Jest doesn't spawn 600 processes on my Windows VM.

CI seems to be slower, though. We could use a different number of threads for CI.

@Kreeg
Copy link
Member

Kreeg commented Apr 12, 2023

Maybe this should be an OS related config? Just thinking out loud

@XhmikosR
Copy link
Member Author

Did you try the branch? If it's not significantly slower, I'd like to keep it simple.

I don't see the point of spawning 600+ processes when running the tests, regardless of the OS.

@XhmikosR XhmikosR marked this pull request as ready for review April 12, 2023 14:42
@Kreeg
Copy link
Member

Kreeg commented Apr 12, 2023

No I didn't. If it OK on your machine and CI - I'm OK with that.

@XhmikosR
Copy link
Member Author

Could you give it a go on your machine too? I'd like to see how big is the slowdown there before we merge this.

CI is the same, because it has 2 threads which is the minimum we set.

@Kreeg
Copy link
Member

Kreeg commented Apr 14, 2023

@XhmikosR 34.548 s vs 30.104 s (config vs main). So it is OK.

@XhmikosR XhmikosR merged commit 85b35e8 into main Apr 14, 2023
12 checks passed
@XhmikosR XhmikosR deleted the xmr/jest-config branch April 14, 2023 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants