[前][次][番号順一覧][スレッド一覧]

ruby-changes:29419

From: ko1 <ko1@a...>
Date: Thu, 20 Jun 2013 14:02:10 +0900 (JST)
Subject: [ruby-changes:29419] ko1:r41471 (trunk): * tool/hashbench1.rb: fix parameters.

ko1	2013-06-20 14:01:56 +0900 (Thu, 20 Jun 2013)

  New Revision: 41471

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41471

  Log:
    * tool/hashbench1.rb: fix parameters.

  Modified files:
    trunk/ChangeLog
    trunk/tool/hashbench1.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 41470)
+++ ChangeLog	(revision 41471)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Jun 20 14:01:35 2013  Koichi Sasada  <ko1@a...>
+
+	* tool/hashbench1.rb: fix parameters.
+
 Thu Jun 20 14:00:34 2013  Koichi Sasada  <ko1@a...>
 
 	* common.mk: remove dependency from ruby.
Index: tool/hashbench1.rb
===================================================================
--- tool/hashbench1.rb	(revision 41470)
+++ tool/hashbench1.rb	(revision 41471)
@@ -1,9 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/tool/hashbench1.rb#L1
 value = 0.01
 h = {}
-n = 100_000
+n = 50_000
 
 1.upto(n){|i|
-  h["%020d" % i] = value * i
+  h["%020d" % i] = "v-#{i}"
 }
 
 (n * 500).times{

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]