simple-benchmark
macrov1.7
cljs.core/simple-benchmark
(simple-benchmark [bindings expr iterations & {:keys [print-fn], :or {print-fn (quote println)}}])Runs expr iterations times in the context of a let expression with
the given bindings, then prints out the bindings and the expr
followed by number of iterations and total time. The optional
argument print-fn, defaulting to println, sets function used to
print the result. expr's string representation will be produced
using pr-str in any case.
Examples
No examples yet. Be the first to add one!