Skip to content

refactor: use static vec instead of lazy cell (#11) #27

refactor: use static vec instead of lazy cell (#11)

refactor: use static vec instead of lazy cell (#11) #27

Workflow file for this run

name: Benchmark
on:
workflow_dispatch:
pull_request:
types: [opened, synchronize]
paths:
- '**/*.rs'
- 'Cargo.lock'
- '.github/workflows/benchmark.yml'
push:
branches:
- main
paths:
- '**/*.rs'
- 'Cargo.lock'
- '.github/workflows/benchmark.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
defaults:
run:
shell: bash
jobs:
benchmark:
name: Benchmark
runs-on: ubuntu-latest
steps:
- uses: taiki-e/checkout-action@v1
- uses: Boshen/setup-rust@main
with:
cache-key: benchmark
save-cache: ${{ github.ref_name == 'main' }}
tools: cargo-codspeed
- name: Build benchmark
run: cargo codspeed build --features codspeed
- name: Run benchmark
uses: CodSpeedHQ/action@v2
timeout-minutes: 15
with:
run: cargo codspeed run
token: ${{ secrets.CODSPEED_TOKEN }}