Message159451
| 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 |
|