summaryrefslogtreecommitdiff
path: root/tool/hashbench1.rb
blob: 3e8b0dd95e6bc2f1a615d0c3b74c4a3971848a4e (plain)
1
2
3
4
5
6
7
8
9
10
11
value = 0.01
h = {}
n = 100_000

1.upto(n){|i|
  h["%020d" % i] = value * i
}

(n * 500).times{
  ''
}