Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ on:
push:
branches: [main]
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
workflow_dispatch:
types: [opened, synchronize, reopened]

permissions:
contents: read
Expand All @@ -20,6 +19,8 @@ jobs:
name: Run benchmarks
runs-on: codspeed-macro-arm64-graviton-ubuntu-22-04
timeout-minutes: 10
env:
ZSTD_CLEVEL: "1"
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
Expand All @@ -30,6 +31,11 @@ jobs:
uses: actions-rust-lang/setup-rust-toolchain@ecabd13d1c56bd1345c230e542e9144811ad706f # v2.0.0
with:
toolchain: nightly
cache-key: codspeed-builds
cache-workspaces: |
. -> target/codspeed/walltime
. -> target/codspeed/analysis
cache-workspace-crates: true

- name: Install cargo-codspeed
uses: taiki-e/install-action@1e29709c0ec63babbe8f266397a465f29a825f91 # v2.87.31
Expand All @@ -43,8 +49,9 @@ jobs:
uses: CodSpeedHQ/action@78102a468f96d8e0ccb92d0ec49425753fc42062 # v5.6.0
env:
DIVAN_SAMPLE_SIZE: "10000"
DIVAN_MIN_TIME: "1"
DIVAN_MAX_TIME: "1"
DIVAN_SAMPLE_COUNT: "10"
DIVAN_MIN_TIME: "0"
DIVAN_MAX_TIME: "0.5"
with:
mode: walltime,memory
run: cargo codspeed run
Loading