Refactor builtin.Function and move builtin funcs to builtin package #100
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
name: diff | |
on: | |
pull_request: | |
branches: [ master ] | |
jobs: | |
bench: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Go 1.19 | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.19 | |
- name: Install benchstat | |
run: go install golang.org/x/perf/cmd/benchstat@latest | |
- uses: actions/checkout@v2 | |
- name: Benchmark new code | |
run: go test -bench=. -benchmem -run=^$ -count=10 -timeout=30m | tee /tmp/new.txt | |
- name: Checkout master | |
uses: actions/checkout@v2 | |
with: | |
ref: master | |
- name: Benchmark master | |
run: go test -bench=. -benchmem -run=^$ -count=10 -timeout=30m | tee /tmp/old.txt | |
- name: Diff | |
run: benchstat /tmp/old.txt /tmp/new.txt |