in reply to Run a script multiple times and store the running time
How about:
#! perl -slw use strict; use Time::HiRes qw[ time ]; while( my $arg = <DATA> ) { my $start = time; system "perl script.pl $arg"; printf "With '%s' took: %.3f seconds\n", $arg, $time() - $start; } __DATA__ 1000 args here ... ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Run a script multiple times and store the running time
by Anonymous Monk on Oct 14, 2016 at 09:22 UTC | |
|
Re^2: Run a script multiple times and store the running time
by Anonymous Monk on Oct 13, 2016 at 22:12 UTC |