Benchmark run 'chore/bench-restart-time' #6
Workflow file for this run
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
name: Benchmark | |
run-name: "Benchmark run '${{ github.head_ref || github.ref_name }}'" | |
on: | |
workflow_dispatch: | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
store_bench: | |
name: Run Store Benchmark | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install latest stable Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- name: Cache dependencies | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cargo/registry | |
~/.cargo/git | |
target | |
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
- name: Run Store Benchmark | |
run: cargo bench --bench store_bench | |
load_bench: | |
name: Run Load Benchmark | |
runs-on: [runner-amd64-2xlarge] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install latest stable Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- name: Cache dependencies | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cargo/registry | |
~/.cargo/git | |
target | |
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
- name: Run Load Benchmark | |
run: cargo bench --bench load_bench |