[MacRuby] #1019: String#gsub performance

MacRuby ruby-noreply at macosforge.org
Tue Jan 4 07:22:34 PST 2011


#1019: String#gsub performance
----------------------------------+-----------------------------------------
 Reporter:  yasuimao@…            |       Owner:  lsansonetti@…        
     Type:  defect                |      Status:  new                  
 Priority:  major                 |   Milestone:  MacRuby 1.0          
Component:  MacRuby               |    Keywords:                       
----------------------------------+-----------------------------------------

Comment(by yasuimao@…):

 I tested this with 2011/01/04 nightly.  This time, I changed the length of
 the text.  I used the same original text and deleted later paragraphs to
 shorten it.

 {{{
 MacRuby 0.9 2011/01/04 nightly - 1548 words
 Test 1 -  1.32 seconds
 Test 2 -  2.69 seconds

 MacRuby 0.9 2011/01/04 nightly - 2705 words
 Test 1 -  3.88 seconds
 Test 2 -  7.99 seconds

 MacRuby 0.9 2011/01/04 nightly - 3970 words
 Test 1 -  8.23 seconds
 Test 2 - 16.61 seconds

 MacRuby 0.9 2011/01/04 nightly - 6247 words
 Test 1 - 20.22 seconds
 Test 2 - 40.57 seconds

 MacRuby 0.9 2011/01/04 nightly - 8092 words
 Test 1 - 34.16 seconds
 Test 2 - 68.39 seconds
 }}}

 This build is faster than the one I tested last time (2010/12/24), but
 still much slower than before.

 Just to campare, I run the same test with 2010/12/17 nightly.

 {{{
 MacRuby 0.9 2010/12/17 nightly - 8092 words
 Test 1 -  0.69 seconds
 Test 2 -  1.23 seconds
 }}}

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/1019#comment:5>
MacRuby <http://macruby.org/>



More information about the macruby-tickets mailing list