New submission from Yury V. Zaytsev <[email protected]>:

I've posted this on pypy-dev@, but my mail didn't make it, so as mattip
suggested I'm re-posting it to the bug tracker:

Yesterday, I was able to make my simple cross-correlation script to work
with PyPy / NumPy at all with the valuable help of bdk, however, I ended
up being quite disappointed about the performance.

I stripped out everything I could and ended up with something like this:

Python 3:

$ time python corrbench.py 
0
1
2

real 0m2.225s
user 0m1.980s
sys 0m0.240s

PyPy from hg / NumPy from hg (3581f7a906c9+):

$ time python corrbench.py
0
1
2

real 1m2.928s
user 1m2.460s
sys 0m0.270s

What this script does, it basically generates two time series of ~5 000
elements and bins them into 3 000 000 buckets, which it then multiples
element-wise and sums up the result. I expected a huge performance
boost, of course :-)

I think I'll be running this with plain Python for now, but I hope
that's a valuable benchmark for you guys!

----------
messages: 6844
nosy: pypy-issue, zaytsev
priority: performance bug
status: unread
title: depressing performance on a cross-correlation benchmark

________________________________________
PyPy bug tracker <[email protected]>
<https://bugs.pypy.org/issue1753>
________________________________________
_______________________________________________
pypy-issue mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-issue

Reply via email to