Bump golang.org/x/sys from 0.0.0-20211216021012-1d35b9e2eb4e to 0.15.0 #403
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow runs benchmarks against the current branch, | |
# compares them to benchmarks against master, | |
# and uploads the results as an artifact. | |
name: benchstat | |
on: [pull_request] | |
jobs: | |
incoming: | |
runs-on: ubuntu-latest | |
services: | |
redis: | |
image: redis | |
ports: | |
- 6379:6379 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.16.x | |
- name: Benchmark | |
run: go test -run=^$ -bench=. -count=5 -timeout=60m ./... | tee -a new.txt | |
- name: Upload Benchmark | |
uses: actions/upload-artifact@v2 | |
with: | |
name: bench-incoming | |
path: new.txt | |
current: | |
runs-on: ubuntu-latest | |
services: | |
redis: | |
image: redis | |
ports: | |
- 6379:6379 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
ref: master | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.15.x | |
- name: Benchmark | |
run: go test -run=^$ -bench=. -count=5 -timeout=60m ./... | tee -a old.txt | |
- name: Upload Benchmark | |
uses: actions/upload-artifact@v2 | |
with: | |
name: bench-current | |
path: old.txt | |
benchstat: | |
needs: [incoming, current] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.15.x | |
- name: Install benchstat | |
run: go get -u golang.org/x/perf/cmd/benchstat | |
- name: Download Incoming | |
uses: actions/download-artifact@v2 | |
with: | |
name: bench-incoming | |
- name: Download Current | |
uses: actions/download-artifact@v2 | |
with: | |
name: bench-current | |
- name: Benchstat Results | |
run: benchstat old.txt new.txt | tee -a benchstat.txt | |
- name: Upload benchstat results | |
uses: actions/upload-artifact@v2 | |
with: | |
name: benchstat | |
path: benchstat.txt |