Sha256: b55b09b2cf0e6c27297d39c8388bad0817466fd6e68ee635565dae4aa60b5fa5

Contents?: true

Size: 529 Bytes

Versions: 79

Compression:

Stored size: 529 Bytes

Contents

# coding: UTF-8
# Thanks Kramdown for the inspiration!
require 'benchmark/ips'

require 'redcarpet'
require 'bluecloth'
require 'kramdown'

markdown = File.read(File.join(File.dirname(__FILE__), "fixtures/benchmark.md"))

# Let's bench!
Benchmark.ips do |bench|
  bench.report("Redcarpet") do
    Redcarpet::Markdown.new(Redcarpet::Render::HTML).render(markdown)
  end

  bench.report("BlueCloth") do
    BlueCloth.new(markdown).to_html
  end

  bench.report("Kramdown") do
    Kramdown::Document.new(markdown).to_html
  end
end

Version data entries

79 entries across 64 versions & 9 rubygems

Version Path
tdiary-5.2.4 vendor/bundle/ruby/3.1.0/gems/redcarpet-3.5.1/test/benchmark.rb
tdiary-5.2.3 vendor/bundle/ruby/3.1.0/gems/redcarpet-3.5.1/test/benchmark.rb
tdiary-5.2.2 vendor/bundle/ruby/3.1.0/gems/redcarpet-3.5.1/test/benchmark.rb
tdiary-5.2.1 vendor/bundle/ruby/3.1.0/gems/redcarpet-3.5.1/test/benchmark.rb
tdiary-5.2.0 vendor/bundle/ruby/2.7.0/gems/redcarpet-3.5.1/test/benchmark.rb
tdiary-5.2.0 vendor/bundle/ruby/3.0.0/gems/redcarpet-3.5.1/test/benchmark.rb
tdiary-5.1.7 vendor/bundle/ruby/2.7.0/gems/redcarpet-3.5.1/test/benchmark.rb
tdiary-5.1.7 vendor/bundle/ruby/3.0.0/gems/redcarpet-3.5.1/test/benchmark.rb
mumukit-content-type-1.11.1 vendor/bundle/ruby/2.6.0/gems/redcarpet-3.3.4/test/benchmark.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/tdiary-5.1.4/vendor/bundle/ruby/2.7.0/gems/redcarpet-3.5.0/test/benchmark.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/2.7.0/gems/redcarpet-3.5.1/test/benchmark.rb
tdiary-5.1.6 vendor/bundle/ruby/3.0.0/gems/redcarpet-3.5.1/test/benchmark.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/redcarpet-3.5.1/test/benchmark.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/redcarpet-3.5.1/test/benchmark.rb
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/redcarpet-3.5.1/test/benchmark.rb
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/tdiary-5.1.4/vendor/bundle/ruby/2.7.0/gems/redcarpet-3.5.0/test/benchmark.rb
tdiary-5.1.5 vendor/bundle/ruby/2.7.0/gems/redcarpet-3.5.1/test/benchmark.rb
qiita_org-0.1.35 gems/ruby/2.7.0/gems/redcarpet-3.5.0/test/benchmark.rb
qiita_org-0.1.34 gems/ruby/2.7.0/gems/redcarpet-3.5.0/test/benchmark.rb
qiita_org-0.1.33 gems/ruby/2.7.0/gems/redcarpet-3.5.0/test/benchmark.rb