Message219559
Pystone uses some floats in Python 3, while in Python 2 it's all integers. And since it is, as far as I can tell, based on Dhrystone, it should be all ints.
After fixing the division in the loop to be a floor division it runs the same as in Python 2. I've verified that after the attached fix the only floats created are time stamps, so this seems to be all that's needed.
This also makes the benchmark run c:a 5% faster, lessening the speed difference in pystone between Python 2 and Python 3, which contributes to the misconception that Python 3 is horribly slow. |
|
Date |
User |
Action |
Args |
2014-06-02 09:27:08 | lregebro | set | recipients:
+ lregebro |
2014-06-02 09:27:08 | lregebro | set | messageid: <1401701228.7.0.484236957852.issue21634@psf.upfronthosting.co.za> |
2014-06-02 09:27:08 | lregebro | link | issue21634 messages |
2014-06-02 09:27:07 | lregebro | create | |
|