-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Tests are slow #399
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
Comments
I had a look at this. I don't think the problem is TypeScript inherently but the way it is being used. The current version of the compiler can compile all the .ts files in the test suite in ~2.3s on my i5 system, whereas the whole test suite takes about >100s to run. There is a general issue on Jest's issue tracker at jestjs/jest#116 about performance. I haven't looked into that closer so I can't say how much of that is relevant. |
Speed up the test suite by updating to the current version of the TypeScript compiler which is ~5x faster than the 1.0 version that was being used previously and caching compiled TypeScript files. * Update type definitions and flatten.ts for compatibility with TS 1.4 * Remove ts-compiler dependency and use the now-public TypeScript compiler API directly. Fixes immutable-js#399
After @robertknight's diff, tests run 3x faster on travis-ci, which uses jest's inline mode. It's closer to 4-5x faster on my MPB. Still on the order of tens of seconds, but much better than the > minute. |
The test suite runs rather slow, and I was wondering whether it is possible to speed it up.
I’ve tested different variants on MBPs from 2010 and 2008 (sorry, don’t have more recent hardware available atm):
The text was updated successfully, but these errors were encountered: