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:
parent
85076c0160
commit
2fbe9eacf7
4 changed files with 38 additions and 0 deletions
11
ChangeLog
11
ChangeLog
|
@ -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
|
||||
|
|
9
benchmark/bm_hash_flatten.rb
Normal file
9
benchmark/bm_hash_flatten.rb
Normal file
|
@ -0,0 +1,9 @@
|
|||
h = {}
|
||||
|
||||
10000.times do |i|
|
||||
h[i] = nil
|
||||
end
|
||||
|
||||
1000.times do
|
||||
h.flatten
|
||||
end
|
9
benchmark/bm_hash_keys.rb
Normal file
9
benchmark/bm_hash_keys.rb
Normal file
|
@ -0,0 +1,9 @@
|
|||
h = {}
|
||||
|
||||
10000.times do |i|
|
||||
h[i] = nil
|
||||
end
|
||||
|
||||
5000.times do
|
||||
h.keys
|
||||
end
|
9
benchmark/bm_hash_values.rb
Normal file
9
benchmark/bm_hash_values.rb
Normal file
|
@ -0,0 +1,9 @@
|
|||
h = {}
|
||||
|
||||
10000.times do |i|
|
||||
h[i] = nil
|
||||
end
|
||||
|
||||
5000.times do
|
||||
h.values
|
||||
end
|
Loading…
Reference in a new issue