[Numpy-discussion] Profiling (was GSoC : Performance parity between numpy arrays and Python scalars)

Nathaniel Smith njs at pobox.com
Tue Jun 18 08:26:12 EDT 2013


On 18 Jun 2013 12:40, "David Cournapeau" <cournape at gmail.com> wrote:
>
> On Mon, Jun 17, 2013 at 4:06 PM, Arink Verma <arinkverma at gmail.com> wrote:
> > I am building numpy from source, python setup.py build --fcompiler=gnu95
> > then installation, python setup.py install --user, on ubuntu 13.04
> >
> > for analysis results
> > pprof --svg /usr/bin/python py.prof
>
> You can try using bento, with something like:
>
> CFLAGS="-O0 -fno-omit-frame-pointer -g" bentomaker build -i -v -j4

A good thing to try (and unfortunately I don't have time right now to try
and work out why my results are different than yours). Remember though that
once you get it working you'll want to re-enable optimization (-O2 or -O3
instead of -O0) before you use the profile results for anything serious.

-n
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20130618/9848b9bb/attachment.html>


More information about the NumPy-Discussion mailing list