0.1.0 • Published 8 years ago

@rdcl/bench v0.1.0

Weekly downloads
1
License
ISC
Repository
github
Last release
8 years ago

node-bench

NPM version Build Status Coverage Status

Simple benchmarking tool.

Installation

npm install @rdcl/bench

Usage

const bench = require('@rdcl/bench');

// synchronously:
bench('#test 1', () => {
  // do stuff here
})

// asynchronously (don't use arrow notation here!):
bench('#test 2', () => {
  const end = this.async()

  someAsyncStuff.then(end)
})

Tests

npm test