Browse files

Removed benchmarks for result sets larger than allowed by Google.

Signed-off-by: Matt Aimonetti <mattaimonetti@gmail.com>
  • Loading branch information...
1 parent 659394c commit 5a9164d10253bfc34f3ae6d15cc67ab0eb182f54 @permelin permelin committed with Jan 11, 2009
Showing with 2 additions and 12 deletions.
  1. +2 −12 script/benchmarks.rb
View
14 script/benchmarks.rb
@@ -1,20 +1,10 @@
require 'benchmark'
require File.join(File.dirname(__FILE__), '..', 'lib', 'ruby-web-search')
-n = 50000
Benchmark.bm(50) do |x|
x.report("search") { RubyWebSearch::Google.search(:query => "Natalie Portman") }
x.report("unthreaded_search") { RubyWebSearch::Google.unthreaded_search(:query => 'Natalie Portman') }
- x.report("search :size => 30") { RubyWebSearch::Google.search(:query => "Natalie Portman", :size => 30) }
- x.report("unthreaded_search :size => 30") { RubyWebSearch::Google.unthreaded_search(:query => 'Natalie Portman', :size => 30) }
-
- x.report("search :size => 80") { RubyWebSearch::Google.search(:query => "Natalie Portman", :size => 80) }
- x.report("unthreaded_search :size => 80") { RubyWebSearch::Google.unthreaded_search(:query => 'Natalie Portman', :size => 80) }
-
- x.report("search :size => 150") { RubyWebSearch::Google.search(:query => "Natalie Portman", :size => 150) }
- x.report("unthreaded_search :size => 150") { RubyWebSearch::Google.unthreaded_search(:query => 'Natalie Portman', :size => 150) }
-
- x.report("search :size => 200") { RubyWebSearch::Google.search(:query => "Natalie Portman", :size => 200) }
- x.report("unthreaded_search :size => 200") { RubyWebSearch::Google.unthreaded_search(:query => 'Natalie Portman', :size => 200) }
+ x.report("search :size => 60") { RubyWebSearch::Google.search(:query => "Natalie Portman", :size => 60) }
+ x.report("unthreaded_search :size => 60") { RubyWebSearch::Google.unthreaded_search(:query => 'Natalie Portman', :size => 60) }
end

0 comments on commit 5a9164d

Please sign in to comment.