I get big fluctuation in results for bot naive-into and into, ranging from 
400ms to 1500ms.
This is probably because of the GC kicking in and influencing timings.

Changing timings to something like:
 (System/gc) (time (do (into #{} (range 1e6)) nil))
and
 (System/gc) (time (do (naive-into #{} (range 1e6)) nil))
gives much more consistent results with almost no variance, and on my box I 
get ~380 for into, and ~580 for naive-into

Cheers,
Marko

On Sunday, November 4, 2012 8:36:19 AM UTC+1, Satoru Logic wrote:
>
> Hi, I'm using Clojure1.4.0, Java1.6 on MacOS.
>
>>
>> user=> (clojure-version)
>> "1.4.0"
>>
>  
>
>> ~ satoru$ java -version
>> java version "1.6.0_35"
>> Java(TM) SE Runtime Environment (build 1.6.0_35-b10-428-11M3811)
>> Java HotSpot(TM) 64-Bit Server VM (build 20.10-b01-428, mixed mode)
>
>
> On Sunday, November 4, 2012 2:18:15 PM UTC+8, Herwig Hochleitner wrote:
>>
>> On my repl into is consistently faster.
>> What versions of clojure, java and the OS are you running?
>>
>

-- 
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

Reply via email to