Book Excerpt and Interview: The Joy of Clojure
infoq.com
infoq.com
Clojure seems to be consuming more memory and is generally slower by significant margins compared to Scala ( or java). I would be interested in hearing from anyone using this in a high performance mission critical application like in a bank or in financial services ? What was your response time like under heavy load ? How did you justify this to your management?
In a Bank or financial institute I would rather write something save that can scale but these institute prefere static typing most of the time so Scala may be a better fit.
Those are benchmarks for Clojure 1.2.0. The Clojure 1.3.0 alphas introduce quite a few things that specifically make numerical code quite a bit faster as well as boosting overall performance.
Being competitive with Scala and Java is a real goal for Clojure so expect the performance story to continue improve for some time.
While I don't know of any real-world Clojure cases for mission critical applications - Clojure has been run Azul boxes where the GC is collecting some like 6gbs a sec. Turns out that only takes up about 6% of CPU time. So I think Rich is onto something here about the memory cost of immutable data structures in high performance code and the incredible guarantees of the JVM's GC.
On Alioth microbenchmarks you probably won't see those benefits.