benchmarkjs-pretty
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i benchmarkjs-pretty

Weekly Downloads

5

Version

2.0.1

License

MIT

Unpacked Size

8.59 kB

Total Files

8

Last publish

Collaborators

  • marvinhagemeister