Sha256: c0a9ee671a013f2b91d3e5e0b1bd0be0177414ce58e4460117c0443a546525a8

Contents?: true

Size: 719 Bytes

Versions: 4

Compression:

Stored size: 719 Bytes

Contents

# frozen_string_literal: true

require_relative './lib/broken_link_finder'
require 'benchmark'

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

# puts Benchmark.measure { finder.crawl_page url }
puts Benchmark.measure { finder.crawl_site url }
puts "Links crawled: #{finder.total_links_crawled}"

# http://txti.es page crawl
# Pre  threading: 17.5 seconds
# Post threading: 7.5  seconds

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

# Large site crawl - post all link recording functionality
# Pre:  608 seconds with 7665 links crawled
# Post: 355 seconds with 1099 links crawled

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
broken_link_finder-0.9.5 benchmark.rb
broken_link_finder-0.9.4 benchmark.rb
broken_link_finder-0.9.3 benchmark.rb
broken_link_finder-0.9.2 benchmark.rb