IssueRaiser

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. ![image](https://user-images.githubusercontent.com/5887290/53284091-c519de00-3757-11e9-85c2-33fb4bd8eb33.png) On top of this, if you add more basic tests, the time just seems to go up. ![image](https://user-images.githubusercontent.com/5887290/53284146-a9fb9e00-3758-11e9-9297-1a1bbc5e1184.png) ## 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)

Very poor performance on basic tests

cozmyFeb 23, 2019, 8:49 AM

## 🐛 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. ![image](https://user-images.githubusercontent.com/5887290/53284091-c519de00-3757-11e9-85c2-33fb4bd8eb33.png) On top of this, if you add more basic tests, the time just seems to go up. ![image](https://user-images.githubusercontent.com/5887290/53284146-a9fb9e00-3758-11e9-9297-1a1bbc5e1184.png) ## 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.

Comment on this issue