Skip to content

🌱 add benchmark pipeline #4

🌱 add benchmark pipeline

🌱 add benchmark pipeline #4

Workflow file for this run

name: Benchmark Test
on:
pull_request:
branches:
- main
jobs:
benchmark:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Install dependencies
run: |
go mod download
- name: Run benchmark
working-directory: test/e2e
run: |
pwd
ls -la
go version
go env
go clean -testcache
go test -v -run=^$ -bench=. -benchmem -count=10
- name: Compare with baseline
run: |
go install golang.org/x/perf/cmd/benchstat@latest
benchstat benchmarks/baseline.txt new.txt