From 3b6229771a6d0b8e949e920ac3d8c4d8eb4e433a Mon Sep 17 00:00:00 2001 From: Brian Lopez Date: Sun, 17 Oct 2010 17:34:21 -0700 Subject: [PATCH] remove benchmark that tested code that has since been removed --- benchmark/thread_alone.rb | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 benchmark/thread_alone.rb diff --git a/benchmark/thread_alone.rb b/benchmark/thread_alone.rb deleted file mode 100644 index c6b4c1e..0000000 --- a/benchmark/thread_alone.rb +++ /dev/null @@ -1,20 +0,0 @@ -# encoding: UTF-8 -$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../lib') - -require 'rubygems' -require 'benchmark' -require 'mysql2' - -iterations = 1000 -client = Mysql2::Client.new(:host => "localhost", :username => "root", :database => "test") -query = lambda{ iterations.times{ client.query("SELECT mysql2_test.* FROM mysql2_test") } } -Benchmark.bmbm do |x| - x.report('select') do - query.call - end - x.report('rb_thread_select') do - thread = Thread.new{ sleep(10) } - query.call - thread.kill - end -end \ No newline at end of file