ruby-changes:38003
From: nobu <ko1@a...>
Date: Wed, 25 Mar 2015 11:21:11 +0900 (JST)
Subject: [ruby-changes:38003] nobu:r50084 (trunk): bm_hash_aref_flo.rb: fix data
nobu 2015-03-25 11:20:43 +0900 (Wed, 25 Mar 2015) New Revision: 50084 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=50084 Log: bm_hash_aref_flo.rb: fix data * benchmark/bm_hash_aref_flo.rb: make more realistic data. [ruby-core:68632] [[Bug #10999] Modified files: trunk/ChangeLog trunk/benchmark/bm_hash_aref_flo.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 50083) +++ ChangeLog (revision 50084) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Wed Mar 25 11:20:40 2015 Nobuyoshi Nakada <nobu@r...> + + * benchmark/bm_hash_aref_flo.rb: make more realistic data. + [ruby-core:68632] [[Bug #10999] + Wed Mar 25 10:39:06 2015 SHIBATA Hiroshi <shibata.hiroshi@g...> * .document: removed needless entries. Index: benchmark/bm_hash_aref_flo.rb =================================================================== --- benchmark/bm_hash_aref_flo.rb (revision 50083) +++ benchmark/bm_hash_aref_flo.rb (revision 50084) @@ -1,4 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/benchmark/bm_hash_aref_flo.rb#L1 h = {} -strs = (1..10000).to_a.map!(&:to_f) +strs = [*1..10000].map! {|i| i.fdiv(10)} strs.each { |s| h[s] = s } 50.times { strs.each { |s| h[s] } } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/