Skip to content

marvinhagemeister/benchmarkjs-pretty

Repository files navigation

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.

About

Tiny wrapper around benchmarkjs with a nicer api

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published