From e1977d1cc86fe5b9e674c705ddcf27519ec8f0f6 Mon Sep 17 00:00:00 2001 From: Tom-the-Bomb Date: Fri, 15 Dec 2023 22:42:24 -0500 Subject: [PATCH] fix benching --- aoc-py/utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aoc-py/utils.py b/aoc-py/utils.py index cc1fa8b..1a530be 100644 --- a/aoc-py/utils.py +++ b/aoc-py/utils.py @@ -17,8 +17,10 @@ def run_day(day: int) -> None: line = '+-----+' + '-' * len(text) + '+' print(f'\n{line}\n| PY3 |{text}|\n{line}') + inp = get_input(day) + # benchmark and run start = perf_counter() - solution.run(get_input(day)) + solution.run(inp) end = perf_counter() print(line := f'Execution time: {(end - start) * 1000:.2f}ms')