Sha256: 2f7e58842a579439981d8de2472d6583d9c1b483b1d22da97afce941c2058780
Contents?: true
Size: 410 Bytes
Versions: 3
Compression:
Stored size: 410 Bytes
Contents
require 'bigdecimal' require 'benchmark' require 'oj' 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("oj mri parse: #{BenchOptions.iterations}") do BenchOptions.iterations.times { Oj.compat_load(dumped_string) } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
jrjackson-0.2.3 | benchmarking/individual/oj-mri-sourced.rb |
jrjackson-0.2.2 | benchmarking/individual/oj-mri-sourced.rb |
jrjackson-0.2.1 | benchmarking/individual/oj-mri-sourced.rb |