[issue22458] Add fractions benchmark

Stefan Behnel report at bugs.python.org
Mon Sep 22 09:56:07 CEST 2014


Stefan Behnel added the comment:

I just thought that it might also be nice to have a direct comparison with Decimal, so here's an updated benchmark that has an option "--use-decimal" to run the same code with Decimal instead of Fraction.

Decimal is about 66x faster with Py3.4 on my side (due to the C implementation).

----------
Added file: http://bugs.python.org/file36685/bm_telco_fractions.py

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


More information about the Python-bugs-list mailing list