[READ-ONLY] Mirror of https://github.com/vitest-dev/vitest. Next generation testing framework powered by Vite. vitest.dev
test testing-tools vite
12

Configure Feed

Select the types of activity you want to include in your feed.

chore: update docs

Co-authored-by: Ari Perkkiö <ari.perkkio@gmail.com>

authored by

Vladimir
Ari Perkkiö
and committed by
GitHub
(Jul 27, 2026, 9:14 AM +0200) 05daaba2 4b54a1a7

+2 -2
+2 -2
docs/guide/improving-performance.md
··· 5 5 The `Duration` line of the summary breaks the run down into phases, as percentages of all tracked time: 6 6 7 7 ``` 8 - Duration 3.76s (environment 79%, import 14%, transform 6%, tests 1%) 8 + Duration 3.76s (environment 79%, setup 1%, import 13%, transform 6%, tests 1%) 9 9 ``` 10 10 11 11 The percentages are relative to the sum of all tracked phases, not to the wall-clock time: phases run in parallel workers, so their sum is usually larger than the run itself. In a multi-project setup the percentages aggregate over all [projects](/guide/projects), so a phase that dominates one project can be diluted by the others. 12 12 13 13 The phases map to configuration options: 14 14 15 - - `environment` - creating the test environment (`jsdom`, `happy-dom`) for test files. 15 + - `environment` - creating the test environment (for example `jsdom`, `happy-dom`) for test files. 16 16 - `transform` - transforming files with Vite. See [Caching Between Reruns](#caching-between-reruns). 17 17 - `import` - importing test files and their modules. When files import mostly the same modules (typical for barrel-file imports), isolation re-evaluates that shared graph for every file. See [Test Isolation](#test-isolation). 18 18 - `setup` - running [`setupFiles`](/config/setupfiles).