Issue 26383: benchmarks (perf.py): number of decimal places in csv output (original) (raw)
Hi,
This is Florin Papa from the Dynamic Scripting Languages Optimizations Team at Intel Corporation.
This patch checks whether the benchmark measurement that will be included in the csv output has more than 3 of the first decimal places equal to 0 and outputs more decimal places.
The problem is that each measurement in the csv output has only 6 decimal places (default for "%f" format), while some benchmarks, like unpack_sequence, will output values of the magnitude 0.0000xx (first four decimal places 0). This truncation of the original value can lead to incorrect results.