Sha256: 38700fe093ade7f6dabbbd66188c00f648db44237aaf15bd6073d550df15bc47

Contents?: true

Size: 335 Bytes

Versions: 16

Compression:

Stored size: 335 Bytes

Contents

# encoding: UTF-8
$KCODE = 'u' unless "1.9".respond_to?(:encoding)

require File.expand_path("../performance", __FILE__)
require "benchmark"

job = HTMLEntitiesJob.new
job.all(100) # Warm up to give JRuby a fair shake.

Benchmark.benchmark do |b|
  b.report("Encoding"){ job.encode(100) }
  b.report("Decoding"){ job.decode(100) }
end

Version data entries

16 entries across 16 versions & 8 rubygems

Version Path
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/htmlentities-4.3.4/perf/benchmark.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/htmlentities-4.3.4/perf/benchmark.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/htmlentities-4.3.4/perf/benchmark.rb
metanorma-cli-1.3.4 gems/ruby/2.6.0/gems/htmlentities-4.3.4/perf/benchmark.rb
metanorma-cli-1.3.3.1 gems/ruby/2.6.0/gems/htmlentities-4.3.4/perf/benchmark.rb
jerska-htmlentities-4.3.3 perf/benchmark.rb
logstash-filter-htmlentities-0.1.0 vendor/bundle/jruby/1.9/gems/htmlentities-4.3.4/perf/benchmark.rb
megam_htmlentities-4.3.4 perf/benchmark.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/htmlentities-4.3.4/perf/benchmark.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/htmlentities-4.3.4/perf/benchmark.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/htmlentities-4.3.4/perf/benchmark.rb
htmlentities-4.3.4 perf/benchmark.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/htmlentities-4.3.3/perf/benchmark.rb
htmlentities-4.3.3 perf/benchmark.rb
htmlentities-4.3.2 perf/benchmark.rb
htmlentities-4.3.1 perf/benchmark.rb