From 9adba5e0346142c5da2a55d270ce438b7cb3b9c2 Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Sat, 4 Dec 2021 22:23:18 -0500 Subject: [PATCH] Add benchmark for day 1 --- day1/Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 day1/Makefile diff --git a/day1/Makefile b/day1/Makefile new file mode 100644 index 0000000..b8ebb9f --- /dev/null +++ b/day1/Makefile @@ -0,0 +1,9 @@ +.PHONY: bench-build bench-run + +bench-build: + hyperfine -p 'rm -f bin/main' -c 'rm -f bin/main' 'rustc --out-dir bin/ main.rs' + hyperfine -p 'rm -rf zig-out/ zig-cache/' -c 'rm -rf zig-out/ zig-cache/' '~/src/misc/zig/build/zig build' + +bench: + hyperfine -p 'rustc --out-dir bin/ main.rs' ./bin/main + hyperfine -p '~/src/misc/zig/build/zig build' ./zig-out/bin/day1