Skip to content

Commit

Permalink
Merge branch 'jason/canbench-nns-governance' into 'master'
Browse files Browse the repository at this point in the history
Use canbench for NNS Governance

This MR introduces canbench into IC monorepo and adds a very basic set of benchmarks for NNS Governance. 

See merge request dfinity-lab/public/ic!18392
  • Loading branch information
jasonz-dfinity committed May 4, 2024
2 parents 2426907 + 2c5b64c commit b531d2e
Show file tree
Hide file tree
Showing 15 changed files with 1,717 additions and 90 deletions.
534 changes: 519 additions & 15 deletions Cargo.Bazel.Fuzzing.json.lock

Large diffs are not rendered by default.

105 changes: 101 additions & 4 deletions Cargo.Bazel.Fuzzing.toml.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1628,6 +1628,50 @@ dependencies = [
"serde",
]

[[package]]
name = "canbench"
version = "0.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8d8db3022e4aa2e0b00feb4b3789ab01ce6e2f392c85d46e1afa5a60f3d82e55"
dependencies = [
"canbench-rs",
"candid",
"clap 4.4.6",
"colored",
"flate2",
"hex",
"reqwest 0.11.27",
"semver",
"serde",
"serde_yaml 0.9.30",
"sha256",
"tempfile",
"wasmparser 0.119.0",
]

[[package]]
name = "canbench-rs"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fe5d551419a1547b5064111df7bfa6e87818750e7f6df611067a02e63a9cbb31"
dependencies = [
"canbench-rs-macros",
"candid",
"ic-cdk 0.12.1",
"serde",
]

[[package]]
name = "canbench-rs-macros"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b5acd4a41fd2e7018508f7442d7ae90957a913c6fa0e4b767e5be9a8cc5848c8"
dependencies = [
"proc-macro2 1.0.76",
"quote 1.0.35",
"syn 1.0.109",
]

[[package]]
name = "candid"
version = "0.10.6"
Expand Down Expand Up @@ -2884,6 +2928,8 @@ dependencies = [
"byteorder",
"bytes",
"cached 0.49.2",
"canbench",
"canbench-rs",
"candid",
"candid_parser",
"cargo_metadata",
Expand Down Expand Up @@ -2956,7 +3002,7 @@ dependencies = [
"ic-btc-validation",
"ic-canister-log",
"ic-cbor",
"ic-cdk",
"ic-cdk 0.13.2",
"ic-cdk-macros 0.9.0",
"ic-cdk-timers",
"ic-certification",
Expand Down Expand Up @@ -4823,6 +4869,19 @@ dependencies = [
"thiserror",
]

[[package]]
name = "ic-cdk"
version = "0.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9f3d204af0b11c45715169c997858edb58fa8407d08f4fae78a6b415dd39a362"
dependencies = [
"candid",
"ic-cdk-macros 0.8.4",
"ic0 0.21.1",
"serde",
"serde_bytes",
]

[[package]]
name = "ic-cdk"
version = "0.13.2"
Expand All @@ -4836,6 +4895,20 @@ dependencies = [
"serde_bytes",
]

[[package]]
name = "ic-cdk-macros"
version = "0.8.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a5a618e4020cea88e933d8d2f8c7f86d570ec06213506a80d4f2c520a9bba512"
dependencies = [
"candid",
"proc-macro2 1.0.76",
"quote 1.0.35",
"serde",
"serde_tokenstream",
"syn 1.0.109",
]

[[package]]
name = "ic-cdk-macros"
version = "0.9.0"
Expand Down Expand Up @@ -4871,7 +4944,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "054727a3a1c486528b96349817d54290ff70df6addf417def456ea708a16f7fb"
dependencies = [
"futures",
"ic-cdk",
"ic-cdk 0.13.2",
"ic0 0.21.1",
"serde",
"serde_bytes",
Expand Down Expand Up @@ -9423,9 +9496,9 @@ dependencies = [

[[package]]
name = "semver"
version = "1.0.20"
version = "1.0.22"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "836fa6a3e1e547f9a2c4040802ec865b5d85f4014efe00555d7090a3dcaa1090"
checksum = "92d43fe69e652f3df9bdc2b85b2854a0825b86e4fb76bc44d945137d053639ca"
dependencies = [
"serde",
]
Expand Down Expand Up @@ -9694,6 +9767,19 @@ dependencies = [
"digest 0.10.7",
]

[[package]]
name = "sha256"
version = "1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "18278f6a914fa3070aa316493f7d2ddfb9ac86ebc06fa3b83bffda487e9065b0"
dependencies = [
"async-trait",
"bytes",
"hex",
"sha2 0.10.8",
"tokio",
]

[[package]]
name = "sha3"
version = "0.9.1"
Expand Down Expand Up @@ -11691,6 +11777,17 @@ dependencies = [
"semver",
]

[[package]]
name = "wasmparser"
version = "0.119.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8c35daf77afb4f9b14016625144a391085ec2ca99ca9cc53ed291bb53ab5278d"
dependencies = [
"bitflags 2.4.1",
"indexmap 2.1.0",
"semver",
]

[[package]]
name = "wasmparser"
version = "0.201.0"
Expand Down
Loading

0 comments on commit b531d2e

Please sign in to comment.