New issue 2680: Slow speed going from numpy data structure to Python data
structures
https://bitbucket.org/pypy/pypy/issues/2680/slow-speed-going-from-numpy-data-structure
Eric Ma:
When comparing the use of PyPy to CPython, I saw that there was a big
difference on the following task:
```python
from numpy.random import binomial
from time import time
from collections import Counter
start = time()
coinflips = binomial(n=1, p=0.3, size=int(1E7))
end = time()
print('Time for numpy coinflips: {} seconds'.format(end - start))
print(Counter(coinflips))
end = time()
print('{} seconds'.format(end - start))
```
I wrote a blog post comparing things, and can be found
[here](https://ericmjl.github.io/blog/2017/10/11/pypy-impressive/) ([backup
website](https://ericmjl.github.io/blog/2017/10/11/pypy-impressive/)).
_______________________________________________
pypy-issue mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-issue