File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
devops/scripts/benchmarks/benches Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 77import csv
88import io
99import copy
10+ import math
11+ from enum import Enum
12+
1013from utils .utils import run , git_clone , create_build_path
11- from .base import Benchmark , Suite
1214from utils .result import BenchmarkMetadata , Result
15+ from .base import Benchmark , Suite
1316from options import options
14- from enum import Enum
1517
1618
1719class RUNTIMES (Enum ):
@@ -402,6 +404,9 @@ def parse_output(self, output):
402404 median = float (data_row [2 ])
403405 # compute benchmarks report stddev as %
404406 stddev = mean * (float (data_row [3 ].strip ("%" )) / 100.0 )
407+ if not math .isfinite (stddev ):
408+ stddev = 0.0 # Default to 0.0 if stddev is invalid
409+
405410 unit = data_row [7 ]
406411 results .append ((label , median , stddev , unit ))
407412 except (ValueError , IndexError ) as e :
You can’t perform that action at this time.
0 commit comments