diff options
Diffstat (limited to 'benchmark/gc/hash2.rb')
-rw-r--r-- | benchmark/gc/hash2.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/benchmark/gc/hash2.rb b/benchmark/gc/hash2.rb new file mode 100644 index 0000000000..e8c943fb21 --- /dev/null +++ b/benchmark/gc/hash2.rb @@ -0,0 +1,7 @@ +value = 0.01 +h = {} +n = 4*(10**6) + +1.upto(n){|i| + h["%020d" % i] = value * i +} |