0.4.0 • Published 7 years ago
@jamen/bench v0.4.0
bench
Better defaults for Benchmark.js.

Install
npm i @jamen/benchUsage
benchmark()
Create a Benchmark.Suite with event listeners that report for you. Also reports the CPU and memory. Use .add calls then .run to perform the benchmarks.
let bench = benchmark()
bench.add('foobar', () => {
foobar()
})
bench.run()