Very poor performance on basic tests
## 🐛 Bug Report I've created a simple test with no configuration. You can find it [here](https://github.com/cozmy/jest-performance). It takes 7.6 seconds just to start jest, and then, on file change, it takes 5 seconds to re-run. There's clearly something wrong here. Mocha and Chai, for example, start in around 4 seconds, but afterward, the re-run is almost instant. It's weird that Jest reports that the test takes 14ms but shows me the result in 5 seconds.  On top of this, if you add more basic tests, the time just seems to go up.  ## To Reproduce Clone [my minimal repository](https://github.com/cozmy/jest-performance), `yarn install` and `yarn test`. ## Expected behavior It should be faster than this. ## Link to repl or repo (highly encouraged) https://github.com/cozmy/jest-performance ## Run `npx envinfo --preset jest` Paste the results here: ``` System: OS: Windows 10 CPU: (8) x64 Intel(R) Core(TM) i7-4700MQ CPU @ 2.40GHz Binaries: Node: 8.12.0 - C:\Program Files\nodejs\node.EXE Yarn: 1.13.0 - C:\Users\CosminCristian\AppData\Roaming\npm\yarn.CMD npm: 6.8.0 - C:\Program Files\nodejs\npm.CMD ```
Posted by cozmy on Feb 23, 2019, 8:49 AM
Tags
Related issues
Raise real-world problems, find people facing the same issue, and discuss solutions.4,000 issues0 comments
onboarding (Software)
Minecraft Dungeons II (1912410)
We are seeing the realtime result of MS buying Github and buying influence.
macOS 15 Sequoia clobbers _nixbld1-4 users
News + Polls
Implement Pylint
Add Zig
Unable to run sandboxed process when run as elevated under applocker
[Feature request] Show browser error overlay for runtime errors
Very poor performance on basic tests
## 🐛 Bug Report I've created a simple test with no configuration. You can find it [here](https://github.com/cozmy/jest-performance). It takes 7.6 seconds just to start jest, and then, on file change, it takes 5 seconds to re-run. There's clearly something wrong here. Mocha and Chai, for example, start in around 4 seconds, but afterward, the re-run is almost instant. It's weird that Jest reports that the test takes 14ms but shows me the result in 5 seconds.  On top of this, if you add more basic tests, the time just seems to go up.  ## To Reproduce Clone [my minimal repository](https://github.com/cozmy/jest-performance), `yarn install` and `yarn test`. ## Expected behavior It should be faster than this. ## Link to repl or repo (highly encouraged) https://github.com/cozmy/jest-performance ## Run `npx envinfo --preset jest` Paste the results here: ``` System: OS: Windows 10 CPU: (8) x64 Intel(R) Core(TM) i7-4700MQ CPU @ 2.40GHz Binaries: Node: 8.12.0 - C:\Program Files\nodejs\node.EXE Yarn: 1.13.0 - C:\Users\CosminCristian\AppData\Roaming\npm\yarn.CMD npm: 6.8.0 - C:\Program Files\nodejs\npm.CMD ```
Comments (0)
No comments yet. Start the discussion.