Perl Monk, Perl Meditation | |
PerlMonks |
Re^2: map vs for\foreach. (bench)by tye (Sage) |
on Mar 12, 2015 at 05:40 UTC ( [id://1119751]=note: print w/replies, xml ) | Need Help?? |
Here's some trivial benchmarks that at least compare comparable operations and ones that are just slightly more than trivial:
And here are my results:
So I don't even have to give my explanation of why Benchmark.pm saying "20% faster" almost never has any practical meaning. - tye
In Section
Seekers of Perl Wisdom
|
|