Skip to content

Commit

Permalink
feat: Add benchmark target to Makefile (#320)
Browse files Browse the repository at this point in the history
Updates #45

Signed-off-by: Ian Lewis <[email protected]>
  • Loading branch information
Ian Lewis authored Aug 24, 2023
1 parent 09075ad commit 645b832
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,19 @@ ts-test: ## Run TypeScript unit tests.
make -C $$path unit-test; \
done

## Benchmarking
#####################################################################

.PHONY: go-benchmark
go-benchmark: ## Runs Go benchmarks.
@set -e;\
go mod vendor; \
extraargs=""; \
if [ "$(OUTPUT_FORMAT)" == "github" ]; then \
extraargs="-v"; \
fi; \
go test $$extraargs -bench=. -run=^# ./...

## Tools
#####################################################################

Expand Down

0 comments on commit 645b832

Please sign in to comment.