2 Commits
Author SHA1 Message Date
Tim van der Meij aa6ebe3b7d Upgrade Vitest to version 5
We only use Vitest for benchmarking, and in this major version the
benchmarking API got rewritten [1] which requires changes on our end.
This means that `bench` is no longer a top-level import, that under
water created a test on its own, but it's now a fixture inside regular
`test()` scopes.

For us this would mean quite a bit of additional boilerplate because
we'd have to wrap every existing benchmark into a separate `test()`
scope [2]. To keep the individual benchmarks small and expressive this
commit introduces a helper wrapper function that takes care of this,
basically mirroring the behavior of Vitest 4.

[1] https://vitest.dev/blog/vitest-5#benchmarking-rewrite
[2] https://vitest.dev/guide/migration/#benchmarking-api-rewrite
2026-10-24 18:44:54 +02:00
Calixte Denizet caea88ecd6 Add lexer, preprocessor and xref benchmarks 2026-10-17 16:13:40 +02:00