summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDave Henderson <dhenderson@gmail.com>2024-12-14 10:26:20 -0500
committerGitHub <noreply@github.com>2024-12-14 10:26:20 -0500
commit66fd58bff457fa2042109356ed897b3615f731e9 (patch)
tree26922d5926e12b9e9224829e2a59ca7c9be19f71 /Makefile
parentf4d969393c6482d2dece401f2685cc727f822374 (diff)
ci(bench): Add benchmark-action (#2283)
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 96cad9e9..1b54898e 100644
--- a/Makefile
+++ b/Makefile
@@ -159,6 +159,9 @@ test:
$(GO) test -race -coverprofile=c.out ./...
endif
+bench.txt: go.mod go.sum $(GO_FILES)
+ $(GO) test -benchmem -run=xxx -bench . ./... | tee $@
+
.SECONDEXPANSION:
testbin/%.test.exe: $$(shell $$(GO) list -f '{{.Dir}}' $$(subst testbin/,,$$(subst .test.exe,,$$@)))
@GOOS=windows GOARCH=amd64 $(GO) test -c -o $@ $<