Sha256: 7a67f8eb78ced490cc4f5143ee026b2bd4a4a98fbd0bf52d96d512503c44379e
Contents?: true
Size: 506 Bytes
Versions: 1
Compression:
Stored size: 506 Bytes
Contents
require 'bigdecimal' require 'benchmark' require File.expand_path('lib/jrjackson') require File.expand_path('benchmarking/fixtures/bench_options') filename = File.expand_path(BenchOptions.source) opts = {use_bigdecimal: true, symbolize_keys: true} dumped_string = File.read(filename) Benchmark.bmbm(BenchOptions.output_width) do |x| x.report("jackson parse symbol + bigdecimal: #{BenchOptions.iterations}") do BenchOptions.iterations.times { JrJackson::Json.load(dumped_string, opts) } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jrjackson-0.2.4 | benchmarking/individual/sym-bd-jr-sourced.rb |