Sha256: b2e9ceb19fdabce25da27cdec23893f14cad6b1a64d8b0d3e8a41fb07b481afe

Contents?: true

Size: 431 Bytes

Versions: 3

Compression:

Stored size: 431 Bytes

Contents

require 'bigdecimal'
require 'benchmark'
require 'json/ext'

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

filename = File.expand_path(BenchOptions.source)

dumped_string = File.read(filename)

Benchmark.bmbm("jackson parse symbol + bigdecimal:  ".size) do |x|
  x.report("json mri parse: #{BenchOptions.iterations}") do
    BenchOptions.iterations.times { JSON::Ext::Parser.new(dumped_string).parse }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jrjackson-0.2.3 benchmarking/individual/json-mri-sourced.rb
jrjackson-0.2.2 benchmarking/individual/json-mri-sourced.rb
jrjackson-0.2.1 benchmarking/individual/json-mri-sourced.rb