Sha256: 1323d2aa7dc6c366ceab9c74b0378c43a5007d62700bd11752a57b812e453f25

Contents?: true

Size: 434 Bytes

Versions: 43

Compression:

Stored size: 434 Bytes

Contents

# frozen_string_literal: true
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

43 entries across 42 versions & 7 rubygems

Version Path
kinetic_sdk-5.0.25 gems/yard-0.9.25/benchmarks/yri_cache.rb
kinetic_sdk-5.0.24 gems/yard-0.9.25/benchmarks/yri_cache.rb
kinetic_sdk-5.0.23 gems/yard-0.9.25/benchmarks/yri_cache.rb
kinetic_sdk-5.0.22 gems/yard-0.9.25/benchmarks/yri_cache.rb
kinetic_sdk-5.0.21 gems/yard-0.9.25/benchmarks/yri_cache.rb
devcycle-ruby-server-sdk-2.0.0 vendor/bundle/ruby/3.0.0/gems/yard-0.9.28/benchmarks/yri_cache.rb
kinetic_sdk-5.0.20 gems/yard-0.9.25/benchmarks/yri_cache.rb
yard-0.9.28 benchmarks/yri_cache.rb
yard-0.9.27 benchmarks/yri_cache.rb
yard-0.9.26 benchmarks/yri_cache.rb
qiita_org-0.1.35 gems/ruby/2.7.0/gems/yard-0.9.25/benchmarks/yri_cache.rb
qiita_org-0.1.34 gems/ruby/2.7.0/gems/yard-0.9.25/benchmarks/yri_cache.rb
qiita_org-0.1.33 gems/ruby/2.7.0/gems/yard-0.9.25/benchmarks/yri_cache.rb
qiita_org-0.1.32 gems/ruby/2.7.0/gems/yard-0.9.25/benchmarks/yri_cache.rb
qiita_org-0.1.31 gems/ruby/2.7.0/gems/yard-0.9.25/benchmarks/yri_cache.rb
qiita_org-0.1.30 gems/ruby/2.7.0/gems/yard-0.9.25/benchmarks/yri_cache.rb
qiita_org-0.1.29 gems/ruby/2.7.0/gems/yard-0.9.25/benchmarks/yri_cache.rb
qiita_org-0.1.28 gems/ruby/2.7.0/gems/yard-0.9.25/benchmarks/yri_cache.rb
qiita_org-0.1.27 gems/ruby/2.7.0/gems/yard-0.9.25/benchmarks/yri_cache.rb
qiita_org-0.1.26 gems/ruby/2.7.0/gems/yard-0.9.25/benchmarks/yri_cache.rb