diff options
Diffstat (limited to 'jni/ruby/benchmark/gc/hash2.rb')
-rw-r--r-- | jni/ruby/benchmark/gc/hash2.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/jni/ruby/benchmark/gc/hash2.rb b/jni/ruby/benchmark/gc/hash2.rb new file mode 100644 index 0000000..e8c943f --- /dev/null +++ b/jni/ruby/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 +} |