Sha256: a6fc49450747f08aed29155615b037c0c768875ca6c2ba2f6c7c9f86ac4f9fec

Contents?: true

Size: 219 Bytes

Versions: 9

Compression:

Stored size: 219 Bytes

Contents

dir = File.dirname(__FILE__)
require "#{dir}/lib/fjson"
require 'benchmark'

def execute
  100000.times do
    {
      "foo" => {
        "bar" => "baz"
      }
    }.to_json
  end
end

puts Benchmark.measure {execute}

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
fjson-0.0.8 hash_benchmark.rb
fjson-0.0.2 hash_benchmark.rb
fjson-0.0.3 hash_benchmark.rb
fjson-0.0.4 hash_benchmark.rb
fjson-0.0.5 hash_benchmark.rb
fjson-0.0.6 hash_benchmark.rb
fjson-0.0.7 hash_benchmark.rb
fjson-0.0.9 hash_benchmark.rb
fjson-0.1.0 hash_benchmark.rb