Skip to content

Commit

Permalink
ci: bring back daily benchmarks (#777)
Browse files Browse the repository at this point in the history
* ci: bring back daily benchmarks

* remove ugly spaces
  • Loading branch information
niklasad1 authored May 20, 2022
1 parent f3a3603 commit 00aeb4e
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Benchmarks

on:
schedule:
- cron: "0 0 * * *"

jobs:
bench:
name: Run benchmarks daily
runs-on: ubuntu-latest
steps:

- name: Checkout Sources
uses: actions/checkout@v2.4.0

- name: Install Rust nightly toolchain
uses: actions-rs/toolchain@v1.0.7
with:
profile: minimal
toolchain: nightly
override: true

- name: Rust Cache
uses: Swatinem/rust-cache@v1.3.0

- name: Run benchmark
run: cargo bench -p jsonrpsee-benchmarks -- --output-format bencher | tee output.txt

- name: Store benchmark result
uses: rhysd/github-action-benchmark@v1
with:
tool: 'cargo'
output-file-path: output.txt
benchmark-data-dir-path: "bench/dev"
fail-on-alert: true
github-token: ${{ secrets.GITHUB_TOKEN }}
comment-on-alert: true
alert-comment-cc-users: '@niklasad1'
auto-push: true

3 comments on commit 00aeb4e

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 2.

Benchmark suite Current: 00aeb4e Previous: b41acab Ratio
subscriptions/unsub 4981 ns/iter (± 1147) 1163 ns/iter (± 116) 4.28

This comment was automatically generated by workflow using github-action-benchmark.

CC: @niklasad1

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 2.

Benchmark suite Current: 00aeb4e Previous: b41acab Ratio
subscriptions/subscribe 182934 ns/iter (± 31233) 90263 ns/iter (± 2044) 2.03
subscriptions/unsub 5931 ns/iter (± 1505) 1163 ns/iter (± 116) 5.10

This comment was automatically generated by workflow using github-action-benchmark.

CC: @niklasad1

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 2.

Benchmark suite Current: 00aeb4e Previous: b41acab Ratio
subscriptions/unsub 4788 ns/iter (± 658) 1163 ns/iter (± 116) 4.12

This comment was automatically generated by workflow using github-action-benchmark.

CC: @niklasad1

Please sign in to comment.