Why optimization mode is slower than normal mode?
Leo Jay
python.leojay at gmail.com
Thu Dec 11 03:30:01 EST 2008
Hi all,
I'm using python 2.6 in a windows xp box, when I try pystone, I get:
C:\Python26\Lib\test>python pystone.py 500000
Pystone(1.1) time for 500000 passes = 5.93632
This machine benchmarks at 84227.3 pystones/second
C:\Python26\Lib\test>python -OO pystone.py 500000
Pystone(1.1) time for 500000 passes = 6.00515
This machine benchmarks at 83261.8 pystones/second
I tried many times, and get the same result.
Why optimization mode is slower than normal mode?
--
Best Regards,
Leo Jay
More information about the Python-list
mailing list