Skip to content

Commit 6566179

Browse files
author
mohdsaid497566
committed
syntax fix
1 parent bb22a53 commit 6566179

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

toolchain/mfc/bench.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def diff():
116116
for slug in slugs:
117117
lhs_summary, rhs_summary = lhs["cases"][slug]["output_summary"], rhs["cases"][slug]["output_summary"]
118118
speedups = ['N/A', 'N/A', 'N/A']
119-
119+
120120
for i, target in enumerate(sorted(DEFAULT_TARGETS, key=lambda t: t.runOrder)):
121121
if (target.name not in lhs_summary) or (target.name not in rhs_summary):
122122
cons.print(f"{target.name} not present in lhs_summary or rhs_summary - Case: {slug}")
@@ -141,12 +141,12 @@ def diff():
141141

142142
grind_time_value = lhs_summary[target.name]["grind"] / rhs_summary[target.name]["grind"]
143143
grind_time_speedup += f" & Grind: {grind_time_value:.2f}"
144+
speedups[i] += f" & Grind: {grind_time_speedup}"
144145
if grind_time_value <0.98:
145146
raise MFCException(f"Benchmarking failed since grind time speedup for {target.name} below acceptable threshold (<0.98) - Case: {slug}")
146147
except Exception as _:
147148
err = 1
148149
cons.print(f"lhs_summary or rhs_summary reports non-real grind time for {target.name} - Case: {slug}")
149-
speedups[i] += f" & Grind: {grind_time_speedup}"
150150

151151
table.add_row(f"[magenta]{slug}[/magenta]", *speedups)
152152

0 commit comments

Comments
 (0)