0.0.6 ā€¢ Published 8 years ago

tiny-bench v0.0.6

Weekly downloads
5
License
MIT
Repository
github
Last release
8 years ago

tiny-bench

Minimum benchmark tool.

installation

npm i -D tiny-bench

usage

const tb = require('tiny-bench')

tb.test['join'] = () => {
  ['a', 'b', 'c'].join('')
}

tb.test['reduce'] = () => {
  ['a', 'b', 'c'].reduce((a, c) => a + c)
}

tb.run()
--------------------------------------------------
join x 2,333,476 ops/sec Ā±1.75% (83 runs sampled)
reduce x 10,681,067 ops/sec Ā±1.20% (84 runs sampled)
--------------------------------------------------
šŸ‘‘ reduce
šŸƒ join
0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago