This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from timeit import repeat | |
from statistics import mean | |
# If you wanna test the execution time | |
def runAlgorithm(maze, start, end): | |
setup_code = "from __main__ import aStar" | |
stmt = f"aStar({maze},{start},{end})" | |
times = repeat(setup=setup_code, stmt=stmt, repeat=3, number=10000) |