[MacRuby] #1089: Performance: Regexp#match is slow.

MacRuby ruby-noreply at macosforge.org
Thu Dec 30 20:13:50 PST 2010


#1089: Performance: Regexp#match is slow.
----------------------------------+-----------------------------------------
 Reporter:  watson1978@…          |       Owner:  lsansonetti@…        
     Type:  defect                |      Status:  new                  
 Priority:  blocker               |   Milestone:                       
Component:  MacRuby               |    Keywords:                       
----------------------------------+-----------------------------------------

Comment(by watson1978@…):

 Sorry. I forgot to delete sprintf.

 The result after deleting sprintf:
 {{{
 $ ruby -v bm_regexp.rb
 ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]
       user     system      total        real
   1.050000   0.000000   1.050000 (  1.056672)

 $ ruby19 -v bm_regexp.rb
 ruby 1.9.2p136 (2010-12-25 revision 30365) [x86_64-darwin10.5.0]
       user     system      total        real
   1.200000   0.000000   1.200000 (  1.200936)


 $ macruby05 -v bm_regexp.rb
 MacRuby version 0.5 (ruby 1.9.0) [universal-darwin10.0, x86_64]
       user     system      total        real
   4.730000   0.080000   4.810000 (  3.734745)

 $ macruby06 -v bm_regexp.rb
 MacRuby version 0.6 (ruby 1.9.0) [universal-darwin10.0, x86_64]
       user     system      total        real
   8.140000   0.280000   8.420000 (  7.342578)

 $ macruby -v bm_regexp.rb
 MacRuby 0.9 (ruby 1.9.2) [universal-darwin10.0, x86_64]
       user     system      total        real
   6.230000   0.200000   6.430000 (  5.579792)
 }}}

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



More information about the macruby-tickets mailing list