A cli tool to collect vite server performance metrics, includes:
- vite config loading time
- tsconfck init time
- vite server start up time
- vite server scan dependencies time
- vite server pre-bundle time
- browser page loading time
- vite@^4.0.0
- node@^14.0.0
$ npm i vite-perf
$ vperf --force --load startUp
option | type | required | description |
---|---|---|---|
--force | boolean |
same as vite --force |
|
--load | 'startUp'/'prebundle' |
specific when to load the page, 'startUp' means load the page once vite server starts up, 'prebundle' means load the page once vite server finishes pre-bundle |