Sha256: a89024177cf7a62d4632b28527ff1a66a19f8d8de9e8fdb90a0330a9502209ef
Contents?: true
Size: 380 Bytes
Versions: 3
Compression:
Stored size: 380 Bytes
Contents
require 'benchmark' require 'oj' require File.expand_path('benchmarking/fixtures/bench_options') filename = File.expand_path(BenchOptions.source) hsh = Oj.compat_load(File.read(filename)) Benchmark.bmbm("jackson parse symbol + bigdecimal: ".size) do |x| x.report("oj mri generate: #{BenchOptions.iterations}") do BenchOptions.iterations.times { Oj.dump(hsh) } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
jrjackson-0.2.3 | benchmarking/individual/oj-gen-mri-sourced.rb |
jrjackson-0.2.2 | benchmarking/individual/oj-gen-mri-sourced.rb |
jrjackson-0.2.1 | benchmarking/individual/oj-gen-mri-sourced.rb |