Added back in basic benchmark support. To run:
ruby benchmark/benchmark.rb --adapter mysql --num 1000 ruby benchmark/benchmark.rb --adapter mysql --num 1000 --to-csv /tmp/results.csv ruby benchmark/benchmark.rb --adapter mysql --num 1000 --to-html /tmp/results.html
This commit is contained in:
parent
369a5e0e64
commit
5c287f1042
18 changed files with 509 additions and 22 deletions
16
benchmarks/schema/mysql_schema.rb
Normal file
16
benchmarks/schema/mysql_schema.rb
Normal file
|
@ -0,0 +1,16 @@
|
|||
ActiveRecord::Schema.define do
|
||||
create_table :test_myisam, :options=>'ENGINE=MyISAM', :force=>true do |t|
|
||||
t.column :my_name, :string, :null=>false
|
||||
t.column :description, :string
|
||||
end
|
||||
|
||||
create_table :test_innodb, :options=>'ENGINE=InnoDb', :force=>true do |t|
|
||||
t.column :my_name, :string, :null=>false
|
||||
t.column :description, :string
|
||||
end
|
||||
|
||||
create_table :test_memory, :options=>'ENGINE=Memory', :force=>true do |t|
|
||||
t.column :my_name, :string, :null=>false
|
||||
t.column :description, :string
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue