Sha256: 56a3a17060fdf3c3934378aafab6852667780e10b2ccdbbac824f679865707a2

Contents?: true

Size: 498 Bytes

Versions: 3

Compression:

Stored size: 498 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("jackson parse symbol + bigdecimal:  ".size) do |x|
  x.report("jackson generate: #{BenchOptions.iterations}") do
    BenchOptions.iterations.times { JrJackson::Raw.generate(hsh) }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jrjackson-0.2.3 benchmarking/individual/raw-gen-jr-sourced.rb
jrjackson-0.2.2 benchmarking/individual/raw-gen-jr-sourced.rb
jrjackson-0.2.1 benchmarking/individual/raw-gen-jr-sourced.rb