[New-bugs-announce] [issue22458] Add fractions benchmark

Stefan Behnel report at bugs.python.org
Mon Sep 22 09:10:30 CEST 2014

New submission from Stefan Behnel:

Fractions are great for all sorts of exact computations (including money/currency calculations), but are quite slow due to the need for normalisation at instantiation time.

I adapted the existing telco benchmark to use Fraction instead of Decimal to make this problem more visible. One change I made was to take the data reading out of the measured loop. I/O is not part of what the benchmark should measure.

Please consider adding it to the benchmark suite.

components: Benchmarks
files: telco_fractions.py
messages: 227252
nosy: scoder
priority: normal
severity: normal
status: open
title: Add fractions benchmark
type: enhancement
Added file: http://bugs.python.org/file36684/telco_fractions.py

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list