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