Watson1978
8/20/2017 - 12:03 PM

bench.rb

require 'benchmark/ips'

Benchmark.ips do |x|
  x.report "Hash" do |loop|
    {foo: 42, bar: "hello", baz: "test"}
  end
end