Merge pull request #852 from codeflash-ai/run-functions-50-times-max
Run small functions a max of 50 times.
This commit is contained in:
commit
d5fc6b0d12
2 changed files with 5 additions and 5 deletions
|
|
@ -3,5 +3,5 @@ INDIVIDUAL_TESTCASE_TIMEOUT = 15
|
|||
MAX_FUNCTION_TEST_SECONDS = 60
|
||||
N_CANDIDATES = 10
|
||||
MIN_IMPROVEMENT_THRESHOLD = 0.05
|
||||
MAX_TEST_FUNCTION_RUNS = 30
|
||||
MAX_TEST_FUNCTION_RUNS = 50
|
||||
MAX_CUMULATIVE_TEST_RUNTIME_NANOSECONDS = 100e6 # 100ms
|
||||
|
|
|
|||
|
|
@ -49,11 +49,11 @@ def main():
|
|||
improvement_x = float(m.group(2).replace(",", ""))
|
||||
|
||||
assert (
|
||||
improvement_pct > 10
|
||||
), f"Performance improvement percentage was {improvement_pct}, which was not above 10%"
|
||||
improvement_pct > 5
|
||||
), f"Performance improvement percentage was {improvement_pct}, which was not above 5%"
|
||||
assert (
|
||||
improvement_x > 0.10
|
||||
), f"Performance improvement rate was {improvement_x}x, which was not above 0.1x"
|
||||
improvement_x > 0.05
|
||||
), f"Performance improvement rate was {improvement_x}x, which was not above 0.05x"
|
||||
|
||||
# Check for the line indicating the number of discovered existing unit tests
|
||||
unit_test_search = re.search(
|
||||
|
|
|
|||
Loading…
Reference in a new issue