mirror of
https://github.com/codeflash-ai/codeflash.git
synced 2026-05-04 18:25:17 +00:00
make the bubble sort min performance gain much lower
This commit is contained in:
parent
e7df463977
commit
bfaff1af7a
4 changed files with 8 additions and 7 deletions
|
|
@ -46,9 +46,9 @@ def main():
|
|||
improvement_x = float(improvement_pct) / 100
|
||||
|
||||
assert (
|
||||
improvement_pct > 30000
|
||||
), f"Performance improvement percentage was {improvement_pct}, which was not above 30,000%"
|
||||
assert improvement_x > 300, f"Performance improvement rate was {improvement_x}x, which was not above 300x"
|
||||
improvement_pct > 300
|
||||
), f"Performance improvement percentage was {improvement_pct}, which was not above 300%"
|
||||
assert improvement_x > 3, f"Performance improvement rate was {improvement_x}x, which was not above 3x"
|
||||
|
||||
# Check for the line indicating the number of discovered existing unit tests
|
||||
unit_test_search = re.search(
|
||||
|
|
|
|||
|
|
@ -46,9 +46,9 @@ def main():
|
|||
improvement_x = float(improvement_pct) / 100
|
||||
|
||||
assert (
|
||||
improvement_pct > 3000
|
||||
), f"Performance improvement percentage was {improvement_pct}, which was not above 3,000%"
|
||||
assert improvement_x > 30, f"Performance improvement rate was {improvement_x}x, which was not above 30x"
|
||||
improvement_pct > 300
|
||||
), f"Performance improvement percentage was {improvement_pct}, which was not above 300%"
|
||||
assert improvement_x > 3, f"Performance improvement rate was {improvement_x}x, which was not above 3x"
|
||||
|
||||
# Check for the line indicating the number of discovered existing unit tests
|
||||
unit_test_search = re.search(
|
||||
|
|
|
|||
|
|
@ -15,7 +15,8 @@ def main():
|
|||
command = [
|
||||
"python",
|
||||
"../../../codeflash/main.py",
|
||||
"--all",
|
||||
"--file",
|
||||
"src/aviary/common_tags.py",
|
||||
"--no-pr",
|
||||
]
|
||||
process = subprocess.Popen(
|
||||
|
|
|
|||
Loading…
Reference in a new issue