Performance of Python 2.3 and 2.4

Felipe Almeida Lessa felipe.lessa at gmail.com
Sat Apr 22 21:30:33 EDT 2006


Em Dom, 2006-04-23 às 00:20 +0200, Michal Kwiatkowski escreveu:
> Hi!
> 
> I was just wondering...

Probably there is another factor involved:

$ python2.3
Python 2.3.5 (#2, Mar  6 2006, 10:12:24)
[GCC 4.0.3 20060304 (prerelease) (Debian 4.0.2-10)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import timeit
>>> timeit.Timer('2**100000000').timeit(1)
4.6463479995727539
>>> timeit.Timer('112233445566778899 * 112233445566778899').timeit()
0.44853687286376953


$ python2.4
Python 2.4.3 (#2, Mar 30 2006, 21:52:26)
[GCC 4.0.3 (Debian 4.0.3-1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import timeit
>>> timeit.Timer('2**100000000').timeit(1)
4.9987671375274658
>>> timeit.Timer('112233445566778899 * 112233445566778899').timeit()
0.36968302726745605

-- 
Felipe.




More information about the Python-list mailing list