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

ruby-changes:37921

From: ko1 <ko1@a...>
Date: Wed, 18 Mar 2015 14:15:36 +0900 (JST)
Subject: [ruby-changes:37921] ko1:r50002 (trunk): * benchmark/bm_vm1_gc_wb_ary.rb: run GC to finish "marking" phase.

ko1	2015-03-18 14:15:08 +0900 (Wed, 18 Mar 2015)

  New Revision: 50002

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

  Log:
    * benchmark/bm_vm1_gc_wb_ary.rb: run GC to finish "marking" phase.
    * benchmark/bm_vm1_gc_wb_obj.rb: ditto.
    * benchmark/bm_vm1_gc_wb_ary_promoted.rb: add parameter
      full_mark: false to invoke only minor GC.
    * benchmark/bm_vm1_gc_wb_obj_promoted.rb: ditto.

  Modified files:
    trunk/ChangeLog
    trunk/benchmark/bm_vm1_gc_wb_ary.rb
    trunk/benchmark/bm_vm1_gc_wb_ary_promoted.rb
    trunk/benchmark/bm_vm1_gc_wb_obj.rb
    trunk/benchmark/bm_vm1_gc_wb_obj_promoted.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 50001)
+++ ChangeLog	(revision 50002)
@@ -1,3 +1,14 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Mar 18 14:13:22 2015  Koichi Sasada  <ko1@a...>
+
+	* benchmark/bm_vm1_gc_wb_ary.rb: run GC to finish "marking" phase.
+
+	* benchmark/bm_vm1_gc_wb_obj.rb: ditto.
+
+	* benchmark/bm_vm1_gc_wb_ary_promoted.rb: add parameter
+	  full_mark: false to invoke only minor GC.
+
+	* benchmark/bm_vm1_gc_wb_obj_promoted.rb: ditto.
+
 Wed Mar 18 12:07:36 2015  Koichi Sasada  <ko1@a...>
 
 	* string.c: add a comment about RSTRING_FSTR.
Index: benchmark/bm_vm1_gc_wb_obj_promoted.rb
===================================================================
--- benchmark/bm_vm1_gc_wb_obj_promoted.rb	(revision 50001)
+++ benchmark/bm_vm1_gc_wb_obj_promoted.rb	(revision 50002)
@@ -3,8 +3,8 @@ class C https://github.com/ruby/ruby/blob/trunk/benchmark/bm_vm1_gc_wb_obj_promoted.rb#L3
 end
 long_lived = C.new
 
-if RUBY_VERSION > "2.2.0"
-  3.times{ GC.start(immediate_mark: false, lazy_sweep: false) }
+if RUBY_VERSION >= "2.2.0"
+  3.times{ GC.start(full_mark: false, immediate_mark: true, lazy_sweep: false) }
 elsif
   GC.start
 end
Index: benchmark/bm_vm1_gc_wb_ary_promoted.rb
===================================================================
--- benchmark/bm_vm1_gc_wb_ary_promoted.rb	(revision 50001)
+++ benchmark/bm_vm1_gc_wb_ary_promoted.rb	(revision 50002)
@@ -1,7 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/benchmark/bm_vm1_gc_wb_ary_promoted.rb#L1
 long_lived = []
 
 if RUBY_VERSION > "2.2.0"
-  3.times{ GC.start(immediate_mark: false, lazy_sweep: false) }
+  3.times{ GC.start(full_mark: false, immediate_mark: true, lazy_sweep: false) }
 elsif
   GC.start
 end
Index: benchmark/bm_vm1_gc_wb_ary.rb
===================================================================
--- benchmark/bm_vm1_gc_wb_ary.rb	(revision 50001)
+++ benchmark/bm_vm1_gc_wb_ary.rb	(revision 50002)
@@ -1,5 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/benchmark/bm_vm1_gc_wb_ary.rb#L1
 short_lived_ary = []
 
+if RUBY_VERSION >= "2.2.0"
+  GC.start(full_mark: false, immediate_mark: true, lazy_sweep: false)
+end
+
 i = 0
 short_lived = ''
 while i<30_000_000 # while loop 1
Index: benchmark/bm_vm1_gc_wb_obj.rb
===================================================================
--- benchmark/bm_vm1_gc_wb_obj.rb	(revision 50001)
+++ benchmark/bm_vm1_gc_wb_obj.rb	(revision 50002)
@@ -3,6 +3,10 @@ class C https://github.com/ruby/ruby/blob/trunk/benchmark/bm_vm1_gc_wb_obj.rb#L3
 end
 short_lived_obj = C.new
 
+if RUBY_VERSION >= "2.2.0"
+  GC.start(full_mark: false, immediate_mark: true, lazy_sweep: false)
+end
+
 i = 0
 short_lived = ''
 while i<30_000_000 # while loop 1

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

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