Really? Has to be pretty big script to take more than a few millisec. For linux, there's a tool bundled with sources (linux/tools/perf). Far more precise and informational.
| [reply] |
time perl -c -e'use Moose; 1;'
use Moops; class Cow :rw { has name => (default => 'Ermintrude') }; say Cow->new->name
| [reply] [d/l] |
Thanks, oiskuu.
Nice output. While I do have stat, and lstat for that matter, and of course, perl. I don't have perf -- at least not by name. Probably have something by another name (I'm using *BSD).
Which means, for the sake of portability, I should use something derived from Perl itself. Though perl -c seems to provide some interesting statistics. :)
Thanks for the informative response, oiskuu.
--Chris
#!/usr/bin/perl -Tw
use Perl::Always or die;
my $perl_version = (5.12.5);
print $perl_version;
| [reply] |