Summary
When I execute a very simple program using the Perl Benchmark utility. I get values โโthat are not (appear like) milliseconds or nanoseconds. The returned test results are not useful to me because I donโt know how to interpret them.
Example:
use Benchmark;
my $start = Benchmark->new;
print "foo!";
my $end = Benchmark->new;
my $diff = timediff($end, $start);
print timestr($diff);
Returns: foo! 0 wallclock secs ( 0.00 usr + 0.00 sys = 0.00 CPU)
What do the different fields mean: seconds Wallclock, Usr, Sys, CPU? Can they be extrapolated to get a millisecond? Right now, for my benchmarking, all I need is real time for one execution, without having to consider some of the more esoteric aspects of the tests.
source
share