-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Benchmark rw test
performance
#4356
Comments
@cannikin Thoughts in general about this? I've also added to discussion list for next team meeting. |
We could look for the Is there somewhere to hook into the Jest runner when it's in watch mode, and run some custom code at the end of a run? We could maybe fire off individual telemetry events in there. But, if you only run one test it'll be way faster than if you run the whole suite, and that would massively throw off the numbers. Likewise if we can hook in there maybe we can get the number of tests that are being run. We could just count them ourselves, but you could have passed some options to the test command to only run some of the tests, right? In which case the number of tests to time comparison is going to be wildly wrong. |
I think this is a great next step. |
related to #4208 and #4096 and #4360
rw test
performance has been improved by reducing overal mem usage. Athough therw test web
leak appears resolved andrw test api
mem usage has been cut in have, there is still a potential for performance issues with the api tests in the future. (Jest is notorious for mem leaks.)We should establish a benchmark to monitor Jest test performance. Ideally we would be able to have analytics related to
jest --logHeapUsage
, but this is not a default to consider because it adds overhead and time to running tests. There is some correlation between duration and performance, especially if we could know the number of tests being run. So an ideal case would mean we have data regarding:An ideal solution might include:
Both of those requirements needs exploration and time. For the near term, we could try this approach:
yarn rw test --no-watch
(which is used during CI)The text was updated successfully, but these errors were encountered: