Sha256: a3da0071a9e00dca817e6ec97ef27bf8a4ea13d19db0c15e9e79b165ea0929a5
Contents?: true
Size: 499 Bytes
Versions: 1
Compression:
Stored size: 499 Bytes
Contents
require 'bigdecimal' require 'benchmark' require 'gson' require File.expand_path('lib/jrjackson') require File.expand_path('benchmarking/fixtures/bench_options') filename = File.expand_path(BenchOptions.source) hsh = JrJackson::Json.load(File.read(filename), use_bigdecimal: false, symbolize_keys: true) Benchmark.bmbm(BenchOptions.output_width) do |x| x.report("gson generate: #{BenchOptions.iterations}") do BenchOptions.iterations.times { ::Gson::Encoder.new({}).encode(hsh) } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jrjackson-0.2.4 | benchmarking/individual/gson-gen-jr-sourced.rb |