Permalink
Browse files

Simple ip benchmark.

  • Loading branch information...
1 parent c6f2108 commit 1766b88cc93c360ae1b657b9fb5f90ea29d0a429 @weppos weppos committed Jul 29, 2010
Showing with 12 additions and 0 deletions.
  1. +12 −0 utils/bm_ip.rb
View
@@ -0,0 +1,12 @@
+$:.unshift(File.dirname(__FILE__) + '/../lib')
+require 'benchmark'
+require 'rubygems'
+require 'whois'
+
+QUERIES = %w( 213.154.32.1 210.241.224.5 220.0.0.1 ) * 10
+
+Benchmark.bmbm do |x|
+ x.report("results") do
+ QUERIES.each { |s| Whois::Server.guess(s) }
+ end
+end

0 comments on commit 1766b88

Please sign in to comment.