Sha256: ba246ffcd4eef4a8ed635a7b4efa2deb8f44bf15155754dd16b4d72a44a4a176

Contents?: true

Size: 550 Bytes

Versions: 41

Compression:

Stored size: 550 Bytes

Contents

require File.dirname(__FILE__) + '/spec_helper'

describe "Benchmarking", :type => :formatter do
  version = RedCloth::VERSION.is_a?(Module) ? RedCloth::VERSION::STRING : RedCloth::VERSION
  platform = RedCloth.const_defined?(:EXTENSION_LANGUAGE) ? RedCloth::EXTENSION_LANGUAGE : (version < "4.0.0" ? "ruby-regex" : "C")
  
  it "should not be too slow" do
    # puts "Benchmarking version #{version} compiled in #{platform}..."
    fixtures.each do |name, doc|
      if doc['html']
        RedCloth.new(doc['in']).to_html
      end
    end
  end
end

Version data entries

41 entries across 41 versions & 8 rubygems

Version Path
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.3.0/gems/RedCloth-4.3.3/spec/benchmark_spec.rb
RedCloth-4.3.4 spec/benchmark_spec.rb
RedCloth-4.3.3 spec/benchmark_spec.rb
gv-RedCloth-4.3.2 spec/benchmark_spec.rb
RedCloth-4.3.2 spec/benchmark_spec.rb
RedCloth-4.3.1 spec/benchmark_spec.rb
RedCloth-4.3.0 spec/benchmark_spec.rb
parity-RedCloth-4.2.13 spec/benchmark_spec.rb
parity-RedCloth-4.2.12 spec/benchmark_spec.rb
parity-RedCloth-4.2.11 spec/benchmark_spec.rb
parity-RedCloth-4.2.10 spec/benchmark_spec.rb
parity-RedCloth-4.2.9 spec/benchmark_spec.rb
YSRedCloth-4.2.18 spec/benchmark_spec.rb
assplecake-RedCloth-4.2.10 spec/benchmark_spec.rb
YSRedCloth-4.2.17 spec/benchmark_spec.rb
YSRedCloth-4.2.16 spec/benchmark_spec.rb
gv-RedCloth-4.2.9 spec/benchmark_spec.rb
YSRedCloth-4.2.15 spec/benchmark_spec.rb
YSRedCloth-4.2.14 spec/benchmark_spec.rb
YSRedCloth-4.2.13 spec/benchmark_spec.rb