Sha256: 544b672de4c9425bf0d824076210aad5d8059a4bc2a06b73b9881b7e2ee1c01c

Contents?: true

Size: 480 Bytes

Versions: 1

Compression:

Stored size: 480 Bytes

Contents

require 'bigdecimal'
require 'benchmark'

require File.expand_path('lib/jrjackson')
require File.expand_path('benchmarking/fixtures/bench_options')

filename = File.expand_path(BenchOptions.source)
hsh = JrJackson::Json.load(File.read(filename), use_bigdecimal: false, symbolize_keys: true)

Benchmark.bmbm(BenchOptions.output_width) do |x|
  x.report("jackson generate: #{BenchOptions.iterations}") do
    BenchOptions.iterations.times { JrJackson::Raw.generate(hsh) }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jrjackson-0.2.4 benchmarking/individual/raw-gen-jr-sourced.rb