take advantage of DO API in benchmark

This commit is contained in:
Brian Lopez 2010-09-04 10:08:24 -07:00
parent 98fbeb6f64
commit 9b401ba9b9
1 changed files with 1 additions and 1 deletions

View File

@ -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