Continuous Benchmarking GitHub Action
gobenchdata is a tool for inspecting
go test -bench data, a GitHub Action for continuous benchmarking, and a web app for performance visualization.
- a CLI for converting Go benchmark data in JSON as well as saving, merging, and managing datasets of benchmark runs
- a GitHub Action that allows simple setup of continuous benchmarking
- a CLI for generating a web app that instantly provides a visualization of your benchmark performance over time
Setup for the Action is very simple:
name: Benchmark on: push: branches: [ master ] jobs: benchmark: runs-on: ubuntu-latest steps: - name: checkout uses: actions/checkout@v1 with: fetch-depth: 1 - name: gobenchdata to gh-pages uses: firstname.lastname@example.org with: PRUNE_COUNT: 30 GO_TEST_FLAGS: -cpu 1,2 env: GITHUB_TOKEN: $
Then, a user can simply run
gobenchdata-web to generate a web app that they can commit to their
gh-pages branch, as demonstrated here.
Drop by the repository to learn more!