feat: Time+memory tracking
This commit is contained in:
parent
59722acf76
commit
ee4d94e157
7 changed files with 456 additions and 0 deletions
12
benchmark.py
Normal file
12
benchmark.py
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
from main import main
|
||||
from src.utils.benchmark import execute_benchmark
|
||||
from src.utils.benchmark_dataclasses import BenchmarkItem
|
||||
|
||||
|
||||
def benchmark():
|
||||
# Just calling `main` is the easiest way to allow all functionality
|
||||
execute_benchmark(benchmark_item=BenchmarkItem(task=main, arguments={}), results_dir="results")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
benchmark()
|
||||
Reference in a new issue