You fold over the section. Parallel folding occurs only on constant vectors and maps right now.
There are also all sorts of reasons why such testing is not inferior to using Criterium , but this is probably a separate discussion. (Some of the reasons are garbage collection, JVM and inlining warming up, funky jvm settings on Emacs and lein by default, in a box and math checking, etc.)
Still wrong for many of the reasons above, but a little more useful comparison is:
(require '[clojure.core.reducers :as r]) (def v (vec (range 800000))) (dotimes [_ 100] (time (reduce + v))) (dotimes [_ 100] (time (r/fold + v)))
Stay tuned for the best moments from each of the last two starts.
source share