News for hackers. Stuff that matters.
Re:Up and Running with Clojure by moomin on Thursday October 20, 2011 @01:13PM (#3135774)
I'm thinking that ultimately, you're testing two different things here. Language speed is part of it, but also the performance of your web server library.

I'm not saying it's unfair or meaningless, but it's worth bearing in mind that, for instance, the node.js web server is mostly written in native code, while the clojure web server is written in Clojure. For a large program, I imagine that node would get slower and slower, and Clojure and Scala would get faster and faster.

Re:Up and Running with Clojure by gtrak on Thursday October 20, 2011 @01:35PM (#3135881)
It's hard to know what you're actually testing without profiling. My guess is it's only the overhead of netty and lamina at play here, and not clojure itself. There are profiling facilities to know for sure, and the author should try to check that out. I can get like 8k request/s from clojure with jetty last time I tried.
Re:Up and Running with Clojure by icey on Thursday October 20, 2011 @04:17PM (#3136736)
If anyone is looking for a (very slightly) larger Clojure web app to poke around in, I rolled an example Noir app together a few weeks ago:

https://github.com/pmn/noir-messageboard

It doesn't do much, but it does do more than the usual "Hello World" style apps.

Re:Up and Running with Clojure by peteysd on Thursday October 20, 2011 @04:44PM (#3136889)
Thanks for sharing. I'm coming up to speed with Noir myself, and it's very helpful to see how others are building their websites with it.
Re:Up and Running with Clojure by jarecare on Thursday October 20, 2011 @01:02PM (#3135724)
I wonder if other JVM languages, e.g., Scala, would have the same performance in the "Hello World" test cited in the article.
Re:Up and Running with Clojure by prospero on Thursday October 20, 2011 @01:35PM (#3135882)
I'm the author of Aleph, the Clojure web server being benchmarked.

The most recent release of Aleph has focused on adding instrumentation and support for easily creating asynchronous workflows. A lot of new abstractions have been introduced, and "Hello World" performance has suffered a bit as a result.

However, now that all this has been introduced (0.2.0 is very close to release), I'm planning a "tick" release [1] that will focus on regaining some of the lost performance.

So please don't judge Clojure's potential for performant Hello World servers by what Aleph can do right now.

[1] http://en.wikipedia.org/wiki/Intel_Tick-Tock

Re:Up and Running with Clojure by gtrak on Thursday October 20, 2011 @01:43PM (#3135909)
thank you for informing the numbers, I get much better results with straight ring and jetty through clojure, so it's annoying to see 'clojure is exactly this slow relative to the others'
Re:Up and Running with Clojure by mperham on Thursday October 20, 2011 @01:03PM (#3135728)
(author here) I have the same question. We'd love someone to do it (esp. a Scala pro) and send us a pull request.
Re:Up and Running with Clojure by swannodette on Thursday October 20, 2011 @02:42PM (#3136232)
If you're going to benchmark, I recommend that you benchmark with the most common Clojure web setup - Ring + Jetty.
Re:Up and Running with Clojure by moomin on Friday October 21, 2011 @06:21AM (#3139182)
In fairness to the author, he only used event driven servers everywhere. The default assumption would probably be that this was the highest throughput approach, but ignores the sheer maturity of Jetty vs Aleph. I doubt the numbers for ruby would be as good if he'd used WEbrick.
Re:Up and Running with Clojure by gtrak on Friday October 21, 2011 @10:10AM (#3139781)
jetty uses non-blocking i/o internally as well, just by the time it hits the servlet layer it's thread/request.
Re:Up and Running with Clojure by mwynholds on Thursday October 20, 2011 @12:56PM (#3135700)
This post is interesting, and I am interested in Clojure. But I'd like to see some more posts about real-world Clojure usage.
Re:Up and Running with Clojure by gtani on Thursday October 20, 2011 @01:32PM (#3135856)
Can't find anything very current, but if you look at names here, Backtype, flightcaster, Runa, there's a lot of info. Best is to hit a user group/meetup or start one:

http://www.meetup.com/clojure/

http://clojure.org/community

------------------

http://lispjobs.wordpress.com/category/clojure/

http://news.ycombinator.com/item?id=1453259

http://clojure02.managed.contegix.com/display/community/Cloj...

http://www.reddit.com/r/Clojure/comments/d7ofw/akamai_lookin...

Re:Up and Running with Clojure by puredanger on Thursday October 20, 2011 @04:42PM (#3136882)
I started writing a comment but it went Yegge on me so I put it here: http://tech.puredanger.com/2011/10/20/real-world-clojure/
Re:Up and Running with Clojure by technomancy on Thursday October 20, 2011 @02:22PM (#3136116)
Not a lot of detail here, but lots of folks using it: http://dev.clojure.org/display/community/Clojure+Success+Sto...
Re:Up and Running with Clojure by mperham on Thursday October 20, 2011 @01:05PM (#3135737)
Hopefully this will get more people interested in Clojure; more and better content should follow.
Re:Up and Running with Clojure by adambyrtek on Thursday October 20, 2011 @05:48PM (#3137231)
I'm surprised that this landed on the front page. What's the point of benchmarking hello world in the first place? Not to mention that data collected from a single ab run with a fixed concurrency number is not significant in any way.
Re:Up and Running with Clojure by gtrak on Thursday October 20, 2011 @03:43PM (#3136552)
Reminds me of this: http://blog.dhananjaynene.com/2011/08/cperformance-compariso...

note the retraction after he tried to keep everything updated for a while.