Sha256: b673a6152b9b4364e910c485c0c6ce4cf8312bf16ec61a24fcebaa6944b541a4

Contents?: true

Size: 425 Bytes

Versions: 3

Compression:

Stored size: 425 Bytes

Contents

require 'bigdecimal'
require 'benchmark'
require 'gson'
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("gson parse: #{BenchOptions.iterations}") do
    BenchOptions.iterations.times { ::Gson::Decoder.new({}).decode(dumped_string) }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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