I've got a github repo with submissions for the Benchmarks Game web site for Java and Clojure, with several different Clojure programs for most problems:
https://github.com/jafingerhut/clojure-benchmarks If people would like to submit what they consider idiomatic Clojure programs for any of these problems, feel free to send them to me, and I can include them, not only in the repo but also in some benchmark results that I am planning to publish at the link below some day when I have them ready, under "whole program benchmarks": http://jafingerhut.github.com/clojure-benchmarks-results/Clojure-benchmarks.html If you do submit a program, I'd ask you to consider submitting a version that you wrote first and got working correctly, before even looking at any kinds of optimizations at all, as well as one you consider to be a mild optimization pass over that first version, and yet still "idiomatic". Andy On Feb 26, 2013, at 12:50 PM, Marko Topolnik wrote: > I see; didn't notice that one. Again, only the fastest entries are shown. It > appears that the same is the case with Marceau's graphs; he just didn't state > that explicitly. > > Things don't look very rosy for Clojure: it turns out to be about as verbose > as Java and significantly slower (this confirms my experience; slightly > slower than regular Java code, significantly slower than highly optimized > Java). If idiomatic Clojure was used, it would move it to the left and > upwards; Clojure would hang out with JRuby. > > Anyway, it would be really great to see such a comparison chart, but only > with idiomatic code involved. This way I don't have a clue what to make of > Haskell, for example. > > > On Tuesday, February 26, 2013 6:30:55 PM UTC+1, Ben Mabey wrote: > As Issac pointed out, here are some very recent graphs (including Clojure): > > http://benchmarksgame.alioth.debian.org/u32/code-used-time-used-shapes.php > > On 2/26/13 2:35 AM, Marko Topolnik wrote: >> This is a great analysis, thanks for the link; shame it's so old. >> >> On Sunday, February 24, 2013 10:45:33 PM UTC+1, Ben Mabey wrote: >> >> Yeah, I wish the Benchmarks allowed for idiomatic submissions and finely >> tuned submissions. That would allow you to get some sort of an idea how >> performant the dominant idiom is. Along those lines this older post did an >> interesting analysis on the benchmark solutions where it explored the >> tension that exists between expressiveness and performance across the >> various languages: >> >> http://blog.gmarceau.qc.ca/2009/05/speed-size-and-dependability-of.html >> >> >> >> -- >> -- >> You received this message because you are subscribed to the Google >> Groups "Clojure" group. >> To post to this group, send email to clo...@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+u...@googlegroups.com >> For more options, visit this group at >> http://groups.google.com/group/clojure?hl=en >> --- >> You received this message because you are subscribed to the Google Groups >> "Clojure" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to clojure+u...@googlegroups.com. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> > > > -- > -- > 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 > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > > -- -- 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.