Skip to content

A simple benchmark comparing rails 3.0 performance vs. rails 3.1 vs. rails 3.2

Notifications You must be signed in to change notification settings

alto/simple_benchmark

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Benchmark

You can use this project to compare a clean Rails 3.0 application vs. Rails 3.1 vs. Rails 3.2.

An empty User model, a migration for adding a users table with a user_name column, and a migration for populating the users table with 10,000 users is all that was added to each rails app. These rails apps are setup to use mysql. To run the benchmark yourself, create the databases rails30_simple_benchmark_production, rails31_simple_benchmark_production and rails32_simple_benchmark_production in mysql, modify the database.yml file if needed (username, password, etc.), run migrations, and then execute the following:

Run the benchmarks

Rails 3.0.12

cd rails30 && ./script/rails runner ../read_users_test.rb
cd rails30 && ./script/rails runner ../write_users_test.rb
cd rails30 && ./script/rails runner ../write_users_with_hooks_test.rb
cd rails30 && ./script/rails runner ../write_users_with_validations_test.rb
cd rails30 && ./script/rails runner ../render_text_test.rb
cd rails30 && ./script/rails runner ../render_simple_page_test_.rb
cd rails30 && ./script/rails runner ../render_page_with_partials_test.rb
cd rails30 && ./script/rails runner ../render_page_with_filters_test.rb

Rails 3.1.4

cd rails31 && ./script/rails runner ../read_users_test.rb
cd rails31 && ./script/rails runner ../write_users_test.rb
cd rails31 && ./script/rails runner ../write_users_with_hooks_test.rb
cd rails31 && ./script/rails runner ../write_users_with_validations_test.rb
cd rails31 && ./script/rails runner ../render_text_test.rb
cd rails31 && ./script/rails runner ../render_simple_page_test_.rb
cd rails31 && ./script/rails runner ../render_page_with_partials_test.rb
cd rails31 && ./script/rails runner ../render_page_with_filters_test.rb

Rails 3.2.3

cd rails32 && ./script/rails runner ../read_users_test.rb
cd rails32 && ./script/rails runner ../write_users_test.rb
cd rails32 && ./script/rails runner ../write_users_with_hooks_test.rb
cd rails32 && ./script/rails runner ../write_users_with_validations_test.rb
cd rails32 && ./script/rails runner ../render_text_test.rb
cd rails32 && ./script/rails runner ../render_simple_page_test_.rb
cd rails32 && ./script/rails runner ../render_page_with_partials_test.rb
cd rails32 && ./script/rails runner ../render_page_with_filters_test.rb

Thanks

This benchmark is based on TST Media's simple benchmark, but updated to test different Rails 3.x versions against each other.

About

A simple benchmark comparing rails 3.0 performance vs. rails 3.1 vs. rails 3.2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Ruby 87.8%
  • JavaScript 12.2%