[pypy-issue] [issue814] Appending string is slower than cpython
Ismael
tracker at bugs.pypy.org
Fri Jul 29 00:23:45 CEST 2011
New submission from Ismael <ismaelgfk at gmail.com>:
Code:
from time import time
ini = time()
s = ""
for i in xrange(100000):
s += "23"
fin = time()
print "AppendStr: ", fin-ini
Timings:
Python 2.6:
ismael at chaos:~/workspace/testsum/src$ python stringtest.py
AppendStr: 0.0206191539764
PyPy 1.5:
ismael at chaos:~/workspace/testsum/src$ ~/pypy/bin/pypy stringtest.py
AppendStr: 5.54550814629
PyPy trunk:
ismael at chaos:~/workspace/testsum/src$
~/pypy/pypylatest/pypy-c-jit-46033-811906ece2d8-linux64/bin/pypy stringtest.py
AppendStr: 5.64269804955
----------
messages: 2882
nosy: Ismael, pypy-issue
priority: bug
status: unread
title: Appending string is slower than cpython
________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue814>
________________________________________
More information about the pypy-issue
mailing list