From: Matt Sergeant Date: 2001-11-17T01:09:42+09:00 Subject: [ruby-talk:25461] Re: Fwd: Some quick benchmarks on scripting languages Note that as usual with benchmarks, you often don't implement things the best way for each language. For all the Perl examples you gave, you're using package variables, not lexicals. Lexicals are known to be slightly faster (which may make a difference on this test). Here's the last one translated to use lexicals: my %a; for (my $i=0; $i<1000000; $i++) { $a{$i} = $i; } foreach my $key (keys(%a)) { my $b = $a{$key}; } print "finished\n";