[issue25928] Improve performance of statistics._decimal_to_ratio and fractions.from_decimal
John Walker
report at bugs.python.org
Tue Dec 22 17:21:02 EST 2015
John Walker added the comment:
Heres the output of running the benchmark on my machine:
Testing proposed implementation
number = 10000
0.07098613299967838
number = 100000
0.6952260910002224
number = 1000000
6.948197601999709
Testing current implementation
number = 10000
0.1418162760000996
number = 100000
1.350394603001405
number = 1000000
13.625065807000283
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25928>
_______________________________________
More information about the Python-bugs-list
mailing list