Bump golang.org/x/sync from 0.6.0 to 0.7.0 #401
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
name: Benchmark | |
on: pull_request | |
jobs: | |
benchmark: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: "^1.22" | |
- name: Checkout Code (Previous) | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.base_ref }} | |
path: previous | |
- name: Checkout Code (New) | |
uses: actions/checkout@v3 | |
with: | |
path: new | |
- name: Install Dependencies | |
run: go install golang.org/x/perf/cmd/benchstat@latest | |
- name: Run Benchmark (Previous) | |
run: | | |
cd previous | |
make bench | |
- name: Run Benchmark (New) | |
run: | | |
cd new | |
make bench | |
- name: Run Benchstat | |
run: | | |
benchstat previous/tmp/bench.txt new/tmp/bench.txt |