[MacRuby-devel] [MacRuby] #568: MacRuby is a lot slower than 18, and in 19, in this benchmark.

MacRuby ruby-noreply at macosforge.org
Wed Jan 20 19:48:19 PST 2010


#568: MacRuby is a lot slower than 18, and in 19, in this benchmark.
-----------------------------+----------------------------------------------
 Reporter:  rob@…            |       Owner:  lsansonetti@…        
     Type:  enhancement      |      Status:  new                  
 Priority:  minor            |   Milestone:                       
Component:  MacRuby          |    Keywords:                       
-----------------------------+----------------------------------------------
 This isn't a bug or anything like that, but I just thought I'd report how
 much slower MacRuby can be when compared to MRI 18 or 19.

 {{{
 require 'benchmark'
 Benchmark.bm do |r|
   r.report { (0..10_000_000).to_a.map(&:to_s) }
 end
 }}}

 MRI 18 reported 8 seconds or there abouts, and MRI 19 reported 4 seconds.

 The macruby interpreter reported 20-30 seconds, and the same is true for
 the binary made by macrubyc.

 I understand this isn't a bug, and you probably want a stable macruby
 before you look at stuff like this but i just thought i'd throw it out
 there.

 I should probably mention in other benchmarks I've tried, the macruby
 compiler came out on top.

 Thanks.

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/568>
MacRuby <http://macruby.org/>



More information about the MacRuby-devel mailing list