@jamen/bench

0.4.0 • Public • Published

bench

Better defaults for Benchmark.js.

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

Readme

Keywords

none

Package Sidebar

Install

npm i @jamen/bench

Weekly Downloads

0

Version

0.4.0

License

none

Unpacked Size

4.14 kB

Total Files

4

Last publish

Collaborators

  • jamen