Skip to content

Commit cfcbae5

Browse files
style: remove duplicate comments introduced by optimization
1 parent 4e07c98 commit cfcbae5

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

codeflash/benchmarking/utils.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ def validate_and_format_benchmark_table(
2121
function_benchmark_timings: dict[str, dict[BenchmarkKey, float]], total_benchmark_timings: dict[BenchmarkKey, float]
2222
) -> dict[str, list[tuple[BenchmarkKey, float, float, float]]]:
2323
function_to_result = {}
24-
# Process each function's benchmark data
2524
scale = 1_000_000.0
26-
# Process each function's benchmark data
2725
for func_path, test_times in function_benchmark_timings.items():
2826
# Sort by percentage (highest first)
2927
sorted_tests = []
@@ -36,8 +34,6 @@ def validate_and_format_benchmark_table(
3634
logger.debug(
3735
f"Skipping test {benchmark_key} due to func_time {func_time} > total_time {total_time}"
3836
)
39-
# If the function time is greater than total time, likely to have multithreading / multiprocessing issues.
40-
# Do not try to project the optimization impact for this function.
4137
sorted_tests.append((benchmark_key, 0.0, 0.0, 0.0))
4238
elif total_time > 0:
4339
percentage = (func_time / total_time) * 100

0 commit comments

Comments
 (0)