question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Performance loss between jest 25.1.0 and 25.2.7

See original GitHub issue

💥 Regression Report

We run about 7000 tests total across 630 test files without coverage (see https://github.com/facebook/jest/issues/9457). On my machine, with 25.1.0, the tests took 140 seconds, compared to 350 seconds with 25.2.7. I am running Windows, I believe the effect is less noticeable (but still there) on mac/linux.

Last working version

Worked up to version: 25.1.0

Stopped working in version: somewhere between 25.1.0 and 25.2.7

To Reproduce

Steps to reproduce the behavior: Update from jest 25.1.0 to 25.2.7

Expected behavior

Test run time should not increase drastically when upgrading versions.

Link to repl or repo (highly encouraged)

I don’t have a publicly available repo to show, but here are some performance charts I captured. I’m not familiar with the inner workings of Jest, but it appears the performance regression probably has something to do with the resolution of symlinks? We’re not using any symlinks as far as I am aware. 25.1.0: performance_before 25.2.7: performance_after

Run npx envinfo --preset jest

System: OS: Windows 10 10.0.14393 CPU: (12) x64 Intel® Core™ i7-8850H CPU @ 2.60GHz Binaries: Node: 12.14.0 - C:\Program Files\nodejs\node.EXE npm: 6.14.4 - C:\Users*****\AppData\Roaming\npm\npm.CMD npmPackages: jest: 25.2.7 => 25.2.7

Thank you for the work that you do maintaining Jest!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:6
  • Comments:22 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
SimenBcommented, Apr 28, 2020

25.5 is out

2reactions
SimenBcommented, Apr 27, 2020

Wanna land #9443 and #9806 first

Read more comments on GitHub >

github_iconTop Results From Across the Web

ts-jest - npm
A Jest transformer with source map support that lets you use Jest to test projects written in TypeScript. NPM version NPM downloads Known ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found