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