Sha256: d659b0319db76506cf498b6d07531fa471823e58b58697f4d0bfde5dbe82cfaa

Contents?: true

Size: 458 Bytes

Versions: 10

Compression:

Stored size: 458 Bytes

Contents

#! /usr/bin/env ruby

require 'ruby-prof'
require './lib/gman'

# Pick N random domains directly, without pre-loading the Gman list for an accurate benchmark
count = (ARGV[0] || 100).to_i
domains = File.readlines("./config/domains.txt").select { |l| l =~ /^[a-z0-9]/i }.sample(count)

RubyProf.start
domains.each do |domain|
  Gman.new("foo@bar.#{domain}").valid?
end

result = RubyProf.stop
printer = RubyProf::FlatPrinter.new(result)
printer.print(STDOUT)

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
gman-5.0.9 script/profile
gman-5.0.8 script/profile
gman-5.0.7 script/profile
gman-5.0.6 script/profile
gman-5.0.5 script/profile
gman-5.0.4 script/profile
gman-5.0.3 script/profile
gman-5.0.2 script/profile
gman-5.0.1 script/profile
gman-5.0.0 script/profile