Skip to content
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

Improve startup performance #2692

Closed
cpojer opened this issue Jan 25, 2017 · 5 comments
Closed

Improve startup performance #2692

cpojer opened this issue Jan 25, 2017 · 5 comments

Comments

@cpojer
Copy link
Member

cpojer commented Jan 25, 2017

Let's use the inline-requires and inline-imports transform (cc @zertosh do we have a combined transform yet? Otherwise, where are the two separate ones?).

How to measure:

  • Measure the time it takes to run the first piece of Jest ("runJest") and bring that down.
  • Measure the time it takes for the first "RUNS" to show up on a warm cache.

More startup performance wins:

  • What else shall we do?
@thymikee
Copy link
Collaborator

thymikee commented Jan 25, 2017

@zertosh
Copy link
Contributor

zertosh commented Jan 25, 2017

@cpojer, just inline-imports, no plans to support require. As much I... disapprove... of non-spec'ed behavior, import/export is what we use, so I can't justify the time expense into building it out for require.

@cpojer
Copy link
Member Author

cpojer commented Jan 25, 2017

Also, @zertosh has a handy script here: https://gist.github.com/zertosh/1486c709fa7683c7bf1e165f114d2875

@thymikee
Copy link
Collaborator

thymikee commented Oct 5, 2017

We landed inline imports in Jest 21 and as a result startup is faster by ~50%
https://twitter.com/fbjest/status/904729285281423360

@thymikee thymikee closed this as completed Oct 5, 2017
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants