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
abaci-0.3.0 vendor/bundle/gems/yard-0.9.2/benchmarks/yri_cache.rb
abaci-0.3.0 vendor/bundle/gems/yard-0.9.1/benchmarks/yri_cache.rb
yard-0.9.5 benchmarks/yri_cache.rb
yard-0.9.4 benchmarks/yri_cache.rb
yard-0.9.3 benchmarks/yri_cache.rb
yard-0.9.2 benchmarks/yri_cache.rb
yard-0.9.1 benchmarks/yri_cache.rb
yard-0.9.0 benchmarks/yri_cache.rb
yard-0.8.7.6 benchmarks/yri_cache.rb
yard-0.8.7.5 benchmarks/yri_cache.rb
climine-0.0.7 vendor/bundle/ruby/2.1.0/gems/yard-0.8.7.3/benchmarks/yri_cache.rb
climine-0.0.7 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/benchmarks/yri_cache.rb
climine-0.0.6 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/benchmarks/yri_cache.rb
climine-0.0.5 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/benchmarks/yri_cache.rb
yard-0.8.7.4 benchmarks/yri_cache.rb
climine-0.0.4 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/benchmarks/yri_cache.rb
climine-0.0.3 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/benchmarks/yri_cache.rb
mango-0.8.0 vendor/bundler/ruby/2.1.0/gems/yard-0.8.7.3/benchmarks/yri_cache.rb
mango-0.7.1 vendor/bundler/ruby/2.0.0/gems/yard-0.8.7.3/benchmarks/yri_cache.rb
mango-0.7.0 vendor/bundler/ruby/2.0.0/gems/yard-0.8.7.3/benchmarks/yri_cache.rb