[pypy-issue] [issue1631] array.tostring() is 15x slower on PyPy

Alex Gaynor tracker at bugs.pypy.org
Tue Nov 5 20:57:57 CET 2013


Alex Gaynor <alex.gaynor at gmail.com> added the comment:

Made some improvements, now it's *only* 2x slower than CPython:

~/p/pypy $ ./pypy-c  -mtimeit -s "from array import array; x = array('B', '*' * 
100000)" "x.tostring()"
100000 loops, best of 3: 8.5 usec per loop
~/p/pypy $ ./pypy-c  -mtimeit -s "from array import array; x = array('B', '*' * 
100000)" "x.tostring()"                 🕕 3.62s
100000 loops, best of 3: 8.53 usec per loop
~/p/pypy $ ./pypy-c  -mtimeit -s "from array import array; x = array('B', '*' * 
100000)" "x.tostring()"                 🕐 3.57s
100000 loops, best of 3: 8.48 usec per loop
~/p/pypy $ ./pypy-c  -mtimeit -s "from array import array; x = array('B', '*' * 
100000)" "x.tostring()"                 🕛 3.57s
100000 loops, best of 3: 8.45 usec per loop
~/p/pypy $ ./pypy-c  -mtimeit -s "from array import array; x = array('B', '*' * 
100000)" "x.tostring()"                 🕐 3.54s
100000 loops, best of 3: 8.59 usec per loop

----------
status: unread -> chatting

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1631>
________________________________________


More information about the pypy-issue mailing list