|Keep It Simple, Stupid|
Perl with internal Benchmark/Profilerby PetaMem (Priest)
|on Jun 15, 2006 at 11:19 UTC||Need Help??|
PetaMem has asked for the
wisdom of the Perl Monks concerning the following question:
we happen to compile own perl interpreters a lot. Mainly to get up-to-date high-performance Perl Interpreters tailored exactly to our needs. Until now, to check impact of used compiler, compiler flags, perl configuration etc. we simply benchmarked some perl programms of ours.
It would be of great benefit, if there was some pragma or Module belonging to the Perl core, that could give information about the speed of various operations. It is evident, that the result of such benchmarking cannot be some one-dimensional number "this perl interpreter runs with xxx drystones", but rather a table where the speed of list creation, sorting, hash-lookup, iteration etc. would be benchmarked.
Ideally, the output of this would be easily parseable, so we could simply let our compiler run over the weekend and test all the perls with all the relevant flags. This should give us a fairly good overview how the different perls perform. Or didn't you always want to know how a perl-5.9.3 -O3 -msse2 -march=k8 64bit no-multiplicity compares to a 5.8.8 32bit perl -O2 ...
Anyone a hint how to proceed to get an exhaustive set of such benchmark results?