[pypy-dev] pypy + cProfile
Stanislav Bohm
stanislav.bohm at vsb.cz
Thu May 14 08:37:02 CEST 2015
I have tried some standard benchmarks and my other python programs, and
cProfile makes things slower.
Hence, Aislinn is the only program where I can reproduce the weird behavior.
Stanislav Bohm
On 05/13/2015 04:24 PM, Omer Katz wrote:
> That's insane. Profiling slows down the application. Always.
> Are you able to reproduce this on other scripts as well?
>
> 2015-05-11 21:02 GMT+03:00 Stanislav Bohm <stanislav.bohm at vsb.cz
> <mailto:stanislav.bohm at vsb.cz>>:
>
> Hi
>
> I have observed that Pypy is faster when cProfile is enabled than
> its normal execution.
> I would like to ask if it is a normal behavior or a kind of anomaly?
>
> E.g. one of my benchmarks:
>
> Pypy: ~24.5s
> Pypy + cProfile: ~19s
> CPython: ~22s
>
> Tested with 2.5.1+dfsg-1~ppa1+ubuntu14.04, but I have observed a
> similar behavior with older versions of Pypy shipped with Ubuntu
> 14.10 and 15.04. My application is a pure python application that
> communicates through sockets. (It is a state-space analytical tool
> that communicates with a modified Valgrind process through TCP/IP
> connection).
>
> A replication of results:
>
> Build: https://github.com/spirali/aislinn (Installation
> instructions:
> http://verif.cs.vsb.cz/aislinn/doc/userguide.html#_installation)
>
> cd aislinn/tests/complex/workers
> ../../../bin/mpicc workers.c # build an analyzed program
> time pypy ../../../src/aislinn/aislinn.py -p4 ./a.out 10 90
> time pypy -m cProfile ../../../src/aislinn/aislinn.py -p4 ./a.out
> 10 90
> time python ../../../src/aislinn/aislinn.py -p4 ./a.out 10 90
>
> Best regards,
> Stanislav Bohm
>
>
> _______________________________________________
> pypy-dev mailing list
> pypy-dev at python.org <mailto:pypy-dev at python.org>
> https://mail.python.org/mailman/listinfo/pypy-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20150514/2f2a00a1/attachment-0001.html>
More information about the pypy-dev
mailing list