📉 Run Go benchmarks, publish results to an interactive web app, and check for performance regressions in your pull requests
MIT License
Full Changelog: https://github.com/bobheadxi/gobenchdata/compare/v1...v1.3.1
Published by bobheadxi almost 2 years ago
Full Changelog: https://github.com/bobheadxi/gobenchdata/compare/v1.2.2...v1.3.0
Published by bobheadxi almost 2 years ago
Full Changelog: https://github.com/bobheadxi/gobenchdata/compare/v1...v1.2.2
Published by bobheadxi over 2 years ago
Full Changelog: https://github.com/bobheadxi/gobenchdata/compare/v1...v1.2.1
Published by bobheadxi over 2 years ago
Full Changelog: https://github.com/bobheadxi/gobenchdata/compare/v1...v1.2.0
Published by bobheadxi over 2 years ago
Full Changelog: https://github.com/bobheadxi/gobenchdata/compare/v1...v1.1.0
Published by bobheadxi over 2 years ago
For more details about recent changes, see the v1.0.0 release.
mem.BytesPerOp
, mem.AllocsPerOp
as float64
by @bobheadxi in https://github.com/bobheadxi/gobenchdata/pull/58 - this fixes checks defined on mem.BytesPerOp
and mem.AllocsPerOp
involving division incorrectly evaluating to a truncated integer value.Full Changelog: https://github.com/bobheadxi/gobenchdata/compare/v1...v1.0.4
Published by bobheadxi over 2 years ago
For more details about recent changes, see the v1.0.0 release.
Full Changelog: https://github.com/bobheadxi/gobenchdata/compare/v1...v1.0.3
Published by bobheadxi almost 3 years ago
For more details about recent changes, see the v1.0.0 release.
Full Changelog: https://github.com/bobheadxi/gobenchdata/compare/v1.0.1...v1.0.2
Published by bobheadxi over 4 years ago
This release fixes a bug where checks would fail when no base benchmarks have been recorded.
For more details about recent changes, see the v1.0.0 release.
Published by bobheadxi over 4 years ago
This release brings some big new features :)
PUBLISH: true
must now be set to enable publishing
gobenchdata
please pin your workflow to use bobheadxi/[email protected]
!PUBLISH_REPO
and PUBLISH_BRANCH
(just make sure env.GITHUB_TOKEN
has the necessary permissions)
gh-pages
branch) - name: gobenchdata publish
uses: bobheadxi/gobenchdata@v1
with:
PRUNE_COUNT: 30
PUBLISH: true
PUBLISH_REPO: bobheadxi/gobenchdata-v1-demo
PUBLISH_BRANCH: master
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
You can now define checks on benchmark results and check for regressions in pull requests.
gobenchdata-checks.yml
- get started with gobenchdata checks generate
diff: (current.NsPerOp-base.NsPerOp) / base.NsPerOp * 100
thresholds:
max: 10
gobenchdata checks eval
- output can be output nicely with --checks.pretty
, or saved with --json
gobenchdata checks report
- name: gobenchdata checks
uses: bobheadxi/gobenchdata@v1
with:
GO_TEST_FLAGS: -cpu 1,2
CHECKS: true
CHECKS_CONFIG: ./demo/gobenchdata-checks.yml
PUBLISH_BRANCH: master
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
The web application has been rewritten from the ground up!
gobenchdata
CLI
gobenchdata web serve
!gobenchdata web generate ./app
gobenchdata-web.yml
configuration format- uses: bobheadxi/[email protected]
+ uses: bobheadxi/gobenchdata@v1
with:
+ PUBLISH: true
Copy the title and description you are using to a temporary file. Delete app.js
, index.html
, style.css
. Then:
go get -u go.bobheadxi.dev/gobenchdata
gobenchdata web generate . --web.title="My title"
Then, in gobenchdata-web.yml
, add your description to the description
field. Without configuring any chartGroups
, the web app should generate similar charts to before - to start customizing, add some entries to chartGroups
!
Published by bobheadxi over 4 years ago
Published by bobheadxi over 4 years ago
Published by bobheadxi about 5 years ago
This release is a pretty significant update that brings the gobenchdata
action in line with the new GitHub Actions features and format! 🎉 Highlights of this release include:
inputs
rather than env
, as defined in action.yml
SUBDIRECTORY
Benchmark.Custom
)--charts-types
option (e.g. -c bytes/op,allocs/op,custom/op
)--source
and --canonical-import
For more details refer to the full diff.
Published by bobheadxi over 5 years ago
The new import path is now:
go get go.bobheadxi.dev/gobenchdata/...
Published by bobheadxi over 5 years ago
--desc
)Published by bobheadxi over 5 years ago
--prune
option (in the Action, PRUNE
) for automatically removing old benchmarks--desc
option when generating app--root-import
option to allow:all changes: diff
Published by bobheadxi over 5 years ago
Fix up a typo in the description. OOps