GitXplorerGitXplorer
a

simple_benchmark

public
2 stars
4 forks
0 issues

Commits

List of commits on branch master.
Unverified
b85981c044565203ad2e13047db610174b55c7ed

remove placeholder html page for all rails versions

aalto committed 13 years ago
Unverified
c36d9a1b387155c74e969cafdf476c7efaf8d392

updated README

aalto committed 13 years ago
Unverified
d67c92d2154baa8e309ec450c0c0924fdfdc3e9f

and removed again, doesn't work

aalto committed 13 years ago
Unverified
4d5c407c8ac8692ec4a1ca44bc57562f7f7e8af9

added the chart as markdown

aalto committed 13 years ago
Unverified
7eb8cd94d4708536b77e4d029f047ee61d624123

added tests for life cycle hooks, validations and controller filters

aalto committed 13 years ago
Unverified
6afd66ba1e30b95a9aa6431c462e60ecf4a51648

normalised the data

aalto committed 13 years ago

README

The README file for this repository.

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.