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

View File

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