Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add apply benchmark

  • Loading branch information...
commit fec8f7efac40198a9809e7b320a2d1bd5060e31f 1 parent d442f2e
David Nolen authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 benchmark/cljs/benchmark_runner.cljs
View
4 benchmark/cljs/benchmark_runner.cljs
@@ -74,6 +74,10 @@
(simple-benchmark [coll (into [] (range 1000000))] (reduce + 0 coll) 1)
(println)
+(println ";; apply")
+(simple-benchmark [coll (into [] (range 1000000))] (apply + coll) 1)
+(println)
+
(println ";;; map / record ops")
(simple-benchmark [coll {:foo 1 :bar 2}] (get coll :foo) 1000000)
(simple-benchmark [coll {:foo 1 :bar 2}] (-lookup coll :foo nil) 1000000)
Please sign in to comment.
Something went wrong with that request. Please try again.