This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author lregebro
Recipients lregebro
Date 2014-06-02.09:27:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1401701228.7.0.484236957852.issue21634@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-06-02 09:27:08lregebrosetrecipients: + lregebro
2014-06-02 09:27:08lregebrosetmessageid: <1401701228.7.0.484236957852.issue21634@psf.upfronthosting.co.za>
2014-06-02 09:27:08lregebrolinkissue21634 messages
2014-06-02 09:27:07lregebrocreate