Sha256: 79c70872636c553a43e3750ccfd76b923e753d4e9b5105b1c62c1d3d6ccf4fa4

Contents?: true

Size: 493 Bytes

Versions: 1

Compression:

Stored size: 493 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: true, raw: true}
dumped_string = File.read(filename)

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

Version data entries

1 entries across 1 versions & 1 rubygems

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