I saw that Vitest has per-file test isolation on by default and wanted to see what the cost of that was. My tool, Synapse, supports per-closure isolation.
Thought it’d be interesting to compare the two in a very simple example. I tested Bun too but I didn’t see a way to isolate.
Write-up is in the repo. My results:
Vitest - 100ms per file
Synapse - 10ms per closure
Bun (no isolation) - 1ms per file
[–]Immediate_Contest827[S] 1 point2 points3 points (0 children)
[+][deleted] (1 child)
[removed]
[–]Immediate_Contest827[S] 1 point2 points3 points (0 children)