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 <rep...@bugs.python.org> <http://bugs.python.org/issue22458> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com