Next | Making Programs Faster | 98 |
That's another reason I don't like Benchmark.pm
It makes it too easy to ask the wrong questions
"Which is faster? Subroutine or method calls?"
"Which is faster? map or for?"
People like to use Benchmark to answer questions like this
But often the best answer is "Who the hell cares?"
Suppose it turns out that map is faster
Only a pinhead would rewrite all his programs to use map instead of for
The difference is going to be minuscule anyway
If it isn't, the right response is to file a bug report to p5p
Next | Copyright © 2003 M. J. Dominus |