Pyhon 2.x or 3.x, which is faster?

Serhiy Storchaka storchaka at gmail.com
Tue Mar 8 07:48:46 EST 2016


On 08.03.16 04:12, Steven D'Aprano wrote:
> [steve at ando ~]$ python3.3 -m timeit -s 'from fp import
> Float' 'Float("1234.567")'
> 100000 loops, best of 3: 13.6 usec per loop
>
> [steve at ando ~]$ python/python-dev/3.5/python -m timeit -s 'from fp import
> Float' 'Float("1234.567")'
> 10000 loops, best of 3: 54 usec per loop
>
> What about 3.5? That's four times slower than 3.3? What happened there?

This is interesting question. On my computer (32-bit) all versions from 
3.3 to 3.6 have the same performance in this microbenchmark.





More information about the Python-list mailing list