[前][次][番号順一覧][スレッド一覧][生データ]

yarv-dev-en:57

From: SASADA Koichi <ko1 atdot.net>
Date: Thu, 23 Feb 2006 01:41:49 +0900
Subject: [yarv-dev-en:57] Re: YARV 0.3.3 bug report

Hi,

Ilmari Heikkinen wrote:
> Yes, YARV's GC is faster.
> 
> Actually, the ruby1.8 version was using RubyInline to do the bottlenecks
> in C (forgot to turn it off), and that's why it's allocating less. YARV
> is running pure ruby codepath, so the performance is even more
> impressive.
> 
> I re-ran the test with inline turned off and ruby1.8 gets 34fps, YARV
> gets 60fps (76% faster!)

Excellent.


>>> kig@bauhaus:~$ ruby-yarv -e 'for d,*f in [[1,2,3]]; p d,f; end'
>>> 1
>>> nil
>> On my environment:
>> $ ./ruby -ve 'for d,*f in [[1,2,3]]; p d,f; end'
>> ruby 2.0.0 (Base: Ruby 1.9.0 2006-02-14) [i686-linux]
>> YARVCore 0.4.0 Rev: 717 (2006-02-22) [opts: ]
>> 1
>> [2, 3]
>>
>>> kig@bauhaus:~$ ruby-yarv -e 'class Object; define_method(:foo){|*args| p
>>> args}; end; 0.foo(1,2,3)'
>>> nil
>> On my environment:
>> $ ./ruby -ve 'class Object; define_method(:foo){|*args| p args}; end;
>> 0.foo(1,2,3)'
>> ruby 2.0.0 (Base: Ruby 1.9.0 2006-02-14) [i686-linux]
>> YARVCore 0.4.0 Rev: 717 (2006-02-22) [opts: ]
>> [1, 2, 3]
> 
> 
> Strange..
> Tried the SVN trunk HEAD:
> $ svn co http://www.atdot.net/svn/yarv/trunk yarv
> $ cd yarv; autoconf && ./configure --program-suffix=-yarv && make
> $ ./ruby-yarv  -ve 'for d,*f in [[1,2,3]]; p d,f; end'
> ruby 2.0.0 (Base: Ruby 1.9.0 2006-02-14) [i686-linux]
> YARVCore 0.4.0 Rev: 470 (2006-02-22) [opts: ]
> 1
> nil
> 
> What might be the reason ? Bad libraries on my machine?

Please try with "miniruby" in your build directory.


Regards,
-- 
// SASADA Koichi at atdot dot net


-- 
ML: yarv-dev-en quickml.atdot.net
使い方: http://www.atdot.net/~ko1/quickml

[前][次][番号順一覧][スレッド一覧][生データ]

        38 2006-02-18 12:33 [kig misfiring.net   ] YARV 0.3.3 bug report                   
        42 2006-02-20 16:28 ┗[ko1 atdot.net       ]                                       
        46 2006-02-21 02:22  ┣[ko1 atdot.net       ]                                     
        51 2006-02-22 15:26  ┗[kig misfiring.net   ]                                     
        53 2006-02-22 18:28   ┗[ko1 atdot.net       ]                                   
        54 2006-02-23 00:58    ┗[kig misfiring.net   ]                                 
->      57 2006-02-23 01:41     ┗[ko1 atdot.net       ]                               
        58 2006-02-23 01:50      ┗[kig misfiring.net   ]                             
        60 2006-02-23 02:26       ┗[ko1 atdot.net       ]                           
        61 2006-02-23 02:48        ┗[chneukirchen gmail.c]                         
        62 2006-02-23 03:09         ┗[kig misfiring.net   ]                       
        63 2006-02-23 04:26          ┣[kig misfiring.net   ]                     
        64 2006-02-23 12:32          ┗[kig misfiring.net   ]                     
        68 2006-02-24 07:19           ┗[ko1 atdot.net       ]                   
        83 2006-02-27 22:24            ┗[ko1 atdot.net       ]