[issue14381] Intern certain integral floats for memory savings and performance
report at bugs.python.org
Fri Mar 23 08:52:56 CET 2012
Serhiy Storchaka <storchaka at gmail.com> added the comment:
PyBench contains a lot of different tests and executes them not too long. Random fluctuations of a few percent are possible. We need a more stable realistic test working with floats.
$ ./python -m timeit 'x,y,d=1,0,0.01
for i in range(628):
Without patch: 1000 loops, best of 3: 220 usec per loop
With patch: 1000 loops, best of 3: 232 usec per loop
Difference is 5%.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list