File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -631,13 +631,14 @@ def determine_best_candidate(
631631 executor = self .executor ,
632632 )
633633 )
634- tree .add (
635- f"Summed runtime: { humanize_runtime (best_test_runtime )} "
636- f"(measured over { candidate_result .max_loop_count } "
637- f"loop{ 's' if candidate_result .max_loop_count > 1 else '' } )"
638- )
639- tree .add (f"Speedup percentage: { perf_gain * 100 :.1f} %" )
640- tree .add (f"Speedup ratio: { perf_gain + 1 :.3f} X" )
634+ else :
635+ tree .add (
636+ f"Summed runtime: { humanize_runtime (best_test_runtime )} "
637+ f"(measured over { candidate_result .max_loop_count } "
638+ f"loop{ 's' if candidate_result .max_loop_count > 1 else '' } )"
639+ )
640+ tree .add (f"Speedup percentage: { perf_gain * 100 :.1f} %" )
641+ tree .add (f"Speedup ratio: { perf_gain + 1 :.3f} X" )
641642 console .print (tree )
642643 if self .args .benchmark and benchmark_tree :
643644 console .print (benchmark_tree )
You can’t perform that action at this time.
0 commit comments