Skip to content

v6.0.0

Choose a tag to compare

@github-actions github-actions released this 13 Oct 15:44
· 5 commits to main since this release
v6.0.0
f08a6b7

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

New Contributors

Full Changelog: v5.7.1...v6.0.0