Basic stats utils. Private, subject to change.
Basic stats utils. Private, subject to change.
(format-stats clock-total id-stats)
(format-stats clock-total id-stats sort-fn)
Returns a formatted table string for given {<id> <stats>}
map.
Assumes nanosecond clock, stats based on profiling id'd nanosecond times.
Returns a formatted table string for given `{<id> <stats>}` map. Assumes nanosecond clock, stats based on profiling id'd nanosecond times.
(long-percentiles longs)
Returns ?[min p50 p90 p95 p99 max]
Returns ?[min p50 p90 p95 p99 max]
(merge-stats m0 m1)
(merge-stats (stats c0) (stats c1))
is a basic approximation of (stats (into c0 c1)))
.
`(merge-stats (stats c0) (stats c1))` is a basic approximation of `(stats (into c0 c1)))`.
(stats longs)
Given a collection of longs, returns map with keys: #{:n :min :max :sum :mean :mad-sum :mad :p50 :p90 :p95 :p99}, or nil if collection is empty.
Given a collection of longs, returns map with keys: #{:n :min :max :sum :mean :mad-sum :mad :p50 :p90 :p95 :p99}, or nil if collection is empty.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close