Skip to content

Add time CLI utility to supported benchmark tools #2

Add time CLI utility to supported benchmark tools

Add time CLI utility to supported benchmark tools #2

Workflow file for this run

name: Time (CLI utility) Example
on:
push:
branches:
- master
pull_request:
branches:
- master
permissions:
contents: write
deployments: write
jobs:
benchmark:
name: Run Some silly benchmark under `time`
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run some silly benchmark with time
run: (time (head --bytes=1000000000 /dev/random >/dev/null)) 2>&1 | tee output.txt
- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
with:

Check failure on line 26 in .github/workflows/time.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/time.yml

Invalid workflow file

You have an error in your yaml syntax on line 26
name: Time Benchmark
tool: 'time'
output-file-path: output.txt
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: true
# Show alert with commit comment on detecting possible performance regression
alert-threshold: '200%'
comment-on-alert: true
fail-on-alert: true
alert-comment-cc-users: '@ktrz','@henrikingo'
- name: Store benchmark result - separate results repo
uses: benchmark-action/github-action-benchmark@v1
with:
name: Time Benchmark
tool: 'time'
output-file-path: output.txt
github-token: ${{ secrets.BENCHMARK_ACTION_BOT_TOKEN }}
auto-push: true
# Show alert with commit comment on detecting possible performance regression
alert-threshold: '200%'
comment-on-alert: true
fail-on-alert: true
alert-comment-cc-users: '@ktrz','@henrikingo'
gh-repository: 'github.com/benchmark-action/github-action-benchmark-results'