Sha256: 35410f9cec7203c43f74d1b903b3ff768d869ee3ba1cb37a3b8f0c8b5662a061

Contents?: true

Size: 448 Bytes

Versions: 1

Compression:

Stored size: 448 Bytes

Contents

require 'broken_link_finder'
require 'benchmark'
require 'memory_profiler'

url = ARGV[0] || "http://txti.es"
finder = BrokenLinkFinder::Finder.new

puts Benchmark.measure { finder.crawl_page url }
puts Benchmark.measure { finder.crawl_site url }

# http://txti.es
# Pre  threading: 17.591528
# Post threading: 7.508828 :-)

# http://txti.es
# Page: 9.526981
# Site: 9.732416
# Multi-threading crawl_site now yields the same time as a single page.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
broken_link_finder-0.7.0 benchmark.rb