Repository navigation
v6.0.0
CodSpeed for Node.js 6.0.0 adds support for Node.js 24 and 26, Vitest 5 and Vite 8.
Highlights
Node.js 24 and 26
The plugins now ship prebuilt native addons for Node.js 22, 24 and 26, and warn in CI when running on an untested major.
Vitest 5
@codspeed/vitest-plugin supports Vitest 3, 4 and 5 with no configuration change. On Vitest 5, declare benchmarks with the bench test fixture. Each benchmark passed to bench.compare() is reported as its own benchmark in CodSpeed:
import { test } from "vitest";
import { fibonacci } from "./fibonacci";
test("fibo", async ({ bench }) => {
await bench("fibo 10", () => {
fibonacci(10);
}).run();
await bench("fibo 15", () => {
fibonacci(15);
}).run();
});To compare implementations side by side, pass them to bench.compare() instead. Each benchmark in the group is still reported as its own benchmark in CodSpeed.
Check out the docs for more information!
Breaking changes
- Node.js 22 or later is now required.
- The CPU simulation instrument now disables Maglev on Node.js 24 and later, so hot functions tier up as they do on Node.js 22, and suppresses V8's minor GC task. Expect a one-time change in measured values after upgrading.
What's Changed
- build: pin -std=c11 for instrument-hooks core.c by @not-matthias in #84
- feat: support Node 24 by @not-matthias in #88
- ci(release): publish any prerelease tag under its own dist-tag by @not-matthias in #91
- feat(core): warn when running on an untested Node.js version by @not-matthias in #90
- feat(vitest-plugin): add vite 8 support by @adriencaccia in #74
- fix(vitest-plugin): stop importing the deprecated vitest subpaths by @adriencaccia in #75
- fix(vitest-plugin): call the bench setup and teardown hooks in analysis mode by @adriencaccia in #94
- fix(core): load the native addon on every Node major by @not-matthias in #92
- feat: support Node 26 by @not-matthias in #89
- ci: migrate to github default arm runners by @lvaroqui in #95
- Support vitest 5 by @GuillaumeLagrange in #86
New Contributors
Full Changelog: v5.7.1...v6.0.0