Skip to content

Commit

Permalink
iai-callgrind-runner version must match iai-callgrind itself
Browse files Browse the repository at this point in the history
  • Loading branch information
dholroyd committed Jun 3, 2024
1 parent dceec6e commit 78e6cf8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,15 @@ jobs:
- uses: cargo-bins/cargo-binstall@main

- run: sudo apt update && sudo apt install valgrind
- run: cargo binstall --no-confirm [email protected]

- name: Install iai-callgrind-runner
run: |
version=$(cargo metadata --format-version=1 |\
jq '.packages[] | select(.name == "iai-callgrind").version' |\
tr -d '"'
)
cargo binstall --no-confirm iai-callgrind-runner --version $version
- run: |
IAI_CALLGRIND_COLOR=never cargo bench --bench ci_bench > perf.txt
- run: |
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/pr-benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,15 @@ jobs:
- uses: cargo-bins/cargo-binstall@main

- run: sudo apt update && sudo apt install valgrind
- run: cargo binstall --no-confirm [email protected]

- name: Install iai-callgrind-runner
run: |
version=$(cargo metadata --format-version=1 |\
jq '.packages[] | select(.name == "iai-callgrind").version' |\
tr -d '"'
)
cargo binstall --no-confirm iai-callgrind-runner --version $version
- run: |
IAI_CALLGRIND_COLOR=never cargo bench --bench ci_bench > benchmark_results.txt
- name: Upload Benchmark Results
Expand Down

0 comments on commit 78e6cf8

Please sign in to comment.