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
|
end
|
||||||
|
|
||||||
do_mysql = DataObjects::Connection.new("mysql://localhost/#{database}")
|
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
|
x.report do
|
||||||
puts "do_mysql"
|
puts "do_mysql"
|
||||||
number_of.times do
|
number_of.times do
|
||||||
|
Loading…
Reference in New Issue
Block a user