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

ruby-changes:31469

From: nobu <ko1@a...>
Date: Wed, 6 Nov 2013 09:21:10 +0900 (JST)
Subject: [ruby-changes:31469] nobu:r43548 (trunk): * properties.

nobu	2013-11-06 09:21:05 +0900 (Wed, 06 Nov 2013)

  New Revision: 43548

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

  Log:
    * properties.

  Modified files:
    trunk/benchmark/bm_vm1_gc_short_lived.rb
    trunk/benchmark/bm_vm1_gc_short_with_complex_long.rb
    trunk/benchmark/bm_vm1_gc_short_with_long.rb
    trunk/benchmark/bm_vm1_gc_short_with_symbol.rb
    trunk/benchmark/bm_vm1_gc_wb_ary.rb
    trunk/benchmark/bm_vm1_gc_wb_obj.rb
    trunk/benchmark/bm_vm_thread_queue.rb
Index: benchmark/bm_vm1_gc_wb_ary.rb
===================================================================
--- benchmark/bm_vm1_gc_wb_ary.rb	(revision 43547)
+++ benchmark/bm_vm1_gc_wb_ary.rb	(revision 43548)
@@ -1,10 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/benchmark/bm_vm1_gc_wb_ary.rb#L1
-long_lived = []
-GC.start
-GC.start
-
-i = 0
-short_lived = ''
-while i<30_000_000 # while loop 1
-  long_lived[0] = short_lived # write barrier
-  i+=1
-end
+long_lived = []
+GC.start
+GC.start
+
+i = 0
+short_lived = ''
+while i<30_000_000 # while loop 1
+  long_lived[0] = short_lived # write barrier
+  i+=1
+end

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

Index: benchmark/bm_vm1_gc_wb_obj.rb
===================================================================
--- benchmark/bm_vm1_gc_wb_obj.rb	(revision 43547)
+++ benchmark/bm_vm1_gc_wb_obj.rb	(revision 43548)
@@ -1,13 +1,13 @@ https://github.com/ruby/ruby/blob/trunk/benchmark/bm_vm1_gc_wb_obj.rb#L1
-class C
-  attr_accessor :foo
-end
-long_lived = C.new
-GC.start
-GC.start
-
-i = 0
-short_lived = ''
-while i<30_000_000 # while loop 1
-  long_lived.foo = short_lived # write barrier
-  i+=1
-end
+class C
+  attr_accessor :foo
+end
+long_lived = C.new
+GC.start
+GC.start
+
+i = 0
+short_lived = ''
+while i<30_000_000 # while loop 1
+  long_lived.foo = short_lived # write barrier
+  i+=1
+end

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

Index: benchmark/bm_vm1_gc_short_with_long.rb
===================================================================
--- benchmark/bm_vm1_gc_short_with_long.rb	(revision 43547)
+++ benchmark/bm_vm1_gc_short_with_long.rb	(revision 43548)
@@ -1,13 +1,13 @@ https://github.com/ruby/ruby/blob/trunk/benchmark/bm_vm1_gc_short_with_long.rb#L1
-long_lived = Array.new(1_000_000){|i| "#{i}"}
-GC.start
-GC.start
-i = 0
-while i<30_000_000 # while loop 1
-  a = '' # short-lived String
-  b = ''
-  c = ''
-  d = ''
-  e = ''
-  f = ''
-  i+=1
-end
+long_lived = Array.new(1_000_000){|i| "#{i}"}
+GC.start
+GC.start
+i = 0
+while i<30_000_000 # while loop 1
+  a = '' # short-lived String
+  b = ''
+  c = ''
+  d = ''
+  e = ''
+  f = ''
+  i+=1
+end

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

Index: benchmark/bm_vm1_gc_short_with_complex_long.rb
===================================================================
--- benchmark/bm_vm1_gc_short_with_complex_long.rb	(revision 43547)
+++ benchmark/bm_vm1_gc_short_with_complex_long.rb	(revision 43548)
@@ -1,27 +1,27 @@ https://github.com/ruby/ruby/blob/trunk/benchmark/bm_vm1_gc_short_with_complex_long.rb#L1
-def nested_hash h, n
-  if n == 0
-    ''
-  else
-    10.times{
-      h[Object.new] = nested_hash(h, n-1)
-    }
-  end
-end
-
-long_lived = Hash.new
-nested_hash long_lived, 6
-
-GC.start
-GC.start
-
-i = 0
-while i<30_000_000 # while loop 1
-  a = '' # short-lived String
-  b = ''
-  c = ''
-  d = ''
-  e = ''
-  f = ''
-  i+=1
-end
-
+def nested_hash h, n
+  if n == 0
+    ''
+  else
+    10.times{
+      h[Object.new] = nested_hash(h, n-1)
+    }
+  end
+end
+
+long_lived = Hash.new
+nested_hash long_lived, 6
+
+GC.start
+GC.start
+
+i = 0
+while i<30_000_000 # while loop 1
+  a = '' # short-lived String
+  b = ''
+  c = ''
+  d = ''
+  e = ''
+  f = ''
+  i+=1
+end
+

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

Index: benchmark/bm_vm1_gc_short_with_symbol.rb
===================================================================
--- benchmark/bm_vm1_gc_short_with_symbol.rb	(revision 43547)
+++ benchmark/bm_vm1_gc_short_with_symbol.rb	(revision 43548)
@@ -1,15 +1,15 @@ https://github.com/ruby/ruby/blob/trunk/benchmark/bm_vm1_gc_short_with_symbol.rb#L1
-# make many symbols
-50_000.times{|i| sym = "sym#{i}".to_sym}
-GC.start
-GC.start
-
-i = 0
-while i<30_000_000 # while loop 1
-  a = '' # short-lived String
-  b = ''
-  c = ''
-  d = ''
-  e = ''
-  f = ''
-  i+=1
-end
+# make many symbols
+50_000.times{|i| sym = "sym#{i}".to_sym}
+GC.start
+GC.start
+
+i = 0
+while i<30_000_000 # while loop 1
+  a = '' # short-lived String
+  b = ''
+  c = ''
+  d = ''
+  e = ''
+  f = ''
+  i+=1
+end

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

Index: benchmark/bm_vm_thread_queue.rb
===================================================================
--- benchmark/bm_vm_thread_queue.rb	(revision 43547)
+++ benchmark/bm_vm_thread_queue.rb	(revision 43548)
@@ -1,18 +1,18 @@ https://github.com/ruby/ruby/blob/trunk/benchmark/bm_vm_thread_queue.rb#L1
-require 'thread'
-
-n = 1_000_000
-q = Queue.new
-consumer = Thread.new{
-  while q.pop
-    # consuming
-  end
-}
-
-producer = Thread.new{
-  n.times{
-    q.push true
-  }
-  q.push nil
-}
-
-consumer.join
+require 'thread'
+
+n = 1_000_000
+q = Queue.new
+consumer = Thread.new{
+  while q.pop
+    # consuming
+  end
+}
+
+producer = Thread.new{
+  n.times{
+    q.push true
+  }
+  q.push nil
+}
+
+consumer.join

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

Index: benchmark/bm_vm1_gc_short_lived.rb
===================================================================
--- benchmark/bm_vm1_gc_short_lived.rb	(revision 43547)
+++ benchmark/bm_vm1_gc_short_lived.rb	(revision 43548)
@@ -1,10 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/benchmark/bm_vm1_gc_short_lived.rb#L1
-i = 0
-while i<30_000_000 # while loop 1
-  a = '' # short-lived String
-  b = ''
-  c = ''
-  d = ''
-  e = ''
-  f = ''
-  i+=1
-end
+i = 0
+while i<30_000_000 # while loop 1
+  a = '' # short-lived String
+  b = ''
+  c = ''
+  d = ''
+  e = ''
+  f = ''
+  i+=1
+end

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


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

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