1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* benchmark/bm_hash_flatten.rb: added. r43896 is about 4 times faster

than 2.0.0p353.

* benchmark/bm_hash_keys.rb: added. r43896 is about 5 times faster
  than 2.0.0p353.

* benchmark/bm_hash_values.rb: added. r43896 is about 5 times faster
  than 2.0.0p353.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43898 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
glass 2013-11-28 10:50:41 +00:00
parent 85076c0160
commit 2fbe9eacf7
4 changed files with 38 additions and 0 deletions

View file

@ -1,3 +1,14 @@
Thu Nov 28 19:43:45 2013 Masaki Matsushita <glass.saga@gmail.com>
* benchmark/bm_hash_flatten.rb: added. r43896 is about 4 times faster
than 2.0.0p353.
* benchmark/bm_hash_keys.rb: added. r43896 is about 5 times faster
than 2.0.0p353.
* benchmark/bm_hash_values.rb: added. r43896 is about 5 times faster
than 2.0.0p353.
Thu Nov 28 19:29:04 2013 Zachary Scott <e@zzak.io>
* doc/contributing.rdoc: [DOC] Add notes about slideshow proposals

View file

@ -0,0 +1,9 @@
h = {}
10000.times do |i|
h[i] = nil
end
1000.times do
h.flatten
end

View file

@ -0,0 +1,9 @@
h = {}
10000.times do |i|
h[i] = nil
end
5000.times do
h.keys
end

View file

@ -0,0 +1,9 @@
h = {}
10000.times do |i|
h[i] = nil
end
5000.times do
h.values
end