This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients Boris.FELD, collinwinter, ezio.melotti, flox, loewis, pitrou, python-dev, serhiy.storchaka, vstinner
Date 2012-04-27.12:07:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1335528436.58.0.946945637988.issue13621@psf.upfronthosting.co.za>
In-reply-to
Content
> "Andrew"+"Dalke" (*1000): -23.076923%

/python -m timeit '"Andrew"+"Dalke"' gives me very close results with Python 3.2 (wide mode) and 3.3. Somethings like 0.15 vs 0.151 microseconds.

But using longer (ASCII) strings, Python 3.3 is 2.6x faster:

$ python3.2 -m timeit -s 'a="A"*1000; b="B"*1000' 'a+b'
1000000 loops, best of 3: 0.39 usec per loop
$ python3.3 -m timeit -s 'a="A"*1000; b="B"*1000' 'a+b'
10000000 loops, best of 3: 0.151 usec per loop
History
Date User Action Args
2012-04-27 12:07:16vstinnersetrecipients: + vstinner, loewis, collinwinter, pitrou, ezio.melotti, flox, Boris.FELD, python-dev, serhiy.storchaka
2012-04-27 12:07:16vstinnersetmessageid: <1335528436.58.0.946945637988.issue13621@psf.upfronthosting.co.za>
2012-04-27 12:07:16vstinnerlinkissue13621 messages
2012-04-27 12:07:15vstinnercreate