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
climine-0.0.2 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/benchmarks/yri_cache.rb
climine-0.0.1 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/benchmarks/yri_cache.rb
yard-0.8.7.3 benchmarks/yri_cache.rb
yard-0.8.7.2 benchmarks/yri_cache.rb
candlepin-api-0.4.0 bundle/ruby/1.8/gems/yard-0.8.7/benchmarks/yri_cache.rb
candlepin-api-0.4.0 bundle/ruby/1.9.1/gems/yard-0.8.7/benchmarks/yri_cache.rb
candlepin-api-0.4.0 bundle/ruby/gems/yard-0.8.7/benchmarks/yri_cache.rb
yard-0.8.7.1 benchmarks/yri_cache.rb
yard-0.8.7 benchmarks/yri_cache.rb
challah-1.0.0 vendor/bundle/gems/yard-0.8.6.1/benchmarks/yri_cache.rb
yard-0.8.6.2 benchmarks/yri_cache.rb
challah-1.0.0.beta3 vendor/bundle/gems/yard-0.8.6.1/benchmarks/yri_cache.rb
challah-1.0.0.beta3 vendor/bundle/gems/yard-0.8.5.2/benchmarks/yri_cache.rb
challah-1.0.0.beta3 vendor/bundle/gems/yard-0.8.6/benchmarks/yri_cache.rb
sidekiq-statsd-0.1.1 vendor/ruby/1.9.1/gems/yard-0.8.6.1/benchmarks/yri_cache.rb
sidekiq-statsd-0.1.0 vendor/ruby/1.9.1/gems/yard-0.8.6.1/benchmarks/yri_cache.rb
yard-0.8.6.1 benchmarks/yri_cache.rb
challah-1.0.0.beta2 vendor/bundle/gems/yard-0.8.6/benchmarks/yri_cache.rb
challah-1.0.0.beta2 vendor/bundle/gems/yard-0.8.5.2/benchmarks/yri_cache.rb
yard-0.8.6 benchmarks/yri_cache.rb