Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .github/workflows/actions.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ version: 'v0.0.3'
workflows:
'.github/workflows/benchmark.yml':
- 'actions-rust-lang/setup-rust-toolchain@v2.0.0'
- 'actions/checkout@v7.0.1'
- 'codspeedhq/action@v5.6.3'
- 'taiki-e/install-action@v2.90.1'
- 'useblacksmith/checkout@v1.8.2'
'.github/workflows/ci.yml':
- 'actions-rust-lang/setup-rust-toolchain@v2.0.0'
- 'nicknovitski/nix-develop@v1.2.1'
Expand Down
15 changes: 8 additions & 7 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches: [main]
pull_request:
workflow_dispatch:

permissions:
contents: read
Expand All @@ -17,10 +16,11 @@ concurrency:
jobs:
benchmarks:
name: Run benchmarks
runs-on: blacksmith-2vcpu-ubuntu-2404
runs-on: codspeed-macro-arm64-graviton-ubuntu-22-04
timeout-minutes: 10
steps:
- name: Checkout
uses: useblacksmith/checkout@v1.8.2
uses: actions/checkout@v7.0.1
with:
persist-credentials: false

Expand All @@ -34,13 +34,14 @@ jobs:
with:
tool: cargo-codspeed

- name: Build CPU and memory benchmarks
run: cargo codspeed build --all-features --locked -m simulation -m memory
- name: Build benchmarks
run: cargo codspeed build --all-features --locked --measurement-mode walltime --measurement-mode memory

- name: Run CPU and memory benchmarks
- name: Run benchmarks
uses: CodSpeedHQ/action@v5.6.3
env:
DIVAN_MIN_TIME: "1"
DIVAN_MAX_TIME: "1"
with:
mode: simulation,memory
mode: walltime,memory
run: cargo codspeed run
Loading