-
bumblebee:纯粹的基准测试工具
资源介绍
熊蜂
Pixie 的省力基准测试:
( defn sum [values]
( reduce + 0 values))
( defn product [values]
( reduce * 1 values))
( bumblebee/run {}
( bumblebee/bench sum-bench
( sum ( range 50000 )))
( bumblebee/bench product-bench
( product ( range 50000 ))))
; ┌───────────────┬───────┬──────┬─────────┬───────┬─────────┬─────────┐
; │ name │ count │ sum │ mean │ stdev │ min │ max │