Sha256: f36a926d68034c41fcb0f2b5ff85c8bc65549eef2f2cfde614b9994b0eda0a81

Contents?: true

Size: 392 Bytes

Versions: 1

Compression:

Stored size: 392 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(BenchOptions.output_width) do |x|
  x.report("oj mri parse: #{BenchOptions.iterations}") do
    BenchOptions.iterations.times { Oj.compat_load(dumped_string) }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jrjackson-0.2.4 benchmarking/individual/oj-mri-sourced.rb