Message159451
> "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 |
|
Date |
User |
Action |
Args |
2012-04-27 12:07:16 | vstinner | set | recipients:
+ vstinner, loewis, collinwinter, pitrou, ezio.melotti, flox, Boris.FELD, python-dev, serhiy.storchaka |
2012-04-27 12:07:16 | vstinner | set | messageid: <1335528436.58.0.946945637988.issue13621@psf.upfronthosting.co.za> |
2012-04-27 12:07:16 | vstinner | link | issue13621 messages |
2012-04-27 12:07:15 | vstinner | create | |
|