Skip to content

Commit d914a0f

Browse files
committed
easier to retrieve data
1 parent 4736fd7 commit d914a0f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

codeflash/code_utils/config_consts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
MIN_IMPROVEMENT_THRESHOLD = 0.05
66
MAX_TEST_FUNCTION_RUNS = 50
77
MAX_CUMULATIVE_TEST_RUNTIME_NANOSECONDS = 100e6 # 100ms
8-
N_TESTS_TO_GENERATE = 2
8+
N_TESTS_TO_GENERATE = 4
99
TOTAL_LOOPING_TIME = 10.0 # 10 second candidate benchmarking budget
1010
COVERAGE_THRESHOLD = 60.0

codeflash/optimization/function_optimizer.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1237,14 +1237,14 @@ def generate_and_instrument_tests(
12371237
Path(self.original_module_path),
12381238
self.test_cfg,
12391239
INDIVIDUAL_TESTCASE_TIMEOUT,
1240-
self.function_trace_id,#[:-4]+"TST0" if run_experiment else self.function_trace_id,
1240+
self.function_trace_id[:-4]+"TST0" if run_experiment else self.function_trace_id,
12411241
test_index,
12421242
test_path,
12431243
test_perf_path,
12441244
single_prompt=False,
12451245
)
12461246
for test_index, (test_path, test_perf_path) in enumerate(
1247-
zip(generated_test_paths, generated_perf_test_paths)
1247+
zip(generated_test_paths[:2], generated_perf_test_paths[:2])
12481248
)
12491249
]
12501250
if run_experiment:
@@ -1258,13 +1258,13 @@ def generate_and_instrument_tests(
12581258
Path(self.original_module_path),
12591259
self.test_cfg,
12601260
INDIVIDUAL_TESTCASE_TIMEOUT,
1261-
self.function_trace_id,#[:-4]+"TST1",
1261+
self.function_trace_id[:-4]+"TST1",
12621262
test_index,
12631263
test_path,
12641264
test_perf_path,
12651265
single_prompt=True,
12661266
)
12671267
for test_index, (test_path, test_perf_path) in enumerate(
1268-
zip(generated_test_paths, generated_perf_test_paths)
1268+
zip(generated_test_paths[2:], generated_perf_test_paths[2:])
12691269
)]
12701270
return original

0 commit comments

Comments
 (0)