Skip to content

Commit db96393

Browse files
typo
1 parent a664330 commit db96393

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

codeflash/optimization/function_optimizer.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)