Investigation: downsides of being generic and correct

1100110 0b1100110 at gmail.com
Thu May 16 07:03:36 PDT 2013


> May I also recommend my tool "avgtime" to make simple benchmarks,
> instead of "time" (you can see an ascii histogram as the output):
> 
>      https://github.com/jmcabo/avgtime/tree/
> 
> For example:
> 
> $ avgtime -r10 -h -q  ls
> ------------------------
> Total time (ms): 27.413
> Repetitions    : 10
> Sample mode    : 2.6 (4 ocurrences)
> Median time    : 2.6695
> Avg time       : 2.7413
> Std dev.       : 0.260515
> Minimum        : 2.557
> Maximum        : 3.505
> 95% conf.int.  : [2.2307, 3.2519]  e = 0.510599
> 99% conf.int.  : [2.07026, 3.41234]  e = 0.671041
> EstimatedAvg95%: [2.57983, 2.90277]  e = 0.161466
> EstimatedAvg99%: [2.5291, 2.9535]  e = 0.212202
> Histogram      :
>     msecs: count  normalized bar
>       2.5:     2  ####################
>       2.6:     4  ########################################
>       2.7:     3  ##############################
>       3.5:     1  ##########
> 
> --jm
> 

Thank you for self-promotion, I miss that tool.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 900 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20130516/1430503b/attachment-0001.pgp>


More information about the Digitalmars-d mailing list