#1077: Performance of String ----------------------------------+----------------------------------------- Reporter: yasuimao@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby 1.0 Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Comment(by yasuimao@…): I installed Ruby 1.9.2 via MacPorts on another machine and run the script. {{{ freq = Hash.new(0) 10.times{File.read("test.txt").scan(/\w+/){|word| freq[word] += 1}} }}} The file contains 8092 words encoded in UTF-8 with multi-byte characters (in sec.). This machine is slightly faster than the one I used for previous tests. {{{ MacRuby 0.9 2011/01/05 27.26 28.55 27.26 CRuby 1.8.7 0.21 0.21 0.21 CRuby 1.9.2 (MacPorts) 0.11 0.11 0.11 }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/1077#comment:11> MacRuby <http://macruby.org/>