require 'benchmark'

Benchmark.bmbm do |x|
  x.report {
    1000000.times do
      h = {}
      h['a'] = 1.0
      h.rehash
    end
  }
end
