Skip to content

Move to traits to avoid unnecessary allocs #84

Move to traits to avoid unnecessary allocs

Move to traits to avoid unnecessary allocs #84

Workflow file for this run

name: benches
on:
push:
branches:
- "main"
pull_request:
# `workflow_dispatch` allows CodSpeed to trigger backtest
# performance analysis in order to generate initial data.
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number || github.sha }}-benches
cancel-in-progress: true
jobs:
benchmarks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rust-src
- uses: Swatinem/rust-cache@v2
continue-on-error: true
- name: Install cargo-codspeed
run: cargo install cargo-codspeed
- name: Build the benchmark target(s)
run: cargo codspeed build --features tfidf,textrank
- name: Run the benchmarks
uses: CodSpeedHQ/action@v2
with:
run: cargo codspeed run
token: ${{ secrets.CODSPEED_TOKEN }}