Rails 1.0 performs slightly worse than the previous 0.14.1 release for my application. However, 1.0 is still much faster than the previous 0.13 release series.
The following performance data table shows the speed difference for the fastest availabe configuration for the tested application.
page c1 total c2 total c1 r/s c2 r/s c1 ms/r c2 ms/r c1/c2 /empty/index 1.26111 1.40676 793.0 710.9 1.26 1.41 0.90 /welcome/index 1.41814 1.57333 705.1 635.6 1.42 1.57 0.90 /rezept/index 1.50077 1.66533 666.3 600.5 1.50 1.67 0.90 /rezept/myknzlpzl 1.49374 1.65309 669.5 604.9 1.49 1.65 0.90 /rezept/show/713 3.59988 3.99798 277.8 250.1 3.60 4.00 0.90 /rezept/cat/Hauptspeise 4.54024 4.86669 220.3 205.5 4.54 4.87 0.93 /rezept/letter/G 4.59054 4.84387 217.8 206.4 4.59 4.84 0.95
The reasons for this significant slowdown have been identified and are being worked on (tickets 3155 and 3174).
Each test was run using railsbench on an Athlon64 3000+ with 1G of memory using Suse9.3, ruby 1.8.2 and Mysql 4.1, with RAILS_PERF_RUNS=5. For session storage, Mysql using mysql-ruby-2.7 was employed and Rails logging was disabled.
A number of configuration options were tested:
For the tests, I selected a number of pages from my recipe database application:
/empty/index | a simple render_text |
/welcome/index | a welcome page, action cached |
/rezept/index | application front page, user dependent, action cached |
/rezept/myknzlpzl | my recipes, user dependent, action cached |
/rezept/show/713 | show recipe 713 |
/rezept/cat/Hauptspeise | show all recipes of category Hauptspeise, paginated |
/rezept/cat/Hauptspeise?page=5 | page 5 of category Hauptspeise |
/rezept/letter/G | all recipes with a title starting with G |
Performance data for each configuration can be found here.
One on one comparisons produced by script perf_comp for each configuration are listed in this file.
Logs of the the test runs:
This one shows how well 1.0 does against 0.14.1, with no options, gc100 and patched GC. The numbers are requests per second.
This one shows the speedup of all tuning options applied to 1.0, for the different GC options.
This one shows the speedup obtained by applying different tuning options to 1.0, all running with patched GC.