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

David Cournapeau cournape at gmail.com
Wed Jun 19 22:07:16 EDT 2013


On Tue, Jun 18, 2013 at 7:26 AM, Nathaniel Smith <njs at pobox.com> wrote:

> 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.
>

With the above compilation options, I get a flame graph that show similar
patterns to what you get as well:
https://s3.amazonaws.com/scipy-2013/diving_into_numpy/perf-numpy.svg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20130619/50e10e98/attachment.html>


More information about the NumPy-Discussion mailing list