Skip to content

Commit 2fbe9ea

Browse files
author
glass
committedNov 28, 2013
* 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
1 parent 85076c0 commit 2fbe9ea

File tree

4 files changed

+38
-0
lines changed

4 files changed

+38
-0
lines changed
 

‎ChangeLog

+11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
Thu Nov 28 19:43:45 2013 Masaki Matsushita <glass.saga@gmail.com>
2+
3+
* benchmark/bm_hash_flatten.rb: added. r43896 is about 4 times faster
4+
than 2.0.0p353.
5+
6+
* benchmark/bm_hash_keys.rb: added. r43896 is about 5 times faster
7+
than 2.0.0p353.
8+
9+
* benchmark/bm_hash_values.rb: added. r43896 is about 5 times faster
10+
than 2.0.0p353.
11+
112
Thu Nov 28 19:29:04 2013 Zachary Scott <e@zzak.io>
213

314
* doc/contributing.rdoc: [DOC] Add notes about slideshow proposals

‎benchmark/bm_hash_flatten.rb

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
h = {}
2+
3+
10000.times do |i|
4+
h[i] = nil
5+
end
6+
7+
1000.times do
8+
h.flatten
9+
end

‎benchmark/bm_hash_keys.rb

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
h = {}
2+
3+
10000.times do |i|
4+
h[i] = nil
5+
end
6+
7+
5000.times do
8+
h.keys
9+
end

‎benchmark/bm_hash_values.rb

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
h = {}
2+
3+
10000.times do |i|
4+
h[i] = nil
5+
end
6+
7+
5000.times do
8+
h.values
9+
end

0 commit comments

Comments
 (0)
Please sign in to comment.