Add benchmark for day 1

This commit is contained in:
Kienan Stewart 2021-12-04 22:23:18 -05:00
parent fdc4238e8d
commit 9adba5e034
1 changed files with 9 additions and 0 deletions

9
day1/Makefile Normal file
View File

@ -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