All -
I tried testing the code at http://clojure.org/Refs to see what the
benefit of multicore processing would be. To my surprise, the my-pmap
function took *more* time, not less, than the map function.
Whereas the times listed in the article were approximately 3.1 and 1.7
seconds, on my
On Tue, Jan 27, 2009 at 3:04 AM, Keith Bennett keithrbenn...@gmail.com wrote:
All -
I tried testing the code at http://clojure.org/Refs to see what the
benefit of multicore processing would be. To my surprise, the my-pmap
function took *more* time, not less, than the map function.
java -server is not the default on Macs. It makes a huge difference
for Clojure.
% java -jar clojure.jar
Clojure
user= (time (reduce #(+ %1 %2 (if (odd? %1) -1 0)) (range 1000)))
Elapsed time: 11793.18 msecs
499001
% java -server -jar clojure.jar
Clojure
user= (time (reduce #(+ %1
hmm... I'm confused. From the numbers in your example it looks like
server has an advantage by a factor of about 2x. But in your text you
say that the client version has an advantage with complicated code.
What am I missing? Does one JVM have the advantage in one situation
and one in others?
On Tue, Jan 27, 2009 at 9:34 PM, hank williams hank...@gmail.com wrote:
hmm... I'm confused. From the numbers in your example it looks like
server has an advantage by a factor of about 2x. But in your text you
say that the client version has an advantage with complicated code.
What am I