In this write-up I captured my findings about the performance of various frameworks that I was considering for my next project…
- One MySQL 5.1 table consisting of an ID and 2 string columns, 1000 rows (+5 for warm-up)
- a simple web application that:
- reads one record from the table
- displays record data on a web page in table form
- PHP 5.3.3 on Apache 2.2.21
- Ruby 1.8.7 + Rails 3.1.3 on mongrel 1.1.5
- JRuby 1.6.5 (emulating Ruby 1.8.7) + Rails 3.1.3 on mongrel 1.1.5
- Grails 2.0.0 (Groovy 1.8.4) on Tomcat 7.0.16
- Java 1.7 + Spring 3 on Tomcat 7.0.23
Everything was set to ‘production mode’. Test platform: win32.
|Framework||Time per request|
Java seems to be a clear winner here… too bad it’s by far the slowest of the 5 to develop in! :-
p.s. I know my JRuby setup is awkward… I just couldn’t get any sane performance out of it on a Tomcat. The perf I got in this post is the best I could achieve.