Sha256: f3c8519754f573b520635042e7f81dec1bea474f3240539583ba0c83d8800763

Contents?: true

Size: 640 Bytes

Versions: 43

Compression:

Stored size: 640 Bytes

Contents

# frozen_string_literal: true
require "benchmark"

files = Dir.glob(File.dirname(__FILE__) + '/../lib/**/*.rb').join(" ")
Benchmark.bmbm do |x|
  x.report("rdoc") { `rm -rf rdoc && rdoc -q -o rdoc #{files} && rm -rf rdoc` }
  x.report("yardoc") { `rm -rf yard && ./bin/yardoc -q -o yard #{files} && rm -rf yard` }
  x.report("yardoc-cached") { `rm -rf yard && ./bin/yardoc -c -q -o yard #{files} && rm -rf yard` }
  x.report("yardoc-legacy") { `rm -rf yard && ./bin/yardoc --legacy -q -o yard #{files} && rm -rf yard` }
  x.report("yardoc-legacy-cached") { `rm -rf yard && ./bin/yardoc --legacy -c -q -o yard #{files} && rm -rf yard` }
end

Version data entries

43 entries across 42 versions & 7 rubygems

Version Path
abaci-0.3.0 vendor/bundle/gems/yard-0.9.7/benchmarks/rdoc_vs_yardoc.rb
yard-0.9.7 benchmarks/rdoc_vs_yardoc.rb
yard-0.9.6 benchmarks/rdoc_vs_yardoc.rb