15. Memory Allocation Compared
On a request to a simple application...
•Rails 2.3.x allocates 170,000 objects
Source: Matt Aimonetti (Merbist)
16. Memory Allocation Compared
On a request to a simple application...
•Rails 2.3.x allocates 170,000 objects
•Rails 3 allocates 8,500 objects
Source: Matt Aimonetti (Merbist)
17. Memory Allocation Compared
On a request to a simple application...
•Rails 2.3.x allocates 170,000 objects
•Rails 3 allocates 8,500 objects
•Sinatra allocates 151 objects
Source: Matt Aimonetti (Merbist)
18. Memory Allocation Compared
On a request to a simple application...
•Rails 2.3.x allocates 170,000 objects
•Rails 3 allocates 8,500 objects
•Sinatra allocates 151 objects
•Rack allocates 7 objects
Source: Matt Aimonetti (Merbist)
19. Memory Allocation Compared
On a request to a simple application...
•Rails 2.3.x allocates 170,000 objects
•Rails 3 allocates 8,500 objects
•Sinatra allocates 151 objects
•Rack allocates 7 objects
Application performance directly corresponds
to Ruby’s garbage collector! The garbage
collector will run every ~6 requests on Rails 3.
Source: Matt Aimonetti (Merbist)