Follows modern trend toward measuring wall-clock time, since CPU time is becoming rather ill-defined in the age of multicore, and doesn't reflect IO overhead in any case.
my $start = now; (^100000).pick(1000); say now - $start;
0.02301709
Last updated 1 year ago
Was this helpful?