We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c10d4f5 commit 66a435eCopy full SHA for 66a435e
benchmark/cljs/benchmark_runner.cljs
@@ -215,6 +215,14 @@
215
(recur (inc i) (conj r (str "foo" i)))
216
r)))
217
(simple-benchmark [coll hash-coll-test] (hash-coll coll) 100)
218
+(simple-benchmark [coll hash-coll-test] (hash-ordered-coll coll) 100)
219
+(def hash-imap-test
220
+ (loop [i 0 r {}]
221
+ (if (< i 1000)
222
+ (recur (inc i) (conj r [(keyword (str "foo" i)) i]))
223
+ r)))
224
+(simple-benchmark [coll hash-imap-test] (hash-imap coll) 100)
225
+(simple-benchmark [coll hash-imap-test] (hash-unordered-coll coll) 100)
226
(simple-benchmark [coll pmap] (:f0 coll) 1000000)
227
(simple-benchmark [coll pmap] (get coll :f0) 1000000)
228
(simple-benchmark [coll pmap] (-lookup coll :f0 nil) 1000000)
0 commit comments