If I am reading the README correctly, clj-8 is 10.8 times slower than Java, but clj-9 does better: 3.2 times slower.
Stu > > I feel that this question is important enough to warrant its own > thread. > > If you use Java's arrays and declare all types, should Clojure be as > fast as the equivalent Java? I had taken this for granted, but > empirical evidence indicates otherwise: > > Andy's version of the Nbody benchmark still appears to be about 10x > slower than Java: > > Clojure: > http://github.com/jafingerhut/clojure-benchmarks/blob/9dc56d8ff53f0b8d363f213317587432bd8793de/n-body/nbody.clj-8.clj > > Java (runs 21 times): > http://shootout.alioth.debian.org/u32/benchmark.php?test=nbody&lang=javasteady&box=1 > > Why?! > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---