feat: Added bench subcommand to Makefile

This commit is contained in:
Nicholas Novak 2023-12-05 13:12:31 -08:00
parent cd06c19473
commit 0cefb5fd0b

View File

@ -16,6 +16,10 @@ witchcraft-save:
mkdir witchcraft-save mkdir witchcraft-save
./spatial-db load worldsave "saves/Witchcraft/region" --output "witchcraft-save" ./spatial-db load worldsave "saves/Witchcraft/region" --output "witchcraft-save"
.PHONY: bench
bench:
go test -bench . -benchtime=10s -count 10
.PHONY: clean .PHONY: clean
clean: clean:
rm -r $(SAVES) rm -r $(SAVES)