make the bubble sort min performance gain much lower

This commit is contained in:
Saurabh Misra 2024-10-23 21:02:29 -07:00
parent e7df463977
commit bfaff1af7a
4 changed files with 8 additions and 7 deletions

View file

@ -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(

View file

@ -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(

View file

@ -15,7 +15,8 @@ def main():
command = [
"python",
"../../../codeflash/main.py",
"--all",
"--file",
"src/aviary/common_tags.py",
"--no-pr",
]
process = subprocess.Popen(