Skip to content

Why is vitest faster than jest #1635

Answered by nickserv
spicylemonhaha asked this question in Q&A
Discussion options

You must be logged in to vote

Vite (and therefore Vitest) builds with esbuild which is a native binary compiled with Go. Jest builds with webpack which is a JS package with way more overhead and slower IO. There are other decisions Vite and Vitest make to improvement performance, but this is the main thing separate the new generation of JS tools (Vite, Parcel, esbuild, swc, etc.) from the old generator (webpack, Rollup, etc.) IMO.

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@spicylemonhaha
Comment options

@Demivan
Comment options

Demivan Jul 17, 2022
Collaborator

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@spicylemonhaha
Comment options

Answer selected by Demivan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants