Skip to content

Commit a41d7cf

Browse files
authored
Merge pull request #861 from codeflash-ai/limit-benchmark-looping
speed up the benchmarking loop for certain cases
2 parents 0018e59 + 3e9cf7b commit a41d7cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codeflash/optimization/function_optimizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1886,7 +1886,7 @@ def run_and_parse_tests(
18861886
*,
18871887
enable_coverage: bool = False,
18881888
pytest_min_loops: int = 5,
1889-
pytest_max_loops: int = 100_000,
1889+
pytest_max_loops: int = 250,
18901890
code_context: CodeOptimizationContext | None = None,
18911891
unittest_loop_index: int | None = None,
18921892
line_profiler_output_file: Path | None = None,

0 commit comments

Comments
 (0)