On Sat, Dec 25, 2010 at 11:28 AM, David Nolen <dnolen.li...@gmail.com>wrote:
> On Fri, Dec 24, 2010 at 8:19 PM, David Nolen <dnolen.li...@gmail.com>wrote: > >> On OS X at least the following program shows identical performance to the >> JVM using 64 bit integers, ~2000 nanoseconds on my machine. So Clojure is >> not too far behind. >> > > w/o any GCC optimizations of course. With O2, the C is twice as fast on > this particularly micro microbenchmark. > On my "newish" Macbook I compiled and tested your code. I changed the thousand loop to a million loop and your code went from ~1000ns to ~600ns w/ O2 optimization. > In anycase, Clojure is no slouch :) > I agree 100%, but I've been surprised to find such significant performance improvements in my own code by incorporating JNI for certain hot spots. -- 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