unassert-js / unassert

Encourages programming with assertions by providing tools to compile them away.
MIT License
192 stars 13 forks source link

perf: Add Benchmark Suite to run benchmark continuously #39

Closed twada closed 2 years ago

twada commented 2 years ago

result

$ node bench.mjs
start preparation of 2 benchmarks
start npm install of v1.6.0
start npm install of master
finish npm install of v1.6.0
register benchmark of v1.6.0
finish npm install of master
register benchmark of master
finish preparation of 2 benchmarks
start suite of 2 benchmarks
finish benchmark of v1.6.0 x 135 ops/sec ±0.24% (87 runs sampled)
finish benchmark of master x 2,754 ops/sec ±2.10% (95 runs sampled)
finish suite: fastest is [master]
FINISHED
$ 

v2.0.0 is 20 times faster than v1.6.0 🎉