Sha256: 67a898592affa493846c1e2a16068097ffc464001bf242bd121fb14c9530be07

Contents?: true

Size: 517 Bytes

Versions: 3

Compression:

Stored size: 517 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)

opts = {use_bigdecimal: false, symbolize_keys: true}
dumped_string = File.read(filename)

Benchmark.bmbm("jackson parse symbol + bigdecimal:  ".size) do |x|
  x.report("jackson parse symbol keys: #{BenchOptions.iterations}") do
    BenchOptions.iterations.times { JrJackson::Json.load(dumped_string, opts) }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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