-
Notifications
You must be signed in to change notification settings - Fork 455
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
RFC: Performance report for each ts-jest version #1115
Comments
For what it's worth, |
These are the 2 things I did for CI at work:
They are affected, only the 1st time it takes time because of clearing cache (set Alternatively, you can use the combo of |
#1549 will be in alpha version today. Please test and let us know whether it helps. |
We have some problems with |
|
25.5.0-beta.0 was released. |
@ahnpnl I can confirm this beta has a massive performance improvement for us (down to 37 minutes from 5.5 hours with cold cache) 🎉 |
I'm very glad to hear that 👍 |
related to this topic. 25.5.1 is out which reverted the changes to boost performance in 25.5.0 because it created so many inconveniences for users. Therefore, |
Hi folks 👋 a few extra improvements for this topic were introduced in v26.1.2 . Would love to hear some feedbacks from you guys 🙏 |
|
sry) |
I am not getting anywhere closer towards a good performance with v26 above. Still the old trick of setting |
Link doesn't work ): |
Hey @ahnpnl , after reading about isolatedModules it is clear why it would improve performance but docs also mention about using jest with --no-cache option. Can you share some thoughts on how the --no-cache option helps with performance when used with isolatedModules=true If taking in a little more detail, In our projects we have identified the performance bottleneck to be the usage of barrel imports. Although we are still on v24.x.x, in an ongoing effort to upgrade to v25/v27, didnt notice any significant performance improvement. The project is big with around 15k files. |
We plan to switch to |
@ahnpnl Is there any loose timeline for when this might happen? |
This may be relevant to evaluate how much faster your tests may be once ts-jest switches or to swc:
|
@ahnpnl One bit of feedback to perhaps consider between esbuild and swc is that the latter has first-class support for custom AST transforms. |
@ahnpnl just thought i'd note that changing to esbuild brings it's own set of challenges with some dependent projects (typeorm) in our case as their speed benefits come at the cost of some language features |
Topic
This is a discussion issue where users can report any regressions in performance. All the reported cases will be taken care of with high priority.
Helpful solutions for performance improvement:
Follow updated information in documentation at https://kulshekhar.github.io/ts-jest/user/config/isolatedModules
The text was updated successfully, but these errors were encountered: