Sha256: 3006146037bb382737c6427f63f236749dc373d1ff79830e5c96eb3c80d94b50
Contents?: true
Size: 339 Bytes
Versions: 7
Compression:
Stored size: 339 Bytes
Contents
# encoding: UTF-8 $KCODE = 'u' unless "1.9".respond_to?(:encoding) require File.join(File.dirname(__FILE__), "performance") 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
7 entries across 7 versions & 2 rubygems