From: SASADA Koichi Date: 2017-01-19T10:40:24+09:00 Subject: [ruby-dev:49957] Re: [ruby-changes:45210] nobu:r57283 (trunk): benchmarks for [Bug #13113] [ci skip] 中田さん: (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: ruby-changes@quickml.atdot.net > Info: http://www.atdot.net/~ko1/quickml/ > -- // SASADA Koichi at atdot dot net