From 03ebc5a5cf8326cd742af6598f2e0980449e41ba Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Sat, 4 Dec 2021 22:32:20 -0500 Subject: [PATCH] Benchmark rebuilds on day 1 --- day1/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/day1/Makefile b/day1/Makefile index b8ebb9f..9887c5c 100644 --- a/day1/Makefile +++ b/day1/Makefile @@ -1,9 +1,13 @@ -.PHONY: bench-build bench-run +.PHONY: bench-build bench-rebuild bench 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-rebuild: + hyperfine 'rustc --out-dir bin/ main.rs' + hyperfine '~/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