ruby-changes:51679
From: k0kubun <ko1@a...>
Date: Mon, 9 Jul 2018 00:12:31 +0900 (JST)
Subject: [ruby-changes:51679] k0kubun:r63891 (trunk): benchmark: convert bm_vm1_*.rb to vm1_*.yml
k0kubun 2018-07-09 00:12:24 +0900 (Mon, 09 Jul 2018) New Revision: 63891 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63891 Log: benchmark: convert bm_vm1_*.rb to vm1_*.yml This YAML transformation is needed to support whileloop time substituion by benchmark_driver.gem later. This commmit changes no benchmark behavior. Added files: trunk/benchmark/vm1_attr_ivar.yml trunk/benchmark/vm1_attr_ivar_set.yml trunk/benchmark/vm1_block.yml trunk/benchmark/vm1_blockparam.yml trunk/benchmark/vm1_blockparam_call.yml trunk/benchmark/vm1_blockparam_pass.yml trunk/benchmark/vm1_blockparam_yield.yml trunk/benchmark/vm1_const.yml trunk/benchmark/vm1_ensure.yml trunk/benchmark/vm1_float_simple.yml trunk/benchmark/vm1_gc_short_lived.yml trunk/benchmark/vm1_gc_short_with_complex_long.yml trunk/benchmark/vm1_gc_short_with_long.yml trunk/benchmark/vm1_gc_short_with_symbol.yml trunk/benchmark/vm1_gc_wb_ary.yml trunk/benchmark/vm1_gc_wb_ary_promoted.yml trunk/benchmark/vm1_gc_wb_obj.yml trunk/benchmark/vm1_gc_wb_obj_promoted.yml trunk/benchmark/vm1_ivar.yml trunk/benchmark/vm1_ivar_set.yml trunk/benchmark/vm1_length.yml trunk/benchmark/vm1_lvar_init.yml trunk/benchmark/vm1_lvar_set.yml trunk/benchmark/vm1_neq.yml trunk/benchmark/vm1_not.yml trunk/benchmark/vm1_rescue.yml trunk/benchmark/vm1_simplereturn.yml trunk/benchmark/vm1_swap.yml trunk/benchmark/vm1_yield.yml Removed files: trunk/benchmark/bm_vm1_attr_ivar.rb trunk/benchmark/bm_vm1_attr_ivar_set.rb trunk/benchmark/bm_vm1_block.rb trunk/benchmark/bm_vm1_blockparam.rb trunk/benchmark/bm_vm1_blockparam_call.rb trunk/benchmark/bm_vm1_blockparam_pass.rb trunk/benchmark/bm_vm1_blockparam_yield.rb trunk/benchmark/bm_vm1_const.rb trunk/benchmark/bm_vm1_ensure.rb trunk/benchmark/bm_vm1_float_simple.rb 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_ary_promoted.rb trunk/benchmark/bm_vm1_gc_wb_obj.rb trunk/benchmark/bm_vm1_gc_wb_obj_promoted.rb trunk/benchmark/bm_vm1_ivar.rb trunk/benchmark/bm_vm1_ivar_set.rb trunk/benchmark/bm_vm1_length.rb trunk/benchmark/bm_vm1_lvar_init.rb trunk/benchmark/bm_vm1_lvar_set.rb trunk/benchmark/bm_vm1_neq.rb trunk/benchmark/bm_vm1_not.rb trunk/benchmark/bm_vm1_rescue.rb trunk/benchmark/bm_vm1_simplereturn.rb trunk/benchmark/bm_vm1_swap.rb trunk/benchmark/bm_vm1_yield.rb Index: benchmark/bm_vm1_gc_wb_ary_promoted.rb =================================================================== --- benchmark/bm_vm1_gc_wb_ary_promoted.rb (revision 63890) +++ benchmark/bm_vm1_gc_wb_ary_promoted.rb (nonexistent) @@ -1,14 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/benchmark/bm_vm1_gc_wb_ary_promoted.rb#L0 -long_lived = [] - -if RUBY_VERSION > "2.2.0" - 3.times{ GC.start(full_mark: false, immediate_mark: true, immediate_sweep: true) } -elsif - GC.start -end - -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_promoted.rb ___________________________________________________________________ Deleted: svn:eol-style ## -1 +0,0 ## -LF \ No newline at end of property Index: benchmark/bm_vm1_gc_short_with_long.rb =================================================================== --- benchmark/bm_vm1_gc_short_with_long.rb (revision 63890) +++ benchmark/bm_vm1_gc_short_with_long.rb (nonexistent) @@ -1,13 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/benchmark/bm_vm1_gc_short_with_long.rb#L0 -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 ___________________________________________________________________ Deleted: svn:eol-style ## -1 +0,0 ## -LF \ No newline at end of property Index: benchmark/bm_vm1_const.rb =================================================================== --- benchmark/bm_vm1_const.rb (revision 63890) +++ benchmark/bm_vm1_const.rb (nonexistent) @@ -1,8 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/benchmark/bm_vm1_const.rb#L0 -Const = 1 - -i = 0 -while i<30_000_000 # while loop 1 - i += 1 - j = Const - k = Const -end Property changes on: benchmark/bm_vm1_const.rb ___________________________________________________________________ Deleted: svn:eol-style ## -1 +0,0 ## -LF \ No newline at end of property Index: benchmark/bm_vm1_block.rb =================================================================== --- benchmark/bm_vm1_block.rb (revision 63890) +++ benchmark/bm_vm1_block.rb (nonexistent) @@ -1,10 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/benchmark/bm_vm1_block.rb#L0 -def m - yield -end - -i = 0 -while i<30_000_000 # while loop 1 - i += 1 - m{ - } -end Property changes on: benchmark/bm_vm1_block.rb ___________________________________________________________________ Deleted: svn:eol-style ## -1 +0,0 ## -LF \ No newline at end of property Index: benchmark/bm_vm1_blockparam_pass.rb =================================================================== --- benchmark/bm_vm1_blockparam_pass.rb (revision 63890) +++ benchmark/bm_vm1_blockparam_pass.rb (nonexistent) @@ -1,13 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/benchmark/bm_vm1_blockparam_pass.rb#L0 -def bp_yield - yield -end - -def bp_pass &b - bp_yield &b -end - -i = 0 -while i<30_000_000 # while loop 1 - i += 1 - bp_pass{} -end Property changes on: benchmark/bm_vm1_blockparam_pass.rb ___________________________________________________________________ Deleted: svn:eol-style ## -1 +0,0 ## -LF \ No newline at end of property Deleted: svn:executable ## -1 +0,0 ## -* \ No newline at end of property Index: benchmark/bm_vm1_blockparam_call.rb =================================================================== --- benchmark/bm_vm1_blockparam_call.rb (revision 63890) +++ benchmark/bm_vm1_blockparam_call.rb (nonexistent) @@ -1,9 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/benchmark/bm_vm1_blockparam_call.rb#L0 -def m &b - b.call -end - -i = 0 -while i<30_000_000 # while loop 1 - i += 1 - m{} -end Property changes on: benchmark/bm_vm1_blockparam_call.rb ___________________________________________________________________ Deleted: svn:eol-style ## -1 +0,0 ## -LF \ No newline at end of property Deleted: svn:executable ## -1 +0,0 ## -* \ No newline at end of property Index: benchmark/bm_vm1_ivar_set.rb =================================================================== --- benchmark/bm_vm1_ivar_set.rb (revision 63890) +++ benchmark/bm_vm1_ivar_set.rb (nonexistent) @@ -1,6 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/benchmark/bm_vm1_ivar_set.rb#L0 -i = 0 -while i<30_000_000 # while loop 1 - i += 1 - @a = 1 - @b = 2 -end Property changes on: benchmark/bm_vm1_ivar_set.rb ___________________________________________________________________ Deleted: svn:eol-style ## -1 +0,0 ## -LF \ No newline at end of property Index: benchmark/bm_vm1_ensure.rb =================================================================== --- benchmark/bm_vm1_ensure.rb (revision 63890) +++ benchmark/bm_vm1_ensure.rb (nonexistent) @@ -1,11 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/benchmark/bm_vm1_ensure.rb#L0 -i = 0 -while i<30_000_000 # benchmark loop 1 - i += 1 - begin - begin - ensure - end - ensure - end -end - Property changes on: benchmark/bm_vm1_ensure.rb ___________________________________________________________________ Deleted: svn:eol-style ## -1 +0,0 ## -LF \ No newline at end of property Index: benchmark/bm_vm1_gc_short_with_complex_long.rb =================================================================== --- benchmark/bm_vm1_gc_short_with_complex_long.rb (revision 63890) +++ benchmark/bm_vm1_gc_short_with_complex_long.rb (nonexistent) @@ -1,27 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/benchmark/bm_vm1_gc_short_with_complex_long.rb#L0 -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 ___________________________________________________________________ Deleted: svn:eol-style ## -1 +0,0 ## -LF \ No newline at end of property Index: benchmark/bm_vm1_swap.rb =================================================================== --- benchmark/bm_vm1_swap.rb (revision 63890) +++ benchmark/bm_vm1_swap.rb (nonexistent) @@ -1,8 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/benchmark/bm_vm1_swap.rb#L0 -a = 1 -b = 2 -i = 0 -while i<30_000_000 # while loop 1 - i += 1 - a, b = b, a -end - Property changes on: benchmark/bm_vm1_swap.rb ___________________________________________________________________ Deleted: svn:eol-style ## -1 +0,0 ## -LF \ No newline at end of property Index: benchmark/bm_vm1_lvar_init.rb =================================================================== --- benchmark/bm_vm1_lvar_init.rb (revision 63890) +++ benchmark/bm_vm1_lvar_init.rb (nonexistent) @@ -1,18 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/benchmark/bm_vm1_lvar_init.rb#L0 -def m v - unless v - # unreachable code - v1 = v2 = v3 = v4 = v5 = v6 = v7 = v8 = v9 = v10 = - v11 = v12 = v13 = v14 = v15 = v16 = v17 = v18 = v19 = v20 = - v21 = v22 = v23 = v24 = v25 = v26 = v27 = v28 = v29 = v30 = - v31 = v32 = v33 = v34 = v35 = v36 = v37 = v38 = v39 = v40 = - v41 = v42 = v43 = v44 = v45 = v46 = v47 = v48 = v49 = v50 = 1 - end -end - -i = 0 - -while i<30_000_000 # while loop 1 - i += 1 - m i -end - Property changes on: benchmark/bm_vm1_lvar_init.rb ___________________________________________________________________ Deleted: svn:eol-style ## -1 +0,0 ## -LF \ No newline at end of property Index: benchmark/bm_vm1_gc_short_with_symbol.rb =================================================================== --- benchmark/bm_vm1_gc_short_with_symbol.rb (revision 63890) +++ benchmark/bm_vm1_gc_short_with_symbol.rb (nonexistent) @@ -1,15 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/benchmark/bm_vm1_gc_short_with_symbol.rb#L0 -# 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 ___________________________________________________________________ Deleted: svn:eol-style ## -1 +0,0 ## -LF \ No newline at end of property Index: benchmark/bm_vm1_simplereturn.rb =================================================================== --- benchmark/bm_vm1_simplereturn.rb (revision 63890) +++ benchmark/bm_vm1_simplereturn.rb (nonexistent) @@ -1,9 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/benchmark/bm_vm1_simplereturn.rb#L0 -def m - return 1 -end -i = 0 -while i<30_000_000 # while loop 1 - i += 1 - m -end - Property changes on: benchmark/bm_vm1_simplereturn.rb ___________________________________________________________________ Deleted: svn:eol-style ## -1 +0,0 ## -LF \ No newline at end of property Index: benchmark/bm_vm1_gc_short_lived.rb =================================================================== --- benchmark/bm_vm1_gc_short_lived.rb (revision 63890) +++ benchmark/bm_vm1_gc_short_lived.rb (nonexistent) @@ -1,10 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/benchmark/bm_vm1_gc_short_lived.rb#L0 -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 ___________________________________________________________________ Deleted: svn:eol-style ## -1 +0,0 ## -LF \ No newline at end of property Index: benchmark/bm_vm1_attr_ivar.rb =================================================================== --- benchmark/bm_vm1_attr_ivar.rb (revision 63890) +++ benchmark/bm_vm1_attr_ivar.rb (nonexistent) @@ -1,14 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/benchmark/bm_vm1_attr_ivar.rb#L0 -class C - attr_reader :a, :b - def initialize - @a = nil - @b = nil - end -end -obj = C.new -i = 0 -while i<30_000_000 # while loop 1 - i += 1 - j = obj.a - k = obj.b -end Property changes on: benchmark/bm_vm1_attr_ivar.rb ___________________________________________________________________ Deleted: svn:eol-style ## -1 +0,0 ## -LF \ No newline at end of property Index: benchmark/bm_vm1_neq.rb =================================================================== --- benchmark/bm_vm1_neq.rb (revision 63890) +++ benchmark/bm_vm1_neq.rb (nonexistent) @@ -1,8 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/benchmark/bm_vm1_neq.rb#L0 -i = 0 -obj1 = Object.new -obj2 = Object.new - -while i<30_000_000 # while loop 1 - i += 1 - obj1 != obj2 -end Property changes on: benchmark/bm_vm1_neq.rb ___________________________________________________________________ Deleted: svn:eol-style ## -1 +0,0 ## -LF \ No newline at end of property Index: benchmark/bm_vm1_rescue.rb =================================================================== --- benchmark/bm_vm1_rescue.rb (revision 63890) +++ benchmark/bm_vm1_rescue.rb (nonexistent) @@ -1,7 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/benchmark/bm_vm1_rescue.rb#L0 -i = 0 -while i<30_000_000 # while loop 1 - i += 1 - begin - rescue - end -end Property changes on: benchmark/bm_vm1_rescue.rb ___________________________________________________________________ Deleted: svn:eol-style ## -1 +0,0 ## -LF \ No newline at end of property Index: benchmark/bm_vm1_not.rb =================================================================== --- benchmark/bm_vm1_not.rb (revision 63890) +++ benchmark/bm_vm1_not.rb (nonexistent) @@ -1,7 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/benchmark/bm_vm1_not.rb#L0 -i = 0 -obj = Object.new - -while i<30_000_000 # while loop 1 - i += 1 - !obj -end Property changes on: benchmark/bm_vm1_not.rb ___________________________________________________________________ Deleted: svn:eol-style ## -1 +0,0 ## -LF \ No newline at end of property Index: benchmark/bm_vm1_yield.rb =================================================================== --- benchmark/bm_vm1_yield.rb (revision 63890) +++ benchmark/bm_vm1_yield.rb (nonexistent) @@ -1,10 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/benchmark/bm_vm1_yield.rb#L0 -def m - i = 0 - while i<30_000_000 # while loop 1 - i += 1 - yield - end -end - -m{} - Property changes on: benchmark/bm_vm1_yield.rb ___________________________________________________________________ Deleted: svn:eol-style ## -1 +0,0 ## -LF \ No newline at end of property Index: benchmark/bm_vm1_attr_ivar_set.rb =================================================================== --- benchmark/bm_vm1_attr_ivar_set.rb (revision 63890) +++ benchmark/bm_vm1_attr_ivar_set.rb (nonexistent) @@ -1,14 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/benchmark/bm_vm1_attr_ivar_set.rb#L0 -class C - attr_accessor :a, :b - def initialize - @a = nil - @b = nil - end -end -obj = C.new -i = 0 -while i<30_000_000 # while loop 1 - i += 1 - obj.a = 1 - obj.b = 2 -end Property changes on: benchmark/bm_vm1_attr_ivar_set.rb ___________________________________________________________________ Deleted: svn:eol-style ## -1 +0,0 ## -LF \ No newline at end of property Index: benchmark/bm_vm1_float_simple.rb =================================================================== --- benchmark/bm_vm1_float_simple.rb (revision 63890) +++ benchmark/bm_vm1_float_simple.rb (nonexistent) @@ -1,7 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/benchmark/bm_vm1_float_simple.rb#L0 -i = 0.0; f = 0.0 -while i<30_000_000 - i += 1 - f += 0.1; f -= 0.1 - f += 0.1; f -= 0.1 - f += 0.1; f -= 0.1 -end Property changes on: benchmark/bm_vm1_float_simple.rb ___________________________________________________________________ Deleted: svn:eol-style ## -1 +0,0 ## -LF \ No newline at end of property Index: benchmark/bm_vm1_gc_wb_ary.rb =================================================================== --- benchmark/bm_vm1_gc_wb_ary.rb (revision 63890) +++ benchmark/bm_vm1_gc_wb_ary.rb (nonexistent) @@ -1,12 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/benchmark/bm_vm1_gc_wb_ary.rb#L0 -short_lived_ary = [] - -if RUBY_VERSION >= "2.2.0" - GC.start(full_mark: false, immediate_mark: true, immediate_sweep: true) -end - -i = 0 -short_lived = '' -while i<30_000_000 # while loop 1 - short_lived_ary[0] = short_lived # write barrier - i+=1 -end Property changes on: benchmark/bm_vm1_gc_wb_ary.rb ___________________________________________________________________ Deleted: svn:eol-style ## -1 +0,0 ## -LF \ No newline at end of property Index: benchmark/bm_vm1_blockparam_yield.rb =================================================================== --- benchmark/bm_vm1_blockparam_yield.rb (revision 63890) +++ benchmark/bm_vm1_blockparam_yield.rb (nonexistent) @@ -1,9 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/benchmark/bm_vm1_blockparam_yield.rb#L0 -def bp_yield &b - yield -end - -i = 0 -while i<30_000_000 # while loop 1 - i += 1 - bp_yield{} -end Property changes on: benchmark/bm_vm1_blockparam_yield.rb ___________________________________________________________________ Deleted: svn:eol-style ## -1 +0,0 ## -LF \ No newline at end of property Deleted: svn:executable ## -1 +0,0 ## -* \ No newline at end of property Index: benchmark/bm_vm1_blockparam.rb =================================================================== --- benchmark/bm_vm1_blockparam.rb (revision 63890) +++ benchmark/bm_vm1_blockparam.rb (nonexistent) @@ -1,9 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/benchmark/bm_vm1_blockparam.rb#L0 -def m &b -end - -i = 0 -while i<30_000_000 # while loop 1 - i += 1 - m{} -end - Property changes on: benchmark/bm_vm1_blockparam.rb ___________________________________________________________________ Deleted: svn:eol-style ## -1 +0,0 ## -LF \ No newline at end of property Deleted: svn:executable ## -1 +0,0 ## -* \ No newline at end of property Index: benchmark/bm_vm1_gc_wb_obj.rb =================================================================== --- benchmark/bm_vm1_gc_wb_obj.rb (revision 63890) +++ benchmark/bm_vm1_gc_wb_obj.rb (nonexistent) @@ -1,15 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/benchmark/bm_vm1_gc_wb_obj.rb#L0 -class C - attr_accessor :foo -end -short_lived_obj = C.new - -if RUBY_VERSION >= "2.2.0" - GC.start(full_mark: false, immediate_mark: true, immediate_sweep: true) -end - -i = 0 -short_lived = '' -while i<30_000_000 # while loop 1 - short_lived_obj.foo = short_lived # write barrier - i+=1 -end Property changes on: benchmark/bm_vm1_gc_wb_obj.rb ___________________________________________________________________ Deleted: svn:eol-style ## -1 +0,0 ## -LF \ No newline at end of property Index: benchmark/bm_vm1_ivar.rb =================================================================== --- benchmark/bm_vm1_ivar.rb (revision 63890) +++ benchmark/bm_vm1_ivar.rb (nonexistent) @@ -1,8 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/benchmark/bm_vm1_ivar.rb#L0 -@a = 1 - -i = 0 -while i<30_000_000 # while loop 1 - i += 1 - j = @a - k = @a -end Property changes on: benchmark/bm_vm1_ivar.rb ___________________________________________________________________ Deleted: svn:eol-style ## -1 +0,0 ## -LF \ No newline at end of property Index: benchmark/bm_vm1_lvar_set.rb =================================================================== --- benchmark/bm_vm1_lvar_set.rb (revision 63890) +++ benchmark/bm_vm1_lvar_set.rb (nonexistent) @@ -1,5 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/benchmark/bm_vm1_lvar_set.rb#L0 -i = 0 -while i<30_000_000 # while loop 1 - i += 1 - a = b = c = d = e = f = g = h = j = k = l = m = n = o = p = q = r = 1 -end Property changes on: benchmark/bm_vm1_lvar_set.rb ___________________________________________________________________ Deleted: svn:eol-style ## -1 +0,0 ## -LF \ No newline at end of property Index: benchmark/bm_vm1_length.rb =================================================================== --- benchmark/bm_vm1_length.rb (revision 63890) +++ benchmark/bm_vm1_length.rb (nonexistent) @@ -1,9 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/benchmark/bm_vm1_length.rb#L0 -a = 'abc' -b = [1, 2, 3] -i = 0 -while i<30_000_000 # while loop 1 - i += 1 - a.length - b.length -end - Property changes on: benchmark/bm_vm1_length.rb ___________________________________________________________________ Deleted: svn:eol-style ## -1 +0,0 ## -LF \ No newline at end of property Index: benchmark/bm_vm1_gc_wb_obj_promoted.rb =================================================================== --- benchmark/bm_vm1_gc_wb_obj_promoted.rb (revision 63890) +++ benchmark/bm_vm1_gc_wb_obj_promoted.rb (nonexistent) @@ -1,17 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/benchmark/bm_vm1_gc_wb_obj_promoted.rb#L0 -class C - attr_accessor :foo -end -long_lived = C.new - -if RUBY_VERSION >= "2.2.0" - 3.times{ GC.start(full_mark: false, immediate_mark: true, immediate_sweep: true) } -elsif - GC.start -end - -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_promoted.rb ___________________________________________________________________ Deleted: svn:eol-style ## -1 +0,0 ## -LF \ No newline at end of property Index: benchmark/vm1_gc_short_with_complex_long.yml =================================================================== --- benchmark/vm1_gc_short_with_complex_long.yml (nonexistent) +++ benchmark/vm1_gc_short_with_complex_long.yml (revision 63891) @@ -0,0 +1,29 @@ https://github.com/ruby/ruby/blob/trunk/benchmark/vm1_gc_short_with_complex_long.yml#L1 +benchmark: + vm1_gc_short_with_complex_long: | + 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 # whil (... truncated) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/