Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/perf.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Automation - Performance

on:
workflow_dispatch:


jobs:
runperf:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ~1.19.10

- name: Run benchmark
run: make gobenchmark

- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
with:
tool: 'go'
output-file-path: benchmarks.txt
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ coverage.out
coverage.txt
coverage.html

# Benchmarks
benchmarks.txt

# Wix
*.wixobj
*.wixpdb
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ gotest:
.PHONY: gobenchmark
gobenchmark:
@$(MAKE) for-all-target TARGET="benchmark"
cat `find . -name benchmarks.txt` > benchmarks.txt

.PHONY: gotest-with-cover
gotest-with-cover: $(GOCOVMERGE)
Expand Down
2 changes: 1 addition & 1 deletion Makefile.Common
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ test-with-cover: $(GO_ACC)

.PHONY: benchmark
benchmark:
$(GOTEST) -bench=. -run=notests ./...
$(GOTEST) -bench=. -run=notests ./... | tee benchmarks.txt

.PHONY: fmt
fmt: $(GOIMPORTS)
Expand Down