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
|
@ -1,3 +1,4 @@
|
|||
require "pathname"
|
||||
require "active_record"
|
||||
require "active_record/version"
|
||||
|
||||
|
@ -9,5 +10,6 @@ module ActiveRecord::Extensions
|
|||
end
|
||||
end
|
||||
|
||||
require "ar-extensions/import"
|
||||
require "ar-extensions/active_record/adapters/abstract_adapter"
|
||||
this_dir = Pathname.new File.dirname(__FILE__)
|
||||
require this_dir.join("../import")
|
||||
require this_dir.join("../active_record/adapters/abstract_adapter")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue