xdg has asked for the wisdom of the Perl Monks concerning the following question:
What's a quick way to time how long it takes to compile a Perl module or program? (Preferably in a platform independent way.)
I seem to remember reading about this, but now can't remember where. Is there a module which does this? E.g.
perl -MDevel::CompileTime foo.pl
(Presumably, such a module could use BEGIN and CHECK blocks to time everything in between the first BEGIN and the last CHECK.)
What other approaches are there?
-xdg
Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to measure compilation time?
by lima1 (Curate) on Jul 11, 2006 at 18:47 UTC | |
by xdg (Monsignor) on Jul 11, 2006 at 19:06 UTC | |
by diotalevi (Canon) on Jul 11, 2006 at 19:06 UTC | |
by betterworld (Curate) on Jul 11, 2006 at 19:55 UTC |