Investigation: downsides of being generic and correct
Nick Sabalausky
SeeWebsiteToContactMe at semitwist.com
Thu May 16 11:46:27 PDT 2013
On Thu, 16 May 2013 09:03:36 -0500
1100110 <0b1100110 at gmail.com> wrote:
> > 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.
>
>
Indeed. I had totally forgotten about that, and yet it *should* be the
first thing I think of when I think "timing a program". IMO, that
should be a standard tool in any unixy installation.
More information about the Digitalmars-d
mailing list