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

ruby-changes:20048

From: ko1 <ko1@a...>
Date: Wed, 15 Jun 2011 04:45:19 +0900 (JST)
Subject: [ruby-changes:20048] ko1:r32095 (trunk): * benchmark/bm_vm3_thread_*.rb: renamed bm_vm3_thread_*.rb to

ko1	2011-06-15 04:45:08 +0900 (Wed, 15 Jun 2011)

  New Revision: 32095

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

  Log:
    * benchmark/bm_vm3_thread_*.rb: renamed bm_vm3_thread_*.rb to
      benchmark/bm_vm_thread_*.rb.

  Added files:
    trunk/benchmark/bm_vm4_thread_create_join.rb
    trunk/benchmark/bm_vm4_thread_mutex1.rb
    trunk/benchmark/bm_vm4_thread_mutex2.rb
    trunk/benchmark/bm_vm4_thread_mutex3.rb
  Removed files:
    trunk/benchmark/bm_vm3_thread_create_join.rb
    trunk/benchmark/bm_vm3_thread_mutex1.rb
    trunk/benchmark/bm_vm3_thread_mutex2.rb
    trunk/benchmark/bm_vm3_thread_mutex3.rb
  Modified files:
    trunk/ChangeLog

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 32094)
+++ ChangeLog	(revision 32095)
@@ -1,3 +1,8 @@
+Wed Jun 15 04:42:47 2011  Koichi Sasada  <ko1@a...>
+
+	* benchmark/bm_vm3_thread_*.rb: renamed bm_vm3_thread_*.rb to
+	  benchmark/bm_vm_thread_*.rb.
+
 Wed Jun 15 04:28:39 2011  KOSAKI Motohiro  <kosaki.motohiro@g...>
 
 	* benchmark/bm_vm4_thread_pass.rb: rename bm_vm4* to
Index: benchmark/bm_vm3_thread_mutex1.rb
===================================================================
--- benchmark/bm_vm3_thread_mutex1.rb	(revision 32094)
+++ benchmark/bm_vm3_thread_mutex1.rb	(revision 32095)
@@ -1,21 +0,0 @@
-# one thread, one mutex (no contention)
-
-require 'thread'
-m = Mutex.new
-r = 0
-max = 1000
-lmax = max * max
-(1..1).map{
-  Thread.new{
-    i=0
-    while i<lmax
-      i+=1
-      m.synchronize{
-        r += 1
-      }
-    end
-  }
-}.each{|e|
-  e.join
-}
-raise r.to_s if r != max * max
Index: benchmark/bm_vm3_thread_create_join.rb
===================================================================
--- benchmark/bm_vm3_thread_create_join.rb	(revision 32094)
+++ benchmark/bm_vm3_thread_create_join.rb	(revision 32095)
@@ -1,6 +0,0 @@
-i=0
-while i<100_000 # benchmark loop 3
-  i+=1
-  Thread.new{
-  }.join
-end
Index: benchmark/bm_vm3_thread_mutex3.rb
===================================================================
--- benchmark/bm_vm3_thread_mutex3.rb	(revision 32094)
+++ benchmark/bm_vm3_thread_mutex3.rb	(revision 32095)
@@ -1,20 +0,0 @@
-# 1000 threads, one mutex
-
-require 'thread'
-m = Mutex.new
-r = 0
-max = 1000
-(1..max).map{
-  Thread.new{
-    i=0
-    while i<max
-      i+=1
-      m.synchronize{
-        r += 1
-      }
-    end
-  }
-}.each{|e|
-  e.join
-}
-raise r.to_s if r != max * max
Index: benchmark/bm_vm3_thread_mutex2.rb
===================================================================
--- benchmark/bm_vm3_thread_mutex2.rb	(revision 32094)
+++ benchmark/bm_vm3_thread_mutex2.rb	(revision 32095)
@@ -1,21 +0,0 @@
-# two threads, one mutex
-
-require 'thread'
-m = Mutex.new
-r = 0
-max = 1000
-lmax = (max * max)/2
-(1..2).map{
-  Thread.new{
-    i=0
-    while i<lmax
-      i+=1
-      m.synchronize{
-        r += 1
-      }
-    end
-  }
-}.each{|e|
-  e.join
-}
-raise r.to_s if r != max * max
Index: benchmark/bm_vm4_thread_create_join.rb
===================================================================
--- benchmark/bm_vm4_thread_create_join.rb	(revision 0)
+++ benchmark/bm_vm4_thread_create_join.rb	(revision 32095)
@@ -0,0 +1,6 @@
+i=0
+while i<100_000 # benchmark loop 3
+  i+=1
+  Thread.new{
+  }.join
+end

Property changes on: benchmark/bm_vm4_thread_create_join.rb
___________________________________________________________________
Added: svn:eol-style
   + LF

Index: benchmark/bm_vm4_thread_mutex2.rb
===================================================================
--- benchmark/bm_vm4_thread_mutex2.rb	(revision 0)
+++ benchmark/bm_vm4_thread_mutex2.rb	(revision 32095)
@@ -0,0 +1,21 @@
+# two threads, one mutex
+
+require 'thread'
+m = Mutex.new
+r = 0
+max = 1000
+lmax = (max * max)/2
+(1..2).map{
+  Thread.new{
+    i=0
+    while i<lmax
+      i+=1
+      m.synchronize{
+        r += 1
+      }
+    end
+  }
+}.each{|e|
+  e.join
+}
+raise r.to_s if r != max * max

Property changes on: benchmark/bm_vm4_thread_mutex2.rb
___________________________________________________________________
Added: svn:eol-style
   + LF

Index: benchmark/bm_vm4_thread_mutex1.rb
===================================================================
--- benchmark/bm_vm4_thread_mutex1.rb	(revision 0)
+++ benchmark/bm_vm4_thread_mutex1.rb	(revision 32095)
@@ -0,0 +1,21 @@
+# one thread, one mutex (no contention)
+
+require 'thread'
+m = Mutex.new
+r = 0
+max = 1000
+lmax = max * max
+(1..1).map{
+  Thread.new{
+    i=0
+    while i<lmax
+      i+=1
+      m.synchronize{
+        r += 1
+      }
+    end
+  }
+}.each{|e|
+  e.join
+}
+raise r.to_s if r != max * max

Property changes on: benchmark/bm_vm4_thread_mutex1.rb
___________________________________________________________________
Added: svn:eol-style
   + LF

Index: benchmark/bm_vm4_thread_mutex3.rb
===================================================================
--- benchmark/bm_vm4_thread_mutex3.rb	(revision 0)
+++ benchmark/bm_vm4_thread_mutex3.rb	(revision 32095)
@@ -0,0 +1,20 @@
+# 1000 threads, one mutex
+
+require 'thread'
+m = Mutex.new
+r = 0
+max = 1000
+(1..max).map{
+  Thread.new{
+    i=0
+    while i<max
+      i+=1
+      m.synchronize{
+        r += 1
+      }
+    end
+  }
+}.each{|e|
+  e.join
+}
+raise r.to_s if r != max * max

Property changes on: benchmark/bm_vm4_thread_mutex3.rb
___________________________________________________________________
Added: svn:eol-style
   + LF


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

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