1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/benchmark/gc/hash1.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
103 B
Ruby
Raw Normal View History

value = 0.01
h = {}
n = 50_000
1.upto(n){|i|
h["%020d" % i] = "v-#{i}"
}
(n * 1_000).times{
''
}