Chapter 12. Performance

The relative performance of Ruby on Rails compared to other languages and web frameworks is still a topic of debate. A quick Google search reveals that many people feel Ruby on Rails is slow.

Newer versions of the Ruby interpreter have made great strides where performance is concerned. Ruby 2.0 included garbage collection optimizations and other improvements that made it much faster than older versions. Ruby 2.1 introduced a generational garbage collector that was even faster still.

As the Ruby language has improved, so has Ruby on Rails. The Rails framework now includes several features designed specifically to improve application performance. This chapter starts with discussions of two of those built-in features and then ...

Get Rails Crash Course now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.