From 0cefb5fd0b989fcaefc775a6d2522b26b3a06405 Mon Sep 17 00:00:00 2001 From: Nicholas Novak <34256932+NickyBoy89@users.noreply.github.com> Date: Tue, 5 Dec 2023 13:12:31 -0800 Subject: [PATCH] feat: Added bench subcommand to Makefile --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index fd5b9f8..b0f88d8 100644 --- a/Makefile +++ b/Makefile @@ -16,6 +16,10 @@ witchcraft-save: mkdir witchcraft-save ./spatial-db load worldsave "saves/Witchcraft/region" --output "witchcraft-save" +.PHONY: bench +bench: + go test -bench . -benchtime=10s -count 10 + .PHONY: clean clean: rm -r $(SAVES)