Skip to content

Merge pull request #331 from timbray/version-1.2 #443

Merge pull request #331 from timbray/version-1.2

Merge pull request #331 from timbray/version-1.2 #443

Workflow file for this run

name: Benchmarks
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
benchmark:
name: Benchmarks
strategy:
matrix:
go-version: ["1.19"]
platform: ["ubuntu-latest"]
runs-on: ${{ matrix.platform }}
timeout-minutes: 10
steps:
- name: Checkout repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
with:
go-version: ${{ matrix.go-version }}
id: go
- name: Run benchmark
run: go test -benchmem -run="^$" -bench "^Benchmark" . quamina.net/go/quamina | tee output.txt
- name: Download previous benchmark data
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
with:
path: ./cache
key: ${{ runner.os }}-benchmark
- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@4de1bed97a47495fc4c5404952da0499e31f5c29
with:
name: Go Benchmark
tool: "go"
# Compare results against json from cache
output-file-path: output.txt
external-data-json-path: ./cache/benchmark-data.json
# print job summary in workflow output
summary-always: true
# Alert on regression
alert-threshold: "120%"
fail-on-alert: true
comment-on-alert: false
# Disable github pages, for now.
auto-push: false