5c287f1042
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
16 lines
524 B
Ruby
16 lines
524 B
Ruby
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 |