Skip to content

Commit

Permalink
Add Go benchmark test (#3004)
Browse files Browse the repository at this point in the history
Run the benchmarks once for each PR.

Fixes #2984

Signed-off-by: Wenqi Qiu <wenqiq@vmware.com>
  • Loading branch information
wenqiq authored Nov 16, 2021
1 parent ce63b96 commit 363f2d8
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,3 +183,16 @@ jobs:
run: |
sudo npm install -g markdownlint-cli
make markdownlint
benchmark:
name: Go benchmark test
runs-on: [ubuntu-latest]
steps:
- name: Set up Go 1.17
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Check-out code
uses: actions/checkout@v2
- name: Run Go benchmark test
run: go test -run '^$' -bench . -benchtime 1x -timeout 10m -cpu 4 -v -benchmem ./pkg/...

0 comments on commit 363f2d8

Please sign in to comment.