From 737edcfe674abe207b8a506cbfbc227e09119b2b Mon Sep 17 00:00:00 2001 From: Brian Lopez Date: Thu, 15 Apr 2010 10:53:58 -0700 Subject: [PATCH] don't really need to specify a db for the escape benchmark --- benchmark/escape.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/benchmark/escape.rb b/benchmark/escape.rb index d9cb7a5..198e1c1 100644 --- a/benchmark/escape.rb +++ b/benchmark/escape.rb @@ -7,12 +7,10 @@ require 'mysql2_ext' require 'do_mysql' number_of = 1000 -database = 'nbb_1_production' str = "abc'def\"ghi\0jkl%mno" Benchmark.bmbm do |x| mysql = Mysql.new("localhost", "root") - mysql.query "USE #{database}" x.report do puts "Mysql" number_of.times do @@ -21,7 +19,6 @@ Benchmark.bmbm do |x| end mysql2 = Mysql2::Client.new(:host => "localhost", :username => "root") - mysql2.query "USE #{database}" x.report do puts "Mysql2" number_of.times do @@ -29,7 +26,7 @@ Benchmark.bmbm do |x| end end - do_mysql = DataObjects::Connection.new("mysql://localhost/#{database}") + do_mysql = DataObjects::Connection.new("mysql://localhost/test") x.report do puts "do_mysql" number_of.times do