Sha256: 4ac12e1e81475e302392684ce02e673b332527b139cfe37c197f5cbcb40be17e

Contents?: true

Size: 548 Bytes

Versions: 13

Compression:

Stored size: 548 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

13 entries across 13 versions & 1 rubygems

Version Path
RedCloth-4.2.4-x86-mswin32-60 spec/benchmark_spec.rb
RedCloth-4.2.4-x86-mingw32 spec/benchmark_spec.rb
RedCloth-4.2.4-java spec/benchmark_spec.rb
RedCloth-4.2.4 spec/benchmark_spec.rb
RedCloth-4.2.4.pre3-x86-mswin32-60 spec/benchmark_spec.rb
RedCloth-4.2.4.pre3-x86-mingw32 spec/benchmark_spec.rb
RedCloth-4.2.4.pre3-java spec/benchmark_spec.rb
RedCloth-4.2.4.pre3 spec/benchmark_spec.rb
RedCloth-4.2.4.pre2-x86-mswin32-60 spec/benchmark_spec.rb
RedCloth-4.2.4.pre2-x86-mingw32 spec/benchmark_spec.rb
RedCloth-4.2.4.pre2-java spec/benchmark_spec.rb
RedCloth-4.2.4.pre2 spec/benchmark_spec.rb
RedCloth-4.2.4.pre1 spec/benchmark_spec.rb