@funish/bench
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

@funish/bench

npm version npm downloads npm license Contributor Covenant

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.

License

Package Sidebar

Install

npm i @funish/bench

Weekly Downloads

3

Version

0.0.2

License

MIT

Unpacked Size

6.16 kB

Total Files

8

Last publish

Collaborators

  • demomacro