From 6221b301af79c1f705fd9b0bf749c3628bed3619 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 9 May 2024 06:37:01 +0000 Subject: [PATCH 1/2] Update iai-callgrind requirement from 0.10.2 to 0.11.0 Updates the requirements on [iai-callgrind](https://github.com/iai-callgrind/iai-callgrind) to permit the latest version. - [Release notes](https://github.com/iai-callgrind/iai-callgrind/releases) - [Changelog](https://github.com/iai-callgrind/iai-callgrind/blob/main/CHANGELOG.md) - [Commits](https://github.com/iai-callgrind/iai-callgrind/compare/v0.10.2...v0.11.0) --- updated-dependencies: - dependency-name: iai-callgrind dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" From 11d0d51fa7591e6c70da7ced9971708093cd596a Mon Sep 17 00:00:00 2001 From: David Holroyd Date: Fri, 10 May 2024 16:45:44 +0100 Subject: [PATCH 2/2] Keep iai-callgrind-runner version in lockstep with iai-callgrind dep Per https://github.com/iai-callgrind/iai-callgrind/issues/161#issuecomment-2104144034 --- .github/workflows/benchmark.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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: |