mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-07 07:27:45 -04:00
41 lines
1005 B
YAML
41 lines
1005 B
YAML
name: Benchmarks
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "main"
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
benchmarks:
|
|
name: Run Benchmarks
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
benchmark:
|
|
- crypto_bench
|
|
- event_cache
|
|
- linked_chunk
|
|
- store_bench
|
|
- timeline
|
|
|
|
steps:
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
|
|
|
- name: Setup rust toolchain, cache and cargo-codspeed binary
|
|
uses: moonrepo/setup-rust@ede6de059f8046a5e236c94046823e2af11ca670
|
|
with:
|
|
channel: stable
|
|
cache-target: release
|
|
bins: cargo-codspeed
|
|
|
|
- name: Build the benchmark target(s)
|
|
run: cargo codspeed build -p benchmarks ${{ matrix.benchmark }} --features codspeed
|
|
|
|
- name: Run the benchmarks
|
|
uses: CodSpeedHQ/action@0b6e7a3d96c9d2a6057e7bcea6b45aaf2f7ce60b
|
|
with:
|
|
run: cargo codspeed run
|
|
token: ${{ secrets.CODSPEED_TOKEN }}
|