0.1.0 • Published 8 years ago
@rdcl/bench v0.1.0
node-bench
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
0.1.0
8 years ago