Skip to content
Commit 5000af19 authored by Ryan Roberts's avatar Ryan Roberts
Browse files

cli: Filter out zero values prior to calculating harmonic mean



The stressng-sync-file-64 resultclass from the
mmtests/stressng-class-io-parallel benchmark has been found to
occasionally return 0.0 values. But the resultclass specifies harmonic
mean, which effectively means we end up dividing by zero and getting
weird results. I anticipate that there is a bug in the benchmark
somewhere.

To work around this gracefully, let's detect the case, emit a warning
and filter out all the zero values.

Signed-off-by: Ryan Roberts's avatarRyan Roberts <ryan.roberts@arm.com>
parent 8b01efa2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment