From: Mathieu Bouchard Date: 2001-11-07T21:41:27+09:00 Subject: [ruby-talk:24504] Re: Why is ruby slow (compared to perl) On Wed, 7 Nov 2001, Aqil Azmi wrote: > To start with I decided to run words frequency count for a benchmark > test. Here are the results: > file #1 (~ 0.5 Meg) file #2 (~ 6 Meg) > freq.pl 3 seconds 19 seconds > freq.rb 16 seconds 189 seconds > I wrote freq.pl patterned it exactly on freq.rb (the one supplied in > sample subdirectory). Ruby 1.7.* fixes the speed problem with large numbers (~100000+) of objects; similarly I've written a source patch that fixes the problem in a different way. You could try either or both and add a new row to your benchmark. I don't guarantee it will be faster than Perl though. (note: I don't know about Windows) ________________________________________________________________ Mathieu Bouchard http://hostname.2y.net/~matju