logoalt Hacker News

mort96today at 3:48 PM5 repliesview on HN

I don't get how a test runner can be "ultra fast". Surely all the time is taken by the tests, not calling the test functions?


Replies

andrewingramtoday at 3:56 PM

At work we've tried switching to vitest, and it's 1.5-2x slower than Jest (I think it's related to our very large and circular module graph), so performance is very much a your-mileage-may-vary thing.

show 2 replies
sunaookamitoday at 5:44 PM

Say this again when you have worked with Jest, one of the worst and slowest pieces of software I've ever worked with.

show 1 reply
satvikpendemtoday at 7:05 PM

You'd be surprised how slow the JS ecosystem can be.

re-thctoday at 4:29 PM

> Surely all the time is taken by the tests, not calling the test functions?

Calling tests has overhead. Also knowing how to schedule and parallelize tests with dependencies is not as "simple".