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

ruby-changes:20013

From: nobu <ko1@a...>
Date: Mon, 13 Jun 2011 23:10:18 +0900 (JST)
Subject: [ruby-changes:20013] nobu:r32060 (trunk): * properties.

nobu	2011-06-13 23:05:56 +0900 (Mon, 13 Jun 2011)

  New Revision: 32060

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

  Log:
    * properties.

  Modified files:
    trunk/atomic.h
    trunk/benchmark/bm_vm3_clearmethodcache.rb
    trunk/benchmark/bm_vm3_thread_mutex1.rb
    trunk/benchmark/bm_vm3_thread_mutex2.rb
    trunk/benchmark/bm_vm3_thread_mutex3.rb
    trunk/test/openssl/test_pkey_dh.rb
    trunk/test/openssl/test_pkey_ec.rb


Property changes on: atomic.h
___________________________________________________________________
Added: svn:eol-style
   + LF

Index: benchmark/bm_vm3_thread_mutex1.rb
===================================================================
--- benchmark/bm_vm3_thread_mutex1.rb	(revision 32059)
+++ benchmark/bm_vm3_thread_mutex1.rb	(revision 32060)
@@ -1,21 +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
+# 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_vm3_thread_mutex1.rb
___________________________________________________________________
Added: svn:eol-style
   + LF

Index: benchmark/bm_vm3_clearmethodcache.rb
===================================================================
--- benchmark/bm_vm3_clearmethodcache.rb	(revision 32059)
+++ benchmark/bm_vm3_clearmethodcache.rb	(revision 32060)
@@ -1,8 +1,8 @@
-i=0
-while i<200_000
-  i+=1
-
-  Class.new{
-    def m; end
-  }
-end
+i=0
+while i<200_000
+  i+=1
+
+  Class.new{
+    def m; end
+  }
+end

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

Index: benchmark/bm_vm3_thread_mutex3.rb
===================================================================
--- benchmark/bm_vm3_thread_mutex3.rb	(revision 32059)
+++ benchmark/bm_vm3_thread_mutex3.rb	(revision 32060)
@@ -1,20 +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
+# 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_vm3_thread_mutex3.rb
___________________________________________________________________
Added: svn:eol-style
   + LF

Index: benchmark/bm_vm3_thread_mutex2.rb
===================================================================
--- benchmark/bm_vm3_thread_mutex2.rb	(revision 32059)
+++ benchmark/bm_vm3_thread_mutex2.rb	(revision 32060)
@@ -1,21 +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
+# 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_vm3_thread_mutex2.rb
___________________________________________________________________
Added: svn:eol-style
   + LF


Property changes on: test/openssl/test_pkey_ec.rb
___________________________________________________________________
Added: svn:eol-style
   + LF


Property changes on: test/openssl/test_pkey_dh.rb
___________________________________________________________________
Added: svn:eol-style
   + LF


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

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