-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: bring back daily benchmarks (#777)
* ci: bring back daily benchmarks * remove ugly spaces
- Loading branch information
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
00aeb4e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible performance regression was detected for benchmark.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold
2
.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
00aeb4e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible performance regression was detected for benchmark.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold
2
.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
00aeb4e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible performance regression was detected for benchmark.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold
2
.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