-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Severe performance regression in 3.0.4+ #7488
Comments
Your whole test uses methods from a non-vitest library. I don't see any changes that could affect it directly 🤔 Are you sure you didn't update something else alongside Vitest? |
Hello @jacquesg. Please provide a minimal reproduction using a GitHub repository or StackBlitz (you can also use examples). Issues marked with |
No, I noticed in our CI that lots of tests we're timing out, and then dependency by dependency went through this. I literally just updated |
If I were to guess, I'd think something in #7289 may have caused this? |
This fix doesn't affect tests, only before/after callbacks. |
Ok, don't know how to provide a reproduction here, as the issue is non-functional. |
I have similar issue with similar setup (React Testing Library + User Event). I've noticed the performance regression when moved from Vitest 2.1.8 to Vitest 3.0.5. Unit test execution went from 60 seconds to 100 seconds on CI. I can hardly see any different on my local machine, but on CI tests clearly executes much longer. I've checked 3.0.5 vs 3.0.3 but see no difference in execution time on CI. |
Not sure if this is relevant, but can you check if toggling |
Tried both |
Make sure all of your Could you try adding some time logging between the queries in the test case? Are those getting slower when upgrading? Without reproduction there's not much anyone can do, other than try guessing what's causing this in your setup. |
Upgrading those don't make any difference, what I did was to get this to the bare minimum change that exposes the problem, that is, upgrading What I've done is to remove all the queries from the tests, keeping just the It does appear that these queries are running slower in |
Describe the bug
I've noticed a severe performance regression, first appearing in 3.0.4, 3.0.3 is not affected:
Before 3.0.4:
3.0.4 and 3.0.5:
Reproduction
Quite hard to provide, this is what the
submit
test case looks like (5x slower than before):System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: