Sha256: f9401b0c21521ceaaaf5040cbc6110903ae904a97e193ae4fd5627409daecfbe

Contents?: true

Size: 288 Bytes

Versions: 32

Compression:

Stored size: 288 Bytes

Contents

$:.unshift(File.dirname(__FILE__) + '/../lib')
require 'benchmark'
require 'whois'

DOMAINS = %w(weppos.it) * 5

Benchmark.bmbm do |x|
  x.report("shell") do
    DOMAINS.each { |d| `whois #{d}` }
  end
  x.report("pure")  do 
    DOMAINS.each { |d| Whois::Client.new.query(d) }
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
whois-1.2.2 utils/bm_shell_vs_pure.rb
whois-1.2.1 utils/bm_shell_vs_pure.rb
whois-1.2.0 utils/bm_shell_vs_pure.rb
whois-1.1.8 utils/bm_shell_vs_pure.rb
whois-1.1.7 utils/bm_shell_vs_pure.rb
whois-1.1.6 utils/bm_shell_vs_pure.rb
whois-1.1.5 utils/bm_shell_vs_pure.rb
whois-1.1.4 utils/bm_shell_vs_pure.rb
whois-1.1.3 utils/bm_shell_vs_pure.rb
whois-1.1.2 utils/bm_shell_vs_pure.rb
whois-1.1.1 utils/bm_shell_vs_pure.rb
whois-1.1.0 utils/bm_shell_vs_pure.rb
whois-1.0.12 utils/bm_shell_vs_pure.rb
whois-1.0.11 utils/bm_shell_vs_pure.rb
whois-1.0.10 utils/bm_shell_vs_pure.rb
whois-1.0.9 utils/bm_shell_vs_pure.rb
whois-1.0.8 utils/bm_shell_vs_pure.rb
whois-1.0.7 utils/bm_shell_vs_pure.rb
whois-1.0.6 utils/bm_shell_vs_pure.rb
whois-1.0.5 utils/bm_shell_vs_pure.rb