[Numpy-discussion] Adding a 2D with a 1D array...

Francesc Alted faltet@pytables....
Thu Sep 10 07:32:34 CDT 2009

A Thursday 10 September 2009 14:22:57 Dag Sverre Seljebotn escrigué:
> >  > (Also a guard in timeit against CPU frequency scaling errors would be
> >  >
> >  > great :-) Like simply outputting a warning if frequency scaling is
> >  >
> >  > detected).
> >
> > Sorry, I don't get this one.
> I had some trouble getting reliable benchmarks on my own computer until
> I realised that the power-saving capabilities of my CPU down-throttled
> the clock speed when it was not in use. Thus if I did two calls to
> timeit right after one another, the second would always report lower
> runtime, because the first one started at a lower clock speed.

:-)  Good point

> Changing a BIOS setting solved this, but it might be a gotcha which e.g.
> timeit and IPython could report (they could just inspect the CPU
> information and emit a warning -- or, do something to throttle up the
> CPU to full speed first).

Francesc Alted
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20090910/29fe19e1/attachment.html 

More information about the NumPy-Discussion mailing list