Sha256: 0e9176dcfb3ddcc4e827adfce73ba3b76ebb3f8e35236a91d7a0223b7fc502df
Contents?: true
Size: 454 Bytes
Versions: 3
Compression:
Stored size: 454 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("jackson parse symbol + bigdecimal: ".size) do |x| x.report("json java generate: #{BenchOptions.iterations}") do BenchOptions.iterations.times { JSON.generate(hsh) } end end
Version data entries
3 entries across 3 versions & 1 rubygems