Skip to content

perf: bundle vitest's own dependencies, print a suggestion to disable isolation#10685

Draft
sheremet-va wants to merge 3 commits into
mainfrom
perf/improve-loading-perf
Draft

perf: bundle vitest's own dependencies, print a suggestion to disable isolation#10685
sheremet-va wants to merge 3 commits into
mainfrom
perf/improve-loading-perf

Conversation

@sheremet-va

Copy link
Copy Markdown
Member

Not sure if suggestion is a good idea, but it could be a solid improvement for many codebases (but definitely not for all)

This PR also bundles vitest dependencies to reduce the boot time by reducing the time it takes Node to resolve external modules:

metric main branch Δ
worker boot import (cold, min) 28.8 ms 21.3 ms −26%
wall — forks isolate:true (min) 1029 ms 937 ms −9%
wall — forks isolate:false 382 ms 384 ms ~0 (amortized)
worker boot modules loaded 61 45 −26%
— node: builtins 14 10 −4
— vitest dist chunks 23 28 +5
— external npm resolves 7 2 −71%
boot graph (static closure) 605 KB / 23 chunks 759 KB / 28 chunks +154 KB / +5
dist size 2215 KB 2557 KB +342 KB
@netlify

netlify Bot commented Jun 30, 2026

Copy link
Copy Markdown

Deploy Preview for vitest-dev ready!

Name Link
🔨 Latest commit 30c1c95
🔍 Latest deploy log https://app.netlify.com/projects/vitest-dev/deploys/6a43f991af62cb00086bc98e
😎 Deploy Preview https://deploy-preview-10685--vitest-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant