[ruby-dev:49957] Re: [ruby-changes:45210] nobu:r57283 (trunk): benchmarks for [Bug #13113] [ci skip]

From: SASADA Koichi <ko1@...>
Date: 2017-01-19 01:40:24 UTC
List: ruby-dev #49957
中田さん:

(1) ann_ って何?
(2) Module.new.const_set(:X, Module.new) だと、
  Module.new が支配的だと思うんだけど、何が計りたいの?

On 2017/01/08 10:46, nobu wrote:
> nobu	2017-01-08 10:46:10 +0900 (Sun, 08 Jan 2017)
> 
>   New Revision: 57283
> 
>   https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57283
> 
>   Log:
>     benchmarks for [Bug #13113] [ci skip]
> 
>   Added files:
>     trunk/benchmark/bm_vm2_module_ann_const_set.rb
>     trunk/benchmark/bm_vm2_module_const_set.rb
> Index: benchmark/bm_vm2_module_ann_const_set.rb
> ===================================================================
> --- benchmark/bm_vm2_module_ann_const_set.rb	(revision 0)
> +++ benchmark/bm_vm2_module_ann_const_set.rb	(revision 57283)
> @@ -0,0 +1,5 @@ https://github.com/ruby/ruby/blob/trunk/benchmark/bm_vm2_module_ann_const_set.rb#L1
> +i = 0
> +while i<6_000_000 # benchmark loop 2
> +  i += 1
> +  Module.new.const_set(:X, Module.new)
> +end
> 
> Property changes on: benchmark/bm_vm2_module_ann_const_set.rb
> ___________________________________________________________________
> Added: svn:eol-style
>    + LF
> 
> Index: benchmark/bm_vm2_module_const_set.rb
> ===================================================================
> --- benchmark/bm_vm2_module_const_set.rb	(revision 0)
> +++ benchmark/bm_vm2_module_const_set.rb	(revision 57283)
> @@ -0,0 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/benchmark/bm_vm2_module_const_set.rb#L1
> +i = 0
> +module M
> +end
> +$VERBOSE = nil
> +while i<6_000_000 # benchmark loop 2
> +  i += 1
> +  M.const_set(:X, Module.new)
> +end
> 
> Property changes on: benchmark/bm_vm2_module_const_set.rb
> ___________________________________________________________________
> Added: svn:eol-style
>    + LF
> 
> 
> --
> ML: [email protected]
> Info: http://www.atdot.net/~ko1/quickml/
> 


-- 
// SASADA Koichi at atdot dot net

In This Thread

Prev Next