Programmatically create benchmark tests, powered by Funish.
# npm
$ npm install @funish/bench
# yarn
$ yarn add @funish/bench
# pnpm
$ pnpm add @funish/bench
import { Bench } from "@funish/bench";
const bench = new Bench({
times: 1000,
unit: "ns",
});
bench.add("test", () => {
// ...
});
bench.print();
See it on JSDoc.