aboutsummaryrefslogtreecommitdiffstats
path: root/benchmark/bm_hash_small8.rb
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-09-14 16:00:55 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-09-14 16:00:55 +0000
commitefdf339a0c27986ca29771786ff53c428117e353 (patch)
tree042a94de8e7d6b872e754fb0299345c0e02b7f8c /benchmark/bm_hash_small8.rb
parent7badefd863eacae90e1b6a7f8b2a666533675a7d (diff)
downloadruby-efdf339a0c27986ca29771786ff53c428117e353.tar.gz
* benchmark/: add vnmakarov's benchmarks around hash [ruby-core:75265]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56161 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'benchmark/bm_hash_small8.rb')
-rw-r--r--benchmark/bm_hash_small8.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/benchmark/bm_hash_small8.rb b/benchmark/bm_hash_small8.rb
new file mode 100644
index 0000000000..9cffcc91b6
--- /dev/null
+++ b/benchmark/bm_hash_small8.rb
@@ -0,0 +1 @@
+1000000.times.map{|i| a={}; 8.times{|j| a[j]=j}; a}