[Numpy-discussion] python numpy code many times slower than c++

Hanni Ali hanni.ali at gmail.com
Thu Jan 22 02:46:11 EST 2009


I have been using your profiler extensively and it has contributed to my
achieving significant improvements in the application I work on largely due
to the usefulness of the line by line breakdown enabling me to easily select
the next part of code to work on optimizing. So firstly many thanks for
writing it.

However back to my point, Wes, I have also experienced timing oddities, in
particular on Virtual machines (MS Hyper-V has very poor processor timings,
the older MS VM works fine though). I believe the negative timings arise
when the CPU (be it virtual or possibly physical) deviates from its standard
performance or rather the initial timer unit taken, would this make sense to
you Robert?

Hanni



2009/1/21 Robert Kern <robert.kern at gmail.com>

> On Wed, Jan 21, 2009 at 12:13, Wes McKinney <wesmckinn at gmail.com> wrote:
> > Robert-- this is a great little piece of code, I already think it will be
> a
> > part of my workflow. However, I seem to be getting negative % time taken
> on
> > the more time consuming lines, perhaps getting some overflow?
>
> That's odd. Can you send me the code (perhaps offlist) or at least the
> .lprof file?
>
> --
> Robert Kern
>
> "I have come to believe that the whole world is an enigma, a harmless
> enigma that is made terrible by our own mad attempt to interpret it as
> though it had an underlying truth."
>  -- Umberto Eco
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion at scipy.org
> http://projects.scipy.org/mailman/listinfo/numpy-discussion
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20090122/4a98993e/attachment.html>


More information about the NumPy-Discussion mailing list