avgtime - Small D util for your everyday benchmarking needs
Juan Manuel Cabo
juanmanuel.cabo at gmail.com
Wed Mar 21 19:58:29 PDT 2012
On Thursday, 22 March 2012 at 01:37:19 UTC, Tove wrote:
>
> Awesome, I do have a tiny feature request for the next
> version... a commandline switch to enable automatically
> discarding the first run as an outlier.
>
> /Tove
Done, I just put it in github. (-d switch).
But maybe you should be looking at the median
to ignore outliers.
I also added a -p switch to print all the times:
./avgtime -d -q -p -r10 ls -lR /usr/share/doc
------------------------
Total time (ms): 3986.69
Repetitions : 10
Median time : 397.62
Avg time : 398.669
Std dev. : 2.95832
Minimum : 395.633
Maximum : 406.274
Sorted times :
[395.633, 396.261, 396.273, 397.413, 397.425, 397.815,
399.321, 399.719, 400.551, 406.274]
--jm
More information about the Digitalmars-d-announce
mailing list