Upgrade to latest iai for summary output

This commit is contained in:
infogulch
2023-11-21 13:07:33 -06:00
parent 1c94624958
commit 503e45eae1
3 changed files with 9 additions and 11 deletions

View File

@@ -142,7 +142,8 @@ jobs:
cache-context: report
- run: |
cargo install cargo2junit --force
cargo install iai-callgrind-runner --force --version `cargo metadata --format-version 1 | jq -r '.resolve.nodes[].id|split(" ")|select(.[0]=="iai-callgrind")|.[1]'`
# cargo install iai-callgrind-runner --force --version `cargo metadata --format-version 1 | jq -r '.resolve.nodes[].id|split(" ")|select(.[0]=="iai-callgrind")|.[1]'`
cargo install iai-callgrind-runner --force --git https://github.com/iai-callgrind/iai-callgrind --rev c77bc3c83d7f4e976cc42d4597236a8db259e772
sudo apt install valgrind -y
- name: Test and report
@@ -163,7 +164,7 @@ jobs:
- run: cargo build --all-targets --release
- run: cargo test --bench setup --release
- run: cargo bench --bench run_iai
- run: cargo bench --bench run_iai -- --save-summary=json
- run: cargo bench --bench run_criterion
- run: cargo bench --bench run_criterion -- --profile-time 60

13
Cargo.lock generated
View File

@@ -1207,9 +1207,8 @@ dependencies = [
[[package]]
name = "iai-callgrind"
version = "0.7.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2679de583a9f5232b45b1f3a31b5e2f739bccfee9b7902488aca8f8c2c5482d1"
version = "0.8.0"
source = "git+https://github.com/iai-callgrind/iai-callgrind.git?rev=c77bc3c83d7f4e976cc42d4597236a8db259e772#c77bc3c83d7f4e976cc42d4597236a8db259e772"
dependencies = [
"bincode",
"iai-callgrind-macros",
@@ -1219,8 +1218,7 @@ dependencies = [
[[package]]
name = "iai-callgrind-macros"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "af5af66b85e350097b8c0f6329c6347d3323d010443475741c29a1a167f116fb"
source = "git+https://github.com/iai-callgrind/iai-callgrind.git?rev=c77bc3c83d7f4e976cc42d4597236a8db259e772#c77bc3c83d7f4e976cc42d4597236a8db259e772"
dependencies = [
"proc-macro-error",
"proc-macro2",
@@ -1230,9 +1228,8 @@ dependencies = [
[[package]]
name = "iai-callgrind-runner"
version = "0.7.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "12cc1093f263249d7c541c53849dac74f4ae756cd31e3cac1a12204efcec68bd"
version = "0.8.0"
source = "git+https://github.com/iai-callgrind/iai-callgrind.git?rev=c77bc3c83d7f4e976cc42d4597236a8db259e772#c77bc3c83d7f4e976cc42d4597236a8db259e772"
dependencies = [
"serde",
]

View File

@@ -112,7 +112,7 @@ assert_cmd = "1.0.3"
predicates-core = "1.0.2"
maplit = "1.0.2"
serial_test = "2.0.0"
iai-callgrind = "0.7.3"
iai-callgrind = { git = "https://github.com/iai-callgrind/iai-callgrind.git", rev = "c77bc3c83d7f4e976cc42d4597236a8db259e772" }
criterion = "0.5.1"
[target.'cfg(not(target_os = "windows"))'.dev-dependencies]