On Wed, Aug 12, 2009 at 12:00 PM, John Harrop<jharrop...@gmail.com> wrote: > Note: the expressions should be run three or four times. The first two or > three timings will be longer than the later ones. (JIT?) Run until the times > are consistent and at least three repetitions have been run in rapid > succession.
JIT usually needs some time to kick in (especially under -server). Check if your JVM supports the following flag: -XX:+PrintCompilation which should print JIT compilation details. > Note 2: someone with access to disassembly/memory debugger/perf tools might > be able to learn more by running these loops, Andy's Clojure, and Andy's C > on their system. Disassemblies of the JIT-generated code for the Clojure > code and of the compiled C code would be interesting to compare, in > particular. There was a good thread on this list some weeks ago which mentioned another JVM flag: -XX:+PrintOptoAssembly The original thread: http://groups.google.com/group/clojure/browse_thread/thread/314952431ec064b7?fwc=1 Hope this helps. Cheers, Daniel --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---