mirror of
https://github.com/onyx-and-iris/aoc2024.git
synced 2026-04-08 18:13:36 +00:00
add bench to makefile
This commit is contained in:
@@ -8,7 +8,7 @@ EXE := $(BIN_DIR)/$(program)
|
||||
|
||||
.DEFAULT_GOAL := build
|
||||
|
||||
.PHONY: fmt vet build clean
|
||||
.PHONY: fmt vet build bench clean
|
||||
fmt:
|
||||
$(GO) fmt ./...
|
||||
|
||||
@@ -18,6 +18,9 @@ vet: fmt
|
||||
build: vet | $(BIN_DIR)
|
||||
$(GO) build -o $(EXE) .
|
||||
|
||||
bench:
|
||||
$(GO) test . -test.count=10 -bench=. > benchmark
|
||||
|
||||
$(BIN_DIR):
|
||||
@mkdir -p $@
|
||||
|
||||
|
||||
Reference in New Issue
Block a user