diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index d4068b6..5783d8a 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -21,7 +21,15 @@ jobs: - uses: cargo-bins/cargo-binstall@main - run: sudo apt-get install valgrind - - run: cargo binstall --no-confirm iai-callgrind-runner@0.10.2 + + - name: Install iai-callgrind-runner + run: | + version=$(cargo metadata --format-version=1 |\ + jq '.packages[] | select(.name == "iai-callgrind").version' |\ + tr -d '"' + ) + cargo binstall iai-callgrind-runner --version $version + - run: | IAI_CALLGRIND_COLOR=never cargo bench --bench ci_bench > perf.txt - run: | diff --git a/Cargo.toml b/Cargo.toml index 9a66a56..940e812 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,7 +25,7 @@ criterion = "0.5.1" hex-literal = "0.2.1" hex-slice = "0.1.4" env_logger = "0.11.2" -iai-callgrind = "0.10.2" +iai-callgrind = "0.11.0" [[bench]] name = "bench"