[pypy-issue] Issue #1893: numpypy's iterator is slower than pypy's (pypy/pypy)
mattip
issues-reply at bitbucket.org
Thu Oct 16 19:21:30 CEST 2014
New issue 1893: numpypy's iterator is slower than pypy's
https://bitbucket.org/pypy/pypy/issue/1893/numpypys-iterator-is-slower-than-pypys
mattip:
This test compares three ways to iterate over numpy ndarrays: a pure python loop, an implicit numpy loop, and an nditer.
numpypy's iterator is ~2x slower than a pure python loop
The nditer's performance is ~100 times worse than a pure python loop:
$pypy test.py
add10_numpy: 0.0288829803467
True
add10_nditer: 0.963934183121
True
add10_py: 0.013454914093
True
More information about the pypy-issue
mailing list