I restart the repl and run the two versions, still `into` is slower: > > > user=> (time (do (into #{} (range 1e6)) nil)) > "Elapsed time: 4913.818 msecs" > nil > user=> (time (do (naive-into #{} (range 1e6)) nil)) > "Elapsed time: 5599.32 msecs" > nil > user=> > user=> (time (do (naive-into #{} (range 1e6)) nil)) > "Elapsed time: 4030.512 msecs" > nil > user=> (time (do (into #{} (range 1e6)) nil)) > "Elapsed time: 5412.179 msecs" > nil > user=> (time (do (into #{} (range 1e6)) nil)) > "Elapsed time: 4794.481 msecs" > nil > user=> (time (do (naive-into #{} (range 1e6)) nil)) > "Elapsed time: 4430.741 msecs" > nil
On Sunday, November 4, 2012 11:26:49 AM UTC+8, Herwig Hochleitner wrote: > > On my machine the version with into fluctuates around 200ms, whereas the > version with naive-into fluctuates around 300ms. > Have you tried running the examples multiple times to give the jit time to > warm up? > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en