diff options
Diffstat (limited to 'tool/hashbench1.rb')
-rw-r--r-- | tool/hashbench1.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tool/hashbench1.rb b/tool/hashbench1.rb new file mode 100644 index 0000000000..3e8b0dd95e --- /dev/null +++ b/tool/hashbench1.rb @@ -0,0 +1,11 @@ +value = 0.01 +h = {} +n = 100_000 + +1.upto(n){|i| + h["%020d" % i] = value * i +} + +(n * 500).times{ + '' +} |