From e7b127ea0100355bf4b22f181625b1fdd7b4f18d Mon Sep 17 00:00:00 2001 From: Lars Martens Date: Mon, 9 Dec 2024 23:13:59 +0100 Subject: [PATCH] Add benchmark recipe --- justfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/justfile b/justfile index 49e9dad..b6fd480 100644 --- a/justfile +++ b/justfile @@ -13,6 +13,10 @@ run: RUSTFLAGS=-Awarnings cargo build --release --bin {{day}} time ./target/release/{{day}} +bench: + RUSTFLAGS=-Awarnings cargo build --release --bin {{day}} + hyperfine --warmup 5 ./target/release/{{day}} + # Begin working on todays problem. # Downloads input, creates template and opens the problem and code. begin: _folders