Don't consider NaN and Infinity while reporting benchmarks
commit8f73864eeb9679afb78038d1269fa51e78489c02
authorAdithya Kumar <adithya@composewell.com>
dateThu 3 Feb 2022, 18:57 (5 years ago)
parent0d41ab2
benchmark/bench-report/BenchReport.hs+2
@@ -223,6 +223,8 @@ selectBench Options{..} f =
223223 sortFunc = if sortByName then sortOn fst else sortOn snd
224224
225225 filterPred x
226+ | isInfinite x = False
227+ | isNaN x = False
226228 | cutOffPercent > 0 = x >= cutOffPercent
227229 | cutOffPercent < 0 = x <= cutOffPercent
228230 | otherwise = True