44 points · by aliasaria · 16y ago · 17 comments
Still, I saved 'em, so here you go:
On a 2.27Ghz Xeon dual quad core with 12 GB ram, using Snap's tests from GitHub:
Test Pong:
| Rails Webrick | Rails Mongrel | Rails Thin | Rails JRuby (glassfish) | Snap | Play! |
| 155.0 req/s | 1940.5 req/s | 619.0 req/s | 3606.0 req/s | 11347.0 req/s | 19602.2 req/s |
Test File:
| Rails Webrick | Rails Mongrel | Rails Thin | Rails JRuby (glassfish) | Snap | Play! |
| Didn't test | 188.3 req/s | 718.0 req/s | 6633.3 req/s | memory leak | 606.6 conn/s |
The full results are here:Pong: http://gist.github.com/414724 File: http://gist.github.com/414728
Note, Snap had a mem leak when performing the file test that caused a machine with 12 GB to swap, but that may be because I used the Ubuntu Lucid version of Haskell.
Also note, Play is damned fast. And relative to other Rails options, JRuby with glassfish is as well.
Rails Webrick: 153.9 Rails Thin: 33.3 Rails Mongrel: 90.7 Rails JRuby (glassfish): 3,350 JRuby Mongrel: 31.3 Snap: 11,309 Play: 19,796
Test Pong:
| Rails Webrick | Rails Mongrel | Rails Thin | Rails JRuby (glassfish) | Snap | Play! |
| 153.9 | 90.7 | 33.3 | 3350.5 | 11309.5 | 19796.3 |
Test File:
| Rails Webrick | Rails Mongrel | Rails Thin | Rails JRuby (glassfish) | Snap | Play! |
| Didn't test | 179.9 | 758.0 | 6146.9 | memory leak | 1617.9 |Scala is a hot language right now, and when Play gets really solid Scala support (does it have it already?) then Play may get to be more popular.
However, I really encourage all of you to give the Java side of play a shot. It's really unlike any Java framework I've ever worked with, and I've been doing Java for far too long. It automatically reloads your changes without a compile...it makes great use of annotations, and it uses Groovy for the templating language, it comes with support by default for the big three IDEs (Netbeans, Eclipse, IntelliJ) although you can easily be happy with vim, emacs, or tm. After a bit of time, it's easy to forget you're actually working with Java.
Also, if you know Rails, you essentially know Play. The concepts are the same, the directory structure is the same. You're learning the Java version of Rails, so there are differences, but my years of Rails development experience made picking up play a breeze.
edit: clarified API comment
Edit: Oh he responded to you the last time, but I'll leave this here so others can see