diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-20 05:01:56 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-20 05:01:56 +0000 |
commit | 800103e40a8fa65de0b6effbd06654bc754ac1ad (patch) | |
tree | f6b570bc67a439e78523e8d1939258441efe94b7 /tool | |
parent | 36bc41251310d71450803094ddc91abe63640fed (diff) | |
download | ruby-800103e40a8fa65de0b6effbd06654bc754ac1ad.tar.gz |
* tool/hashbench1.rb: fix parameters.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41471 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool')
-rw-r--r-- | tool/hashbench1.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/hashbench1.rb b/tool/hashbench1.rb index 3e8b0dd95e..c67420fcac 100644 --- a/tool/hashbench1.rb +++ b/tool/hashbench1.rb @@ -1,9 +1,9 @@ value = 0.01 h = {} -n = 100_000 +n = 50_000 1.upto(n){|i| - h["%020d" % i] = value * i + h["%020d" % i] = "v-#{i}" } (n * 500).times{ |