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

ruby-changes:20087

From: ko1 <ko1@a...>
Date: Fri, 17 Jun 2011 03:09:15 +0900 (JST)
Subject: [ruby-changes:20087] ko1:r32134 (trunk): * benchmark/bm_vm4_thread_create_join.rb,

ko1	2011-06-17 03:09:03 +0900 (Fri, 17 Jun 2011)

  New Revision: 32134

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

  Log:
    * benchmark/bm_vm4_thread_create_join.rb,
      benchmark/bm_vm4_thread_mutex[1-3].rb: renamed to
      bm_thread_* (fix last rename).

  Added files:
    trunk/benchmark/bm_vm_thread_create_join.rb
    trunk/benchmark/bm_vm_thread_mutex1.rb
    trunk/benchmark/bm_vm_thread_mutex2.rb
    trunk/benchmark/bm_vm_thread_mutex3.rb
  Removed 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
  Modified files:
    trunk/ChangeLog

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 32133)
+++ ChangeLog	(revision 32134)
@@ -1,3 +1,9 @@
+Fri Jun 17 03:07:36 2011  Koichi Sasada  <ko1@a...>
+
+	* benchmark/bm_vm4_thread_create_join.rb, 
+	  benchmark/bm_vm4_thread_mutex[1-3].rb: renamed to
+	  bm_thread_* (fix last rename).
+
 Fri Jun 17 02:26:47 2011  Koichi Sasada  <ko1@a...>
 
 	* thread_pthread.c (native_thread_create): fix debug message.
Index: benchmark/bm_vm4_thread_create_join.rb
===================================================================
--- benchmark/bm_vm4_thread_create_join.rb	(revision 32133)
+++ benchmark/bm_vm4_thread_create_join.rb	(revision 32134)
@@ -1,6 +0,0 @@
-i=0
-while i<100_000 # benchmark loop 3
-  i+=1
-  Thread.new{
-  }.join
-end
Index: benchmark/bm_vm4_thread_mutex2.rb
===================================================================
--- benchmark/bm_vm4_thread_mutex2.rb	(revision 32133)
+++ benchmark/bm_vm4_thread_mutex2.rb	(revision 32134)
@@ -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_mutex1.rb
===================================================================
--- benchmark/bm_vm4_thread_mutex1.rb	(revision 32133)
+++ benchmark/bm_vm4_thread_mutex1.rb	(revision 32134)
@@ -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_vm4_thread_mutex3.rb
===================================================================
--- benchmark/bm_vm4_thread_mutex3.rb	(revision 32133)
+++ benchmark/bm_vm4_thread_mutex3.rb	(revision 32134)
@@ -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_vm_thread_mutex3.rb
===================================================================
--- benchmark/bm_vm_thread_mutex3.rb	(revision 0)
+++ benchmark/bm_vm_thread_mutex3.rb	(revision 32134)
@@ -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_vm_thread_mutex3.rb
___________________________________________________________________
Added: svn:eol-style
   + LF

Index: benchmark/bm_vm_thread_create_join.rb
===================================================================
--- benchmark/bm_vm_thread_create_join.rb	(revision 0)
+++ benchmark/bm_vm_thread_create_join.rb	(revision 32134)
@@ -0,0 +1,6 @@
+i=0
+while i<100_000 # benchmark loop 3
+  i+=1
+  Thread.new{
+  }.join
+end

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

Index: benchmark/bm_vm_thread_mutex2.rb
===================================================================
--- benchmark/bm_vm_thread_mutex2.rb	(revision 0)
+++ benchmark/bm_vm_thread_mutex2.rb	(revision 32134)
@@ -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_vm_thread_mutex2.rb
___________________________________________________________________
Added: svn:eol-style
   + LF

Index: benchmark/bm_vm_thread_mutex1.rb
===================================================================
--- benchmark/bm_vm_thread_mutex1.rb	(revision 0)
+++ benchmark/bm_vm_thread_mutex1.rb	(revision 32134)
@@ -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_vm_thread_mutex1.rb
___________________________________________________________________
Added: svn:eol-style
   + LF


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

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