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

Watch mode number of CPUs & documentation. #8211

Merged
merged 2 commits into from Mar 25, 2019

Conversation

scotthovestadt
Copy link
Contributor

@scotthovestadt scotthovestadt commented Mar 25, 2019

Summary

Revert change to number of CPUs and add docs to resolve @cpojer comment:
#8201 (comment)

Benchmarked Jest non-e2e test performance for this branch from 14.973s to 16.504s, which is still a massive win over the original 23.234s and probably points to further optimizations being possible since I'd hope that giving it 5 extra CPUs would do more for the performance.

Test plan

  • All tests pass, including the test that specifically touches this number.

Copy link
Member

@cpojer cpojer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thank you for changing this back and adding docs for it.

@@ -31,7 +31,8 @@ export default function getMaxWorkers(

return parsed > 0 ? parsed : 1;
} else {
// In watch mode, Jest should be unobtrusive and not take all available CPU.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"[…] not use all available CPUs."?

@codecov-io
Copy link

codecov-io commented Mar 25, 2019

Codecov Report

Merging #8211 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #8211   +/-   ##
=======================================
  Coverage   62.31%   62.31%           
=======================================
  Files         265      265           
  Lines       10534    10534           
  Branches     2555     2556    +1     
=======================================
  Hits         6564     6564           
  Misses       3387     3387           
  Partials      583      583
Impacted Files Coverage Δ
packages/jest-config/src/getMaxWorkers.ts 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5cde98e...612ade3. Read the comment docs.

@scotthovestadt scotthovestadt merged commit 8e246a4 into jestjs:master Mar 25, 2019
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants