Sha256: 11660faac7ed907e08d7426d5cd29019773f8ce409db2824b64c690474fe7b15
Contents?: true
Size: 526 Bytes
Versions: 1
Compression:
Stored size: 526 Bytes
Contents
#! /usr/bin/env ruby # frozen_string_literal: true 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') domains = domains.select { |l| l =~ /^[a-z0-9]/i } domains = domains.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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gman-7.0.3 | script/profile |