avgtime - Small D util for your everyday benchmarking needs

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Thu Mar 22 15:22:33 PDT 2012


On 3/21/12 7:32 PM, Juan Manuel Cabo wrote:
> avgtime -r 10 -q ls -lR /etc
>
> ------------------------
> Total time (ms): 933.742
> Repetitions : 10
> Median time : 90.505
> Avg time : 93.3742
> Std dev. : 4.66808
> Minimum : 88.732
> Maximum : 101.225

Sweet! You may want to also print the mode of the distribution, which is 
the time of the maximum sample density. 
http://en.wikipedia.org/wiki/Mode_(statistics) (Warning: nontrivial but 
informative.)


Andrei



More information about the Digitalmars-d-announce mailing list