Sha256: 0956af85f3d3d8dfb3b75cec82e402670b764a1b17b6df4438108b27c1eac383

Contents?: true

Size: 436 Bytes

Versions: 1

Compression:

Stored size: 436 Bytes

Contents

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

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

filename = File.expand_path(BenchOptions.source)
hsh = JSON.parse(File.read(filename))

Benchmark.bmbm(BenchOptions.output_width) do |x|
  x.report("json java generate: #{BenchOptions.iterations}") do
    BenchOptions.iterations.times { JSON.generate(hsh) }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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