script/profile in gman-7.0.5 vs script/profile in gman-7.0.6
- old
+ new
@@ -6,10 +6,10 @@
# 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.grep(/^[a-z0-9]/i)
domains = domains.sample(count)
RubyProf.start
domains.each do |domain|
Gman.new("foo@bar.#{domain}").valid?