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