Rails Edge Performance
Posted 18 Sep 2007
Listening to David's RailsConf Europe 2007 keynote, I've learned that he's going to a release a beta version soonish. He's asked me to do some benchmarking, comparing the performance of edge Rails to the latest stable branches. Here's a chart:
stable11 is the current svn version of branch 1-1-stable, stable12 is current version of 1-2-stable branch and edge is the current version of Rails trunk. Numbers are requests per second (measured on my MacBook during David's talk).
If you're a numbers type, these are the numbers:
|page||c1 total||c2 total||c1 r/s||c2 r/s||c1 ms/r||c2 ms/r||c1/c2|
|GC statistics||c1 total||c2 total||c1 #gc||c2 #gc||c1 gc%||c2 #gc%||c1/c2|
c1: 1.2-stable, c2: edge, r/s: requests per second, ms/r: milliseconds per request
I haven't had time to analyze the code, but it seems that anything loading a large number of active record objects takes a rather large performance hit.
I hope we can improve performance before 2.0 gets finally released. Unfortunately, I have almost no time to work on this. However, if anyone has a performance patch, I can look into the it.