Skip to content

Instantly share code, notes, and snippets.

@sapphi-red
Last active March 27, 2023 09:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sapphi-red/d1ee341566a052703732238788cb0447 to your computer and use it in GitHub Desktop.
Save sapphi-red/d1ee341566a052703732238788cb0447 to your computer and use it in GitHub Desktop.
performance-compare results

performance-compare results

Ran https://github.com/sapphi-red/performance-compare/tree/65d51a32b0282593f1b75def25075a02b28f6397 based on https://github.com/farm-fe/performance-compare.

Terms

  • cold start: --force is set
  • warm start: --force is not set and .vite/deps is reused
  • startup time: the time the command is called to the time the load event is called in browser
  • HMR time: the time the file is edited to the time the file is executed in browser

Results

cold start

Vite  startup time: 16422ms (including server start up time: 484ms)
Vite  Root HMR time: 38ms
Vite  Leaf HMR time: 19ms
Vite (swc)  startup time: 12965ms (including server start up time: 246ms)
Vite (swc)  Root HMR time: 28ms
Vite (swc)  Leaf HMR time: 13ms

warm start

Vite  startup time: 4784ms (including server start up time: 472ms)
Vite  Root HMR time: 34ms
Vite  Leaf HMR time: 16ms
Vite (swc)  startup time: 3527ms (including server start up time: 236ms)
Vite (swc)  Root HMR time: 32ms
Vite (swc)  Leaf HMR time: 12ms

Result with Vite with this PR

cold start

Vite  startup time: 5335ms (including server start up time: 475ms)
Vite  Root HMR time: 29ms
Vite  Leaf HMR time: 14ms
Vite (swc)  startup time: 3920ms (including server start up time: 232ms)
Vite (swc)  Root HMR time: 27ms
Vite (swc)  Leaf HMR time: 13ms

warm start

Vite  startup time: 4876ms (including server start up time: 475ms)
Vite  Root HMR time: 36ms
Vite  Leaf HMR time: 15ms
Vite (swc)  startup time: 3573ms (including server start up time: 252ms)
Vite (swc)  Root HMR time: 31ms
Vite (swc)  Leaf HMR time: 13ms

Result with Vite 4.2.1

Rspack  startup time: 838ms (including server start up time: 521ms)
Rspack  Root HMR time: 296ms
Rspack  Leaf HMR time: 289ms
Turbopack  startup time: 3184.24ms (including server start up time: 6.24ms)
Turbopack  Root HMR time: 23ms
Turbopack  Leaf HMR time: 19ms
Webpack (babel)  startup time: 7675ms (including server start up time: 7250ms)
Webpack (babel)  Root HMR time: 239ms
Webpack (babel)  Leaf HMR time: 190ms
Webpack (swc)  startup time: 3248ms (including server start up time: 2785ms)
Webpack (swc)  Root HMR time: 251ms
Webpack (swc)  Leaf HMR time: 210ms
Vite  startup time: 16283ms (including server start up time: 484ms)
Vite  Root HMR time: 50ms
Vite  Leaf HMR time: 25ms
Vite (swc)  startup time: 12518ms (including server start up time: 247ms)
Vite (swc)  Root HMR time: 33ms
Vite (swc)  Leaf HMR time: 16ms
Farm  startup time: 969ms (including server start up time: 506ms)
Farm  Root HMR time: 11ms
Farm  Leaf HMR time: 8ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment