bench: fixed parens

This commit is contained in:
hellerve 2017-11-06 13:16:20 +01:00
parent 046956d711
commit 041645b298

View File

@ -14,7 +14,7 @@
(let [unit (get-unit n)]
(do
(IO.println title)
(IO.println &unit)))
(IO.println &unit))))
(defn ns-iter-inner [f k]
(let [start (get-time-elapsed)]
@ -22,6 +22,14 @@
(for [i 0 n] (f))
(Double.- (Bench.get-time-elapsed) before))))
(defn dbl-cmp [a b]
(Double.- a b))
(defn winsorize [samples pct]
(let [tmp (Array.sort samples dbl-cmp)
; and now?
))
(defn bench [f]
(let [ns (ns-iter-inner f 1)
ns-target-total 1000000.0