Garbage Collection is Why Ruby on Rails is Slow: Patches to Improve Performance 5x; Memory Profiling The News: Ruby on Rails performance is dominated by garbage collection. We present a set of patches to greatly improve Rails performance and show how to profile memory usage to get further performance gains. What's at Stake: Rails is slow for many uses and did not lend itself well to optimization.