Sha256: 1aae8937f0bdc951cbf9e27d185ccb8ec1e35889e7bfb8559ae50ca7ee894077

Contents?: true

Size: 403 Bytes

Versions: 125

Compression:

Stored size: 403 Bytes

Contents

require File.dirname(__FILE__) + "/../lib/yard"
require "benchmark"
include YARD::CLI

class YARD::CLI::YRI
  def print_object(object) end
end

def remove_cache
  File.unlink(YRI::CACHE_FILE)
end

TIMES = 10
NAME = 'YARD'
remove_cache; YRI.run(NAME)
Benchmark.bmbm do |x|
  x.report("cache   ") { TIMES.times { YRI.run(NAME) } }
  x.report("no-cache") { TIMES.times { remove_cache; YRI.run(NAME) } }
end

Version data entries

125 entries across 105 versions & 10 rubygems

Version Path
yard-0.5.3 benchmarks/yri_cache.rb
yard-0.5.2 benchmarks/yri_cache.rb
yard-0.5.1p1 benchmarks/yri_cache.rb
yard-0.5.1 benchmarks/yri_cache.rb
yard-0.5.0 benchmarks/yri_cache.rb