Loading
Current section: Performance 6 exercises
lesson

Performance Outro

That’s the end of the performance block—and the workshop. You now have practical tools to investigate slow tests, from profiling CPU and memory usage to understanding Vitest’s internals. More importantly, you’ve seen how different defaults and options affect speed, and how to weigh those choices carefully. Fast tests aren’t about hacks, they’re about informed trade-offs.

Loading lesson

Transcript

00:00 All right, great job on those exercises. Performance is a crucial aspect of any test because fast tests give you feedback faster and you're able to iterate on the software that you're building more efficiently. Now you don't have to approach performance blindly. You have the roadmap. You know what to do when you encounter slow tests.

00:19 From analyzing the test summary report that VITAS gives you to employing profiling to identify and hunt down the problematic areas in your tests. And of course, keep in mind all the different ways how you can customize VITAS and change the way it runs your tests. From utilizing concurrent test runs and turning off test isolation

00:36 to benefiting from sharding in really large test suits. And the underlying motive of all of that improvement is that writing isolated tests and following the best practices of automated testing pays off tremendously, especially when it comes to performance.