Hi all,

be gentle please: I have only just started using clojure.

I run the following on an Intel Core 2 Duo CPU (starting clojure with
"java -Xms1000m -Xmx1000m -jar clojure.jar"):

user=> (time (nth (doall (map inc (range 10000000))) 9999999))
"Elapsed time: 5944.068355 msecs"
10000000

user=> (time (nth (doall (pmap inc (range 10000000))) 9999999))
"Elapsed time: 108837.451146 msecs"
10000000

I was expecting pmap to take less time then map, instead it took much
much longer.

Any thoughts?

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