[New-bugs-announce] [issue21634] Pystone uses floats

Lennart Regebro report at bugs.python.org
Mon Jun 2 11:27:08 CEST 2014


New submission from Lennart Regebro:

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.

----------
components: Benchmarks
files: pystone.diff
keywords: patch
messages: 219559
nosy: lregebro
priority: normal
severity: normal
status: open
title: Pystone uses floats
type: performance
versions: Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 3.5
Added file: http://bugs.python.org/file35442/pystone.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21634>
_______________________________________


More information about the New-bugs-announce mailing list