Skip to content

Add unmarshall benchmarks #1

Add unmarshall benchmarks

Add unmarshall benchmarks #1

Workflow file for this run

name: Validate Driver
permissions:
contents: read
pull-requests: read
checks: write
on:
pull_request:
paths:
- ".github/workflows/pr-validate-driver.yml"
- "**.go"
- "go.mod"
- "go.sum"
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: latest
cache: true
- name: Install tools
run: |
go install golang.org/x/tools/cmd/goimports@latest
- name: Run Benchmark
run: go test -bench=. ./... -benchmem | tee output.txt
- name: Download previous benchmark data
uses: actions/cache@v4
with:
path: ./cache
key: ${{ runner.os }}-latest-benchmark
- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
with:
name: Go Benchmark
tool: 'go'
output-file-path: output.txt
external-data-json-path: ./cache/benchmark-data.json
github-token: ${{ secrets.GITHUB_TOKEN }}
alert-threshold: '120%'
comment-always: true
fail-on-alert: true