0.4.0 • Published 5 years ago

@jamen/bench v0.4.0

Weekly downloads
1
License
-
Repository
-
Last release
5 years ago

bench

Better defaults for Benchmark.js.

npm.io

Install

npm i @jamen/bench

Usage

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()
0.4.0

5 years ago

0.3.0

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago

0.0.0

6 years ago