[MacRuby] #1019: String#gsub performance

MacRuby ruby-noreply at macosforge.org
Sat Jan 8 07:58:10 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 ran the test with 2011/01/08 nightly.  I used a different machine, so
 the numbers are slightly different from the previous posts.  The test file
 is with 8092 words, UTF-8 encoded with multi-byte characters.

 Results - Test 1 (sec.)
 {{{
 MacRuby 0.9 2011/01/08  0.10    0.10    0.10
 MacRuby 0.9 2011/01/08  0.097   0.097   0.096 (w/ force_encoding)
 CRuby 1.8.7             0.078   0.078   0.078
 CRuby 1.9.1             0.062   0.061   0.061
 }}}

 Results - Test 2 (sec.)
 {{{
 MacRuby 0.9 2011/01/08  0.40    0.40    0.40
 MacRuby 0.9 2011/01/08  0.27    0.27    0.27 (w/ force_encoding)
 CRuby 1.8.7             0.19    0.19    0.19
 CRuby 1.9.2             0.099   0.099   0.099
 }}}

 As with String#scan, it is much faster than before, but still slower than
 CRuby.  Yet, this is a great improvement!!

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



More information about the macruby-tickets mailing list