1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-01-26 03:52:03 +02:00

42 lines
1.1 KiB
YAML
Raw Normal View History

name: Benchmark
on:
push:
tags:
- v1.*
workflow_dispatch:
env:
DEFAULT_GO_VERSION: "~1.22.5"
jobs:
benchmark:
name: Benchmarks
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.DEFAULT_GO_VERSION }}
check-latest: true
cache-dependency-path: "**/go.sum"
- name: Run benchmarks
run: make benchmark | tee output.txt
- name: Download previous benchmark data
uses: actions/cache@v4
with:
path: ./benchmarks
key: ${{ runner.os }}-benchmark
- name: Store benchmarks result
chore(deps): update benchmark-action/github-action-benchmark action to v1.20.3 (#5381) [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [benchmark-action/github-action-benchmark](https://togithub.com/benchmark-action/github-action-benchmark) | action | patch | `v1.20.1` -> `v1.20.3` | --- ### Release Notes <details> <summary>benchmark-action/github-action-benchmark (benchmark-action/github-action-benchmark)</summary> ### [`v1.20.3`](https://togithub.com/benchmark-action/github-action-benchmark/blob/HEAD/CHANGELOG.md#v1203---19-May-2024) [Compare Source](https://togithub.com/benchmark-action/github-action-benchmark/compare/v1.20.2...v1.20.3) - **fix** Catch2 v.3.5.0 changed output format ([#&#8203;247](https://togithub.com/benchmark-action/github-action-benchmark/issues/247)) ### [`v1.20.2`](https://togithub.com/benchmark-action/github-action-benchmark/blob/HEAD/CHANGELOG.md#v1202---19-May-2024) [Compare Source](https://togithub.com/benchmark-action/github-action-benchmark/compare/v1.20.1...v1.20.2) - **fix** Support sub-nanosecond precision on Cargo benchmarks ([#&#8203;246](https://togithub.com/benchmark-action/github-action-benchmark/issues/246)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/open-telemetry/opentelemetry-go). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNjMuNSIsInVwZGF0ZWRJblZlciI6IjM3LjM2My41IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJTa2lwIENoYW5nZWxvZyIsImRlcGVuZGVuY2llcyJdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-20 17:11:40 -07:00
uses: benchmark-action/github-action-benchmark@v1.20.3
with:
name: Benchmarks
tool: 'go'
output-file-path: output.txt
external-data-json-path: ./benchmarks/data.json
github-token: ${{ secrets.GITHUB_TOKEN }}
gh-pages-branch: benchmarks
2024-03-28 09:50:27 +01:00
fail-on-alert: true
alert-threshold: "400%"
# Add benchmark summary to GitHub workflow run report
summary-always: true