2.0.1 • Published 5 years ago

benchmarkjs-pretty v2.0.1

Weekly downloads
203
License
MIT
Repository
github
Last release
5 years ago

Benchmarkjs pretty

This library is a tiny wrapper around the popular benchmarkjs but with a nicer api. It's always a bit cumbersome to specify the cycle and complete functions in each project where benchmarking is done.

Installation

# npm
npm install --save-dev benchmarkjs-pretty

# yarn
yarn add --dev benchmarkjs-pretty

Usage

import Benchmark from "benchmarkjs-pretty";

new Benchmark()
  .add("foo", myFunction)
  .add("bar", myOtherFunction)
  .run() // Returns promise

License

MIT, see LICENSE.

2.0.1

5 years ago

2.0.0

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago