Sha256: f092c77ebd8dfedd63795b67db03b2a5dde8e37da8e82eac83e068dede468346

Contents?: true

Size: 398 Bytes

Versions: 1

Compression:

Stored size: 398 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(BenchOptions.output_width) do |x|
  x.report("json java parse: #{BenchOptions.iterations}") do
    BenchOptions.iterations.times { ::JSON.parse(dumped_string) }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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