Skip to content

Commit

Permalink
Update tools/benchcomp/benchcomp/visualizers/__init__.py
Browse files Browse the repository at this point in the history
Co-authored-by: Kareem Khazem <[email protected]>
  • Loading branch information
tautschnig and karkhaz authored Mar 18, 2024
1 parent b7e0317 commit df9234a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/benchcomp/benchcomp/visualizers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ def _compute_scaled_metric(data_for_metric, log_scaling):
# 1.0 is not a permissible value for mermaid, so make sure all scaled
# results stay below that by use 0.99 as hard-coded value or
# artificially increasing the range by 10 per cent
if min_value is None or min_value == max_value:
if min_value == math.inf or min_value == max_value:
for bench, bench_result in data_for_metric.items():
ret["benchmarks"][bench] = {variant: 0.99 for variant in bench_result.keys()}
else:
Expand Down

0 comments on commit df9234a

Please sign in to comment.