Sha256: 88c445b57916706f90b2e55ddffc9e7c69f25748e6b9a161bc63ce38c717d98b

Contents?: true

Size: 475 Bytes

Versions: 3

Compression:

Stored size: 475 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 = nil
dumped_string = File.read(filename)

Benchmark.bmbm("jackson parse symbol + bigdecimal:  ".size) do |x|
  x.report("jackson parse string 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/string-jr-sourced.rb
jrjackson-0.2.2 benchmarking/individual/string-jr-sourced.rb
jrjackson-0.2.1 benchmarking/individual/string-jr-sourced.rb