We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9446e27 commit d839ac1Copy full SHA for d839ac1
benchmark/cljs/benchmark_runner.cljs
@@ -312,6 +312,17 @@
312
(println ";; reducers")
313
(simple-benchmark [xs (into [] (range 1000000))] (r/reduce + (r/map inc (r/map inc (r/map inc xs)))) 1)
314
315
+(dotimes [_ 10]
316
+ (let [xs (into [] (range 1000000))]
317
+ (time (r/reduce + (r/map inc (r/map inc (r/map inc xs)))))))
318
+
319
+(println ";; transducers")
320
+(simple-benchmark [xs (into [] (range 1000000))] (transduce (comp (map inc) (map inc) (map inc)) + 0 xs) 1)
321
322
323
324
+ (time (transduce (comp (map inc) (map inc) (map inc)) + 0 xs))))
325
326
(println "\n")
327
328
(println ";; multimethods")
0 commit comments