File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments