-
Notifications
You must be signed in to change notification settings - Fork 668
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
Tests are much slower since 22 #892
Comments
Yes we should make sure tests are as fast as possible. Are you able to provide me a repo that demonstrates the slower tests? That way I can investigate perf improvements. |
Sorry I am not allowed. |
We have inconsistence when passing tests. (some simple tests needs 8seconds) |
This is one test that lasts 8 min on our pipeline https://codesandbox.io/s/308vv8l08p |
Long tests are fixed in beta 24. I don't know why. Thanks for that. |
After investigation, I notice that Jest RAM consumption has exploded from beta 20 to beta 24. |
On that branch, Tests last 18 seconds on vue-test-utils@^beta 20 and 32 seconds on vue-test-utils@^beta 24 The issue is on that component: |
Thanks for the reproduction. I'm failing to replicate your results on my machine, I actually get a shorter time on beta.24 (~10s) compared to beta.20 (~13s). I've been profiling the vue-test-utils tests and can't see any obvious expensive function calls. I'll keep investigating, because it's important that Vue Test Utils is fast. |
Could you limit your RAM use to 2 Go? We notice a memory leak when executing the tests. Because we can see the RAM consumption increasing on EACH of the Jest process as long as tests are executed. |
Are you using the good branch? the branch vue-test-utils-perf? The time of 10 seconds is close to my time without the thousands of duplicated tests... |
Thanks, I switched branches and profiled. The functions that are taking the longest are internal calls to I'm going to open a PR to minimize internal |
I don't know if it's related to this, but when running tests with I'd be happy to post the stack trace or do some other investigation next time this happens - if you have any debugging/profiling recommendations, I would be appreciative! |
I haven't been noticing tests slowing down, but I only have 300 tests so it might not be noticiable yet, but lately the node heap has been running out of memory. I'm running the tests with using Karma and mocha and this plugin for Vue CLI 3 (https://www.npmjs.com/package/vue-cli-plugin-unit-karma). When running with the watch flag the heap runs out of memory after running two or three times. |
You just need to duplicate 4-5 times your tests (especially the one with
mounting options and snapshots...) to replicate and see the difference...
Personally I increased the RAM level on my Gitlab
And it works.
Le mer. 28 nov. 2018 à 18:14, Brian Brenner <[email protected]> a
écrit :
I haven't been noticing tests slowing down, but I only have 300 tests so
it might not be noticiable yet, but lately the node heap has been running
out of memory. I'm running the tests with using Karma and mocha and this
plugin for Vue CLI 3 (
https://www.npmjs.com/package/vue-cli-plugin-unit-karma). When running
with the watch flag the heap runs out of memory after running two or three
times.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#892 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AH-dRlFYXWd1ygZHgR8q0WhV6RkGM4Moks5uzsRwgaJpZM4VslAS>
.
--
Pierre Trollé
|
Version
1.0.0-beta.22
Steps to reproduce
VueTestUtils + Jest + snapsnots are slower since beta 22
What is expected?
My tests use to last 70 seconds (900 tests, 70 snapshots) during VTU beta 20.
What is actually happening?
Now they last 170 seconds (900 tests, 70 snapshots) during VTU beta 22
I don't know why it is so slow, but I believe this should be fastened
The text was updated successfully, but these errors were encountered: