Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Simple ip benchmark.

  • Loading branch information...
commit 1766b88cc93c360ae1b657b9fb5f90ea29d0a429 1 parent c6f2108
Simone Carletti authored July 29, 2010

Showing 1 changed file with 12 additions and 0 deletions. Show diff stats Hide diff stats

  1. 12  utils/bm_ip.rb
12  utils/bm_ip.rb
... ...
@@ -0,0 +1,12 @@
  1
+$:.unshift(File.dirname(__FILE__) + '/../lib')
  2
+require 'benchmark'
  3
+require 'rubygems'
  4
+require 'whois'
  5
+
  6
+QUERIES = %w( 213.154.32.1 210.241.224.5 220.0.0.1 ) * 10
  7
+
  8
+Benchmark.bmbm do |x|
  9
+  x.report("results")  do 
  10
+    QUERIES.each { |s| Whois::Server.guess(s) }
  11
+  end
  12
+end

0 notes on commit 1766b88

Please sign in to comment.
Something went wrong with that request. Please try again.