take advantage of DO API in benchmark
This commit is contained in:
parent
98fbeb6f64
commit
9b401ba9b9
|
@ -70,7 +70,7 @@ Benchmark.bmbm do |x|
|
|||
end
|
||||
|
||||
do_mysql = DataObjects::Connection.new("mysql://localhost/#{database}")
|
||||
command = DataObjects::Mysql::Command.new do_mysql, sql
|
||||
command = do_mysql.create_command sql
|
||||
x.report do
|
||||
puts "do_mysql"
|
||||
number_of.times do
|
||||
|
|
Loading…
Reference in New Issue