Skip to content

Commit

Permalink
Removed benchmarks for result sets larger than allowed by Google.
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Aimonetti <[email protected]>
  • Loading branch information
permelin authored and mattetti committed Jan 14, 2009
1 parent 659394c commit 5a9164d
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions script/benchmarks.rb
Original file line number Diff line number Diff line change
@@ -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.