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

ruby-changes:19393

From: kosaki <ko1@a...>
Date: Wed, 4 May 2011 22:15:27 +0900 (JST)
Subject: [ruby-changes:19393] Ruby:r31433 (trunk): * benchmark/bm_vm4_pipe.rb: Reduced iterations. Too slow benchmark

kosaki	2011-05-04 22:14:28 +0900 (Wed, 04 May 2011)

  New Revision: 31433

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

  Log:
    * benchmark/bm_vm4_pipe.rb: Reduced iterations. Too slow benchmark
      is bad.
    * benchmark/bm_vm4_thread_pass.rb: ditto.

  Modified files:
    trunk/ChangeLog
    trunk/benchmark/bm_vm4_pipe.rb
    trunk/benchmark/bm_vm4_thread_pass.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 31432)
+++ ChangeLog	(revision 31433)
@@ -1,3 +1,9 @@
+Wed May  4 22:13:09 2011  KOSAKI Motohiro  <kosaki.motohiro@g...>
+
+	* benchmark/bm_vm4_pipe.rb: Reduced iterations. Too slow benchmark
+	  is bad.
+	* benchmark/bm_vm4_thread_pass.rb: ditto.
+
 Wed May  4 22:08:22 2011  KOSAKI Motohiro  <kosaki.motohiro@g...>
 
 	* test/date/test_date_base.rb: don't use no message skip().
Index: benchmark/bm_vm4_thread_pass.rb
===================================================================
--- benchmark/bm_vm4_thread_pass.rb	(revision 31432)
+++ benchmark/bm_vm4_thread_pass.rb	(revision 31433)
@@ -2,7 +2,7 @@
 # A performance may depend on GVL implementation.
 
 tmax = (ARGV.shift || 2).to_i
-lmax = 2_000_000 / tmax
+lmax = 200_000 / tmax
 
 (1..tmax).map{
   Thread.new{
Index: benchmark/bm_vm4_pipe.rb
===================================================================
--- benchmark/bm_vm4_pipe.rb	(revision 31432)
+++ benchmark/bm_vm4_pipe.rb	(revision 31433)
@@ -1,7 +1,7 @@
 # Mesure small and plenty pipe read/write.
 # A performance may depend on GVL implementation.
 
-lmax = 1_000_000
+lmax = 100_000
 r, w = IO.pipe
 [Thread.new{
   lmax.times{

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

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