2021-02-07 20:33:53 +00:00
|
|
|
name: Benchmark
|
2020-01-22 21:23:53 +00:00
|
|
|
|
2020-07-21 23:28:33 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
2020-01-22 21:23:53 +00:00
|
|
|
|
2022-11-04 00:42:22 +00:00
|
|
|
permissions:
|
2023-03-15 13:32:55 +00:00
|
|
|
contents: read # to fetch code (actions/checkout)
|
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
2022-11-04 00:42:22 +00:00
|
|
|
|
2020-01-22 21:23:53 +00:00
|
|
|
jobs:
|
|
|
|
check_benchmark:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2023-03-11 23:19:03 +00:00
|
|
|
- uses: actions/checkout@v3
|
2020-01-22 21:23:53 +00:00
|
|
|
|
|
|
|
- name: Install Rust
|
2023-04-23 19:46:57 +00:00
|
|
|
run: |
|
|
|
|
rustup set profile minimal
|
|
|
|
rustup install nightly
|
|
|
|
rustup override set nightly
|
2020-01-22 21:23:53 +00:00
|
|
|
|
|
|
|
- name: Check benchmark
|
2023-04-23 19:46:57 +00:00
|
|
|
run: cargo bench --bench=server -- --sample-size=15
|