[issue22458] Add fractions benchmark

Stefan Krah report at bugs.python.org
Thu Sep 1 17:29:06 EDT 2016


Stefan Krah added the comment:

I think string conversion should be part of this benchmark, or it should be renamed to fraction-arith or something.

The formatting function can be a significant bottleneck, and if you use Fractions for financial calculations the result will still need to be printed in decimal floating point form.


That said, is the purpose of this benchmark to show that fractions are slow and generate interest in changing the situation?

----------
nosy: +skrah

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


More information about the Python-bugs-list mailing list