diff --git a/.cargo/zepter.yaml b/.cargo/zepter.yaml new file mode 100644 index 0000000..2098932 --- /dev/null +++ b/.cargo/zepter.yaml @@ -0,0 +1,39 @@ +version: + format: 1 + # Minimum version of the binary that is expected to work. This is just for printing a nice error + # message when someone tries to use an older version. + binary: 0.13.2 + +# The examples in this file assume crate `A` to have a dependency on crate `B`. +workflows: + check: + - [ + 'lint', + # Check that `A` activates the features of `B`. + 'propagate-feature', + # These are the features to check: + '--features=try-runtime,runtime-benchmarks,std', + # Do not try to add a new section into `[features]` of `A` only because `B` expose that feature. There are edge-cases where this is still needed, but we can add them manually. + '--left-side-feature-missing=ignore', + # Ignore the case that `A` it outside of the workspace. Otherwise it will report errors in external dependencies that we have no influence on. + '--left-side-outside-workspace=ignore', + # Some features imply that they activate a specific dependency as non-optional. Otherwise the default behaviour with a `?` is used. + '--feature-enables-dep=try-runtime:frame-try-runtime,runtime-benchmarks:frame-benchmarking', + # Auxillary flags: + '--offline', + '--locked', + '--show-path', + '--quiet', + ] + # Same as `check`, but with the `--fix` flag. + default: + - [ $check.0, '--fix' ] + +# Will be displayed when any workflow fails: +help: + text: | + This repo uses the Zepter CLI to detect abnormalities in the feature configuration. + It looks like one more more checks failed; please check the console output. You can try to automatically address them by running `zepter`. + Otherwise please ask directly in the Merge Request, GitHub Discussions or on Matrix Chat, thank you. + links: + - "https://github.com/ggwpez/zepter" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4c99361..d7db9e2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -183,6 +183,28 @@ jobs: - name: ${{ matrix.check }} run: cargo ${{ matrix.check }} + cargo-zepter: + name: Cargo Zepter + runs-on: ubuntu-latest + + steps: + - name: Install stable Rust + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + + - name: Install Zepter + run: cargo install --locked -q zepter && zepter --version + + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 # Don't clone historic commits. + + - name: Check features + run: zepter run check + license-check: runs-on: ubuntu-latest steps: diff --git a/Cargo.lock b/Cargo.lock index c896788..5c8d2ed 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -919,7 +919,7 @@ dependencies = [ [[package]] name = "claims-primitives" version = "0.1.0" -source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v1.13.0#98389472ef524fa9cacb57f9e9095e1fb67b9216" +source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v1.13.0#6df6036090dcc1d6513e3cfcb6e16cc5a6b74613" dependencies = [ "parity-scale-codec", "rustc-hex", @@ -1028,7 +1028,7 @@ checksum = "2382f75942f4b3be3690fe4f86365e9c853c1587d6ee58212cebf6e2a9ccd101" [[package]] name = "common-primitives" version = "0.1.0" -source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v1.13.0#98389472ef524fa9cacb57f9e9095e1fb67b9216" +source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v1.13.0#6df6036090dcc1d6513e3cfcb6e16cc5a6b74613" dependencies = [ "derive_more", "parity-scale-codec", @@ -1854,7 +1854,7 @@ dependencies = [ [[package]] name = "enclave-bridge-primitives" version = "0.1.0" -source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v1.13.0#98389472ef524fa9cacb57f9e9095e1fb67b9216" +source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v1.13.0#6df6036090dcc1d6513e3cfcb6e16cc5a6b74613" dependencies = [ "common-primitives", "log", @@ -3152,7 +3152,7 @@ dependencies = [ [[package]] name = "integritee-node" -version = "1.13.0" +version = "1.13.1" dependencies = [ "clap", "frame-benchmarking", @@ -3201,7 +3201,7 @@ dependencies = [ [[package]] name = "integritee-node-runtime" -version = "1.13.390" +version = "1.13.400" dependencies = [ "frame-benchmarking", "frame-executive", @@ -3224,6 +3224,7 @@ dependencies = [ "pallet-sidechain", "pallet-sudo", "pallet-teeracle", + "pallet-teerdays", "pallet-teerex", "pallet-timestamp", "pallet-transaction-payment", @@ -4994,7 +4995,7 @@ dependencies = [ [[package]] name = "pallet-claims" version = "0.9.12" -source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v1.13.0#98389472ef524fa9cacb57f9e9095e1fb67b9216" +source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v1.13.0#6df6036090dcc1d6513e3cfcb6e16cc5a6b74613" dependencies = [ "claims-primitives", "frame-benchmarking", @@ -5014,7 +5015,7 @@ dependencies = [ [[package]] name = "pallet-enclave-bridge" version = "0.12.0" -source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v1.13.0#98389472ef524fa9cacb57f9e9095e1fb67b9216" +source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v1.13.0#6df6036090dcc1d6513e3cfcb6e16cc5a6b74613" dependencies = [ "enclave-bridge-primitives", "frame-benchmarking", @@ -5104,6 +5105,7 @@ dependencies = [ "log", "parity-scale-codec", "scale-info", + "sp-core", "sp-io", "sp-runtime", "sp-std", @@ -5170,7 +5172,7 @@ dependencies = [ [[package]] name = "pallet-sidechain" version = "0.11.0" -source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v1.13.0#98389472ef524fa9cacb57f9e9095e1fb67b9216" +source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v1.13.0#6df6036090dcc1d6513e3cfcb6e16cc5a6b74613" dependencies = [ "enclave-bridge-primitives", "frame-benchmarking", @@ -5214,17 +5216,19 @@ dependencies = [ [[package]] name = "pallet-teeracle" version = "0.1.0" -source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v1.13.0#98389472ef524fa9cacb57f9e9095e1fb67b9216" +source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v1.13.0#6df6036090dcc1d6513e3cfcb6e16cc5a6b74613" dependencies = [ "frame-benchmarking", "frame-support", "frame-system", "hex-literal", "log", + "pallet-aura", "pallet-teerex", "pallet-timestamp", "parity-scale-codec", "scale-info", + "sp-consensus-aura", "sp-core", "sp-io", "sp-runtime", @@ -5235,10 +5239,32 @@ dependencies = [ "test-utils", ] +[[package]] +name = "pallet-teerdays" +version = "0.1.0" +source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v1.13.0#6df6036090dcc1d6513e3cfcb6e16cc5a6b74613" +dependencies = [ + "frame-benchmarking", + "frame-support", + "frame-system", + "hex-literal", + "log", + "pallet-balances", + "pallet-timestamp", + "parity-scale-codec", + "scale-info", + "serde", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std", + "teerdays-primitives", +] + [[package]] name = "pallet-teerex" version = "0.10.0" -source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v1.13.0#98389472ef524fa9cacb57f9e9095e1fb67b9216" +source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v1.13.0#6df6036090dcc1d6513e3cfcb6e16cc5a6b74613" dependencies = [ "frame-benchmarking", "frame-support", @@ -5246,6 +5272,7 @@ dependencies = [ "hex", "hex-literal", "log", + "pallet-aura", "pallet-balances", "pallet-timestamp", "parity-scale-codec", @@ -5253,6 +5280,7 @@ dependencies = [ "scale-info", "serde", "sgx-verify", + "sp-consensus-aura", "sp-core", "sp-io", "sp-runtime", @@ -8127,7 +8155,7 @@ dependencies = [ [[package]] name = "sgx-verify" version = "0.1.4" -source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v1.13.0#98389472ef524fa9cacb57f9e9095e1fb67b9216" +source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v1.13.0#6df6036090dcc1d6513e3cfcb6e16cc5a6b74613" dependencies = [ "base64 0.13.1", "chrono", @@ -8246,7 +8274,7 @@ checksum = "43b2853a4d09f215c24cc5489c992ce46052d359b5109343cbafbf26bc62f8a3" [[package]] name = "sidechain-primitives" version = "0.1.0" -source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v1.13.0#98389472ef524fa9cacb57f9e9095e1fb67b9216" +source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v1.13.0#6df6036090dcc1d6513e3cfcb6e16cc5a6b74613" dependencies = [ "parity-scale-codec", "scale-info", @@ -9439,17 +9467,29 @@ checksum = "1d2faeef5759ab89935255b1a4cd98e0baf99d1085e37d36599c625dac49ae8e" [[package]] name = "teeracle-primitives" version = "0.1.0" -source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v1.13.0#98389472ef524fa9cacb57f9e9095e1fb67b9216" +source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v1.13.0#6df6036090dcc1d6513e3cfcb6e16cc5a6b74613" dependencies = [ "common-primitives", "sp-std", "substrate-fixed", ] +[[package]] +name = "teerdays-primitives" +version = "0.1.0" +source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v1.13.0#6df6036090dcc1d6513e3cfcb6e16cc5a6b74613" +dependencies = [ + "parity-scale-codec", + "scale-info", + "serde", + "sp-core", + "sp-runtime", +] + [[package]] name = "teerex-primitives" version = "0.1.0" -source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v1.13.0#98389472ef524fa9cacb57f9e9095e1fb67b9216" +source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v1.13.0#6df6036090dcc1d6513e3cfcb6e16cc5a6b74613" dependencies = [ "common-primitives", "derive_more", @@ -9503,7 +9543,7 @@ checksum = "3369f5ac52d5eb6ab48c6b4ffdc8efbcad6b89c765749064ba298f2c68a16a76" [[package]] name = "test-utils" version = "0.1.0" -source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v1.13.0#98389472ef524fa9cacb57f9e9095e1fb67b9216" +source = "git+https://github.com/integritee-network/pallets.git?branch=polkadot-v1.13.0#6df6036090dcc1d6513e3cfcb6e16cc5a6b74613" dependencies = [ "log", "sgx-verify", diff --git a/Cargo.toml b/Cargo.toml index 2bb1685..cdb3f4a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,6 +28,7 @@ pallet-claims = { default-features = false, git = "https://github.com/integritee pallet-enclave-bridge = { default-features = false, git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v1.13.0" } pallet-sidechain = { default-features = false, git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v1.13.0" } pallet-teeracle = { default-features = false, git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v1.13.0" } +pallet-teerdays = { default-features = false, git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v1.13.0" } pallet-teerex = { default-features = false, git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v1.13.0" } # substrate deps @@ -105,18 +106,20 @@ substrate-wasm-builder = "23.0.0" substrate-build-script-utils = "11.0.0" #[patch."https://github.com/integritee-network/pallets.git"] +#claims-primitives = { path = '../pallets/primitives/claims' } +#common-primitives = { path = '../pallets/primitives/common' } +#enclave-bridge-primitives = { path = '../pallets/primitives/enclave-bridge' } #pallet-claims = { path = '../pallets/claims' } #pallet-enclave-bridge = { path = '../pallets/enclave-bridge' } -#pallet-teerex = { path = '../pallets/teerex' } #pallet-sidechain = { path = '../pallets/sidechain' } -#sgx-verify = { path = '../pallets/teerex/sgx-verify' } #pallet-teeracle = { path = '../pallets/teeracle' } -#test-utils = { path = '../pallets/test-utils' } -#claims-primitives = { path = '../pallets/primitives/claims' } -#enclave-bridge-primitives = { path = '../pallets/primitives/enclave-bridge' } -#teerex-primitives = { path = '../pallets/primitives/teerex' } +#pallet-teerdays = { path = '../pallets/teerdays' } +#pallet-teerex = { path = '../pallets/teerex' } +#sgx-verify = { path = '../pallets/teerex/sgx-verify' } #teeracle-primitives = { path = '../pallets/primitives/teeracle' } -#common-primitives = { path = '../pallets/primitives/common' } +#teerdays-primitives = { path = '../pallets/primitives/teerdays' } +#teerex-primitives = { path = '../pallets/primitives/teerex' } +#test-utils = { path = '../pallets/test-utils' } [patch.crates-io] ring = { git = "https://github.com/betrusted-io/ring-xous", branch = "0.16.20-cleanup" } diff --git a/node/Cargo.toml b/node/Cargo.toml index 2f9a662..2df174b 100644 --- a/node/Cargo.toml +++ b/node/Cargo.toml @@ -8,7 +8,7 @@ license = 'Apache-2.0' name = 'integritee-node' repository = 'https://github.com/integritee-network/integritee-node' # Align major.minor revision with polkadot sdk, bump patch revision ad lib. Make this the github release tag. -version = '1.13.0' +version = '1.13.1' [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] @@ -76,6 +76,8 @@ runtime-benchmarks = [ "sc-service/runtime-benchmarks", "frame-benchmarking/runtime-benchmarks", "frame-benchmarking-cli/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "sp-runtime/runtime-benchmarks", ] # for secure launch of a live solo network, do enable extrinsic filtering extrinsic-filtering = ["integritee-node-runtime/extrinsic-filtering"] diff --git a/runtime/Cargo.toml b/runtime/Cargo.toml index f7b4ede..ce5ceda 100644 --- a/runtime/Cargo.toml +++ b/runtime/Cargo.toml @@ -6,7 +6,7 @@ license = 'Apache-2.0' name = 'integritee-node-runtime' repository = 'https://github.com/integritee-network/integritee-node' # keep patch revision with spec_version of runtime -version = '1.13.390' +version = '1.13.400' [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] @@ -34,6 +34,7 @@ pallet-claims = { workspace = true } pallet-enclave-bridge = { workspace = true } pallet-sidechain = { workspace = true } pallet-teeracle = { workspace = true } +pallet-teerdays = { workspace = true } pallet-teerex = { workspace = true } sp-api = { workspace = true } @@ -115,6 +116,11 @@ std = [ "pallet-proxy/std", "pallet-utility/std", "pallet-teeracle/std", + "pallet-teerdays/std", + "frame-benchmarking?/std", + "frame-system-benchmarking?/std", + "pallet-preimage/std", + "sp-staking/std", ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", @@ -122,7 +128,6 @@ runtime-benchmarks = [ "frame-system-benchmarking/runtime-benchmarks", "hex-literal", "sp-runtime/runtime-benchmarks", - # actual pallets to be benchmarked "frame-system/runtime-benchmarks", "pallet-balances/runtime-benchmarks", "pallet-grandpa/frame-benchmarking", @@ -139,4 +144,8 @@ runtime-benchmarks = [ "pallet-utility/runtime-benchmarks", "pallet-teeracle/runtime-benchmarks", "pallet-sidechain/runtime-benchmarks", + "pallet-teerdays/runtime-benchmarks", + "pallet-grandpa/runtime-benchmarks", + "pallet-sudo/runtime-benchmarks", + "sp-staking/runtime-benchmarks", ] diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index bceebe2..e67e03b 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -117,7 +117,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("integritee-solo"), impl_name: create_runtime_str!("integritee-solo"), authoring_version: 1, - spec_version: 390, + spec_version: 400, impl_version: 1, apis: RUNTIME_API_VERSIONS, transaction_version: 8, @@ -141,6 +141,11 @@ pub const MINUTES: BlockNumber = 60_000 / (MILLISECS_PER_BLOCK as BlockNumber); pub const HOURS: BlockNumber = MINUTES * 60; pub const DAYS: BlockNumber = HOURS * 24; +// Time helpers in milliseconds. +pub const MS_PER_MINUTE: Moment = 60_000; +pub const MS_PER_HOUR: Moment = crate::MS_PER_MINUTE * 60; +pub const MS_PER_DAY: Moment = crate::MS_PER_HOUR * 24; + pub const TEER: Balance = 1_000_000_000_000; pub const MILLITEER: Balance = 1_000_000_000; pub const MICROTEER: Balance = 1_000_000; @@ -392,6 +397,18 @@ impl pallet_sidechain::Config for Runtime { type WeightInfo = weights::pallet_sidechain::WeightInfo; } +// added by Integritee +parameter_types! { + pub const UnlockPeriod: Moment = 10 * MS_PER_MINUTE; +} +impl pallet_teerdays::Config for Runtime { + type RuntimeEvent = RuntimeEvent; + type WeightInfo = weights::pallet_teerdays::WeightInfo; + type Currency = Balances; + type CurrencyBalance = Balance; + type UnlockPeriod = UnlockPeriod; +} + parameter_types! { pub const ProposalBond: Permill = Permill::from_percent(5); pub const ProposalBondMinimum: Balance = 100 * MILLITEER; @@ -649,6 +666,7 @@ construct_runtime!( Teeracle: pallet_teeracle = 52, Sidechain: pallet_sidechain = 53, EnclaveBridge: pallet_enclave_bridge = 54, + TeerDays: pallet_teerdays = 55, } ); @@ -708,6 +726,7 @@ mod benches { [pallet_vesting, Vesting] [pallet_utility, Utility] [pallet_teeracle, Teeracle] + [pallet_teerdays, TeerDays] [pallet_sidechain, Sidechain] ); } diff --git a/runtime/src/weights/frame_system.rs b/runtime/src/weights/frame_system.rs new file mode 100644 index 0000000..a337fd3 --- /dev/null +++ b/runtime/src/weights/frame_system.rs @@ -0,0 +1,156 @@ + +//! Autogenerated weights for `frame_system` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 39.0.0 +//! DATE: 2024-07-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `caribe`, CPU: `12th Gen Intel(R) Core(TM) i7-1260P` +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("integritee-solo-fresh")`, DB CACHE: 1024 + +// Executed Command: +// target/release/integritee-node +// benchmark +// pallet +// --chain=integritee-solo-fresh +// --steps=50 +// --repeat=20 +// --pallet=frame_system +// --extrinsic=* +// --execution=wasm +// --wasm-execution=compiled +// --heap-pages=4096 +// --output=runtime/src/weights/frame_system.rs + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::Weight}; +use core::marker::PhantomData; + +/// Weight functions for `frame_system`. +pub struct WeightInfo(PhantomData); +impl frame_system::WeightInfo for WeightInfo { + /// The range of component `b` is `[0, 3932160]`. + fn remark(b: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 1_462_000 picoseconds. + Weight::from_parts(699_739, 0) + .saturating_add(Weight::from_parts(0, 0)) + // Standard Error: 0 + .saturating_add(Weight::from_parts(238, 0).saturating_mul(b.into())) + } + /// The range of component `b` is `[0, 3932160]`. + fn remark_with_event(b: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 3_824_000 picoseconds. + Weight::from_parts(42_535_819, 0) + .saturating_add(Weight::from_parts(0, 0)) + // Standard Error: 6 + .saturating_add(Weight::from_parts(974, 0).saturating_mul(b.into())) + } + /// Storage: `System::Digest` (r:1 w:1) + /// Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: UNKNOWN KEY `0x3a686561707061676573` (r:0 w:1) + /// Proof: UNKNOWN KEY `0x3a686561707061676573` (r:0 w:1) + fn set_heap_pages() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `1485` + // Minimum execution time: 2_654_000 picoseconds. + Weight::from_parts(2_802_000, 0) + .saturating_add(Weight::from_parts(0, 1485)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `System::Digest` (r:1 w:1) + /// Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: UNKNOWN KEY `0x3a636f6465` (r:0 w:1) + /// Proof: UNKNOWN KEY `0x3a636f6465` (r:0 w:1) + fn set_code() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `1485` + // Minimum execution time: 78_419_444_000 picoseconds. + Weight::from_parts(79_244_235_000, 0) + .saturating_add(Weight::from_parts(0, 1485)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `Skipped::Metadata` (r:0 w:0) + /// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// The range of component `i` is `[0, 1000]`. + fn set_storage(i: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 1_802_000 picoseconds. + Weight::from_parts(1_859_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + // Standard Error: 925 + .saturating_add(Weight::from_parts(661_796, 0).saturating_mul(i.into())) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into()))) + } + /// Storage: `Skipped::Metadata` (r:0 w:0) + /// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// The range of component `i` is `[0, 1000]`. + fn kill_storage(i: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 1_646_000 picoseconds. + Weight::from_parts(1_799_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + // Standard Error: 888 + .saturating_add(Weight::from_parts(506_343, 0).saturating_mul(i.into())) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into()))) + } + /// Storage: `Skipped::Metadata` (r:0 w:0) + /// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// The range of component `p` is `[0, 1000]`. + fn kill_prefix(p: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `47 + p * (69 ±0)` + // Estimated: `58 + p * (70 ±0)` + // Minimum execution time: 3_019_000 picoseconds. + Weight::from_parts(3_086_000, 0) + .saturating_add(Weight::from_parts(0, 58)) + // Standard Error: 1_479 + .saturating_add(Weight::from_parts(968_992, 0).saturating_mul(p.into())) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(p.into()))) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into()))) + .saturating_add(Weight::from_parts(0, 70).saturating_mul(p.into())) + } + /// Storage: `System::AuthorizedUpgrade` (r:0 w:1) + /// Proof: `System::AuthorizedUpgrade` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`) + fn authorize_upgrade() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 6_096_000 picoseconds. + Weight::from_parts(7_717_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `System::AuthorizedUpgrade` (r:1 w:1) + /// Proof: `System::AuthorizedUpgrade` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`) + /// Storage: `System::Digest` (r:1 w:1) + /// Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: UNKNOWN KEY `0x3a636f6465` (r:0 w:1) + /// Proof: UNKNOWN KEY `0x3a636f6465` (r:0 w:1) + fn apply_authorized_upgrade() -> Weight { + // Proof Size summary in bytes: + // Measured: `22` + // Estimated: `1518` + // Minimum execution time: 86_627_442_000 picoseconds. + Weight::from_parts(88_160_556_000, 0) + .saturating_add(Weight::from_parts(0, 1518)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(3)) + } +} diff --git a/runtime/src/weights/mod.rs b/runtime/src/weights/mod.rs index 8c4f9fd..e9282fd 100644 --- a/runtime/src/weights/mod.rs +++ b/runtime/src/weights/mod.rs @@ -18,6 +18,7 @@ pub mod pallet_scheduler; pub mod pallet_sidechain; pub mod pallet_sudo; pub mod pallet_teeracle; +pub mod pallet_teerdays; pub mod pallet_teerex; pub mod pallet_timestamp; pub mod pallet_treasury; diff --git a/runtime/src/weights/pallet_balances.rs b/runtime/src/weights/pallet_balances.rs index 01f4b0e..5be7f8f 100644 --- a/runtime/src/weights/pallet_balances.rs +++ b/runtime/src/weights/pallet_balances.rs @@ -1,17 +1,17 @@ //! Autogenerated weights for `pallet_balances` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 36.0.0 -//! DATE: 2024-05-31, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 39.0.0 +//! DATE: 2024-07-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `caribe`, CPU: `12th Gen Intel(R) Core(TM) i7-1260P` -//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("integritee-rococo-local-dev")`, DB CACHE: 1024 +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("integritee-solo-fresh")`, DB CACHE: 1024 // Executed Command: -// ./target/release/integritee-collator +// target/release/integritee-node // benchmark // pallet -// --chain=integritee-rococo-local-dev +// --chain=integritee-solo-fresh // --steps=50 // --repeat=20 // --pallet=pallet_balances @@ -19,7 +19,7 @@ // --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 -// --output=./polkadot-parachains/integritee-runtime/src/weights/pallet_balances.rs +// --output=runtime/src/weights/pallet_balances.rs #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] @@ -36,10 +36,10 @@ impl pallet_balances::WeightInfo for WeightInfo { /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn transfer_allow_death() -> Weight { // Proof Size summary in bytes: - // Measured: `0` + // Measured: `52` // Estimated: `3593` - // Minimum execution time: 63_120_000 picoseconds. - Weight::from_parts(64_610_000, 0) + // Minimum execution time: 39_221_000 picoseconds. + Weight::from_parts(40_530_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -48,10 +48,10 @@ impl pallet_balances::WeightInfo for WeightInfo { /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn transfer_keep_alive() -> Weight { // Proof Size summary in bytes: - // Measured: `0` + // Measured: `52` // Estimated: `3593` - // Minimum execution time: 49_209_000 picoseconds. - Weight::from_parts(50_615_000, 0) + // Minimum execution time: 34_018_000 picoseconds. + Weight::from_parts(35_421_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -60,10 +60,10 @@ impl pallet_balances::WeightInfo for WeightInfo { /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn force_set_balance_creating() -> Weight { // Proof Size summary in bytes: - // Measured: `103` + // Measured: `178` // Estimated: `3593` - // Minimum execution time: 15_817_000 picoseconds. - Weight::from_parts(16_187_000, 0) + // Minimum execution time: 12_755_000 picoseconds. + Weight::from_parts(13_200_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -72,10 +72,10 @@ impl pallet_balances::WeightInfo for WeightInfo { /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn force_set_balance_killing() -> Weight { // Proof Size summary in bytes: - // Measured: `103` + // Measured: `178` // Estimated: `3593` - // Minimum execution time: 22_449_000 picoseconds. - Weight::from_parts(23_576_000, 0) + // Minimum execution time: 16_766_000 picoseconds. + Weight::from_parts(18_504_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -84,10 +84,10 @@ impl pallet_balances::WeightInfo for WeightInfo { /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn force_transfer() -> Weight { // Proof Size summary in bytes: - // Measured: `103` + // Measured: `192` // Estimated: `6196` - // Minimum execution time: 60_634_000 picoseconds. - Weight::from_parts(62_369_000, 0) + // Minimum execution time: 44_730_000 picoseconds. + Weight::from_parts(45_671_000, 0) .saturating_add(Weight::from_parts(0, 6196)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -96,10 +96,10 @@ impl pallet_balances::WeightInfo for WeightInfo { /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn transfer_all() -> Weight { // Proof Size summary in bytes: - // Measured: `0` + // Measured: `52` // Estimated: `3593` - // Minimum execution time: 57_712_000 picoseconds. - Weight::from_parts(59_024_000, 0) + // Minimum execution time: 41_137_000 picoseconds. + Weight::from_parts(42_970_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -108,10 +108,10 @@ impl pallet_balances::WeightInfo for WeightInfo { /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn force_unreserve() -> Weight { // Proof Size summary in bytes: - // Measured: `103` + // Measured: `178` // Estimated: `3593` - // Minimum execution time: 19_718_000 picoseconds. - Weight::from_parts(20_424_000, 0) + // Minimum execution time: 15_227_000 picoseconds. + Weight::from_parts(16_345_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -121,13 +121,13 @@ impl pallet_balances::WeightInfo for WeightInfo { /// The range of component `u` is `[1, 1000]`. fn upgrade_accounts(u: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `0 + u * (136 ±0)` + // Measured: `0 + u * (135 ±0)` // Estimated: `990 + u * (2603 ±0)` - // Minimum execution time: 18_576_000 picoseconds. - Weight::from_parts(18_928_000, 0) + // Minimum execution time: 14_001_000 picoseconds. + Weight::from_parts(14_222_000, 0) .saturating_add(Weight::from_parts(0, 990)) - // Standard Error: 35_746 - .saturating_add(Weight::from_parts(13_157_981, 0).saturating_mul(u.into())) + // Standard Error: 19_676 + .saturating_add(Weight::from_parts(12_721_482, 0).saturating_mul(u.into())) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(u.into()))) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(u.into()))) .saturating_add(Weight::from_parts(0, 2603).saturating_mul(u.into())) @@ -138,21 +138,25 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `1501` - // Minimum execution time: 4_948_000 picoseconds. - Weight::from_parts(5_138_000, 0) + // Minimum execution time: 4_405_000 picoseconds. + Weight::from_parts(4_748_000, 0) .saturating_add(Weight::from_parts(0, 1501)) .saturating_add(T::DbWeight::get().reads(1)) } - fn burn_allow_death() -> Weight { - Weight::from_parts(5_138_000, 0) - .saturating_add(Weight::from_parts(0, 1501)) - .saturating_add(T::DbWeight::get().reads(1)) + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 25_392_000 picoseconds. + Weight::from_parts(25_981_000, 0) + .saturating_add(Weight::from_parts(0, 0)) } - fn burn_keep_alive() -> Weight { - Weight::from_parts(5_138_000, 0) - .saturating_add(Weight::from_parts(0, 1501)) - .saturating_add(T::DbWeight::get().reads(1)) + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 16_889_000 picoseconds. + Weight::from_parts(17_339_000, 0) + .saturating_add(Weight::from_parts(0, 0)) } } diff --git a/runtime/src/weights/pallet_claims.rs b/runtime/src/weights/pallet_claims.rs index a4c8f1e..56d6c06 100644 --- a/runtime/src/weights/pallet_claims.rs +++ b/runtime/src/weights/pallet_claims.rs @@ -1,13 +1,16 @@ //! Autogenerated weights for `pallet_claims` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2021-11-11, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("integritee-solo-fresh"), DB CACHE: 128 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 39.0.0 +//! DATE: 2024-07-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `caribe`, CPU: `12th Gen Intel(R) Core(TM) i7-1260P` +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("integritee-solo-fresh")`, DB CACHE: 1024 // Executed Command: -// ./integritee-node +// target/release/integritee-node // benchmark +// pallet // --chain=integritee-solo-fresh // --steps=50 // --repeat=20 @@ -18,69 +21,130 @@ // --heap-pages=4096 // --output=runtime/src/weights/pallet_claims.rs - #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] +#![allow(missing_docs)] use frame_support::{traits::Get, weights::Weight}; -use sp_std::marker::PhantomData; +use core::marker::PhantomData; -/// Weight functions for pallet_claims. +/// Weight functions for `pallet_claims`. pub struct WeightInfo(PhantomData); impl pallet_claims::WeightInfo for WeightInfo { - // Storage: Claims Claims (r:1 w:1) - // Storage: Claims Signing (r:1 w:1) - // Storage: Claims Total (r:1 w:1) - // Storage: Claims Vesting (r:1 w:1) - // Storage: Vesting Vesting (r:1 w:1) - // Storage: System Account (r:1 w:0) - // Storage: Balances Locks (r:1 w:1) + /// Storage: `Claims::Claims` (r:1 w:1) + /// Proof: `Claims::Claims` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Claims::Signing` (r:1 w:1) + /// Proof: `Claims::Signing` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Claims::Total` (r:1 w:1) + /// Proof: `Claims::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Claims::Vesting` (r:1 w:1) + /// Proof: `Claims::Vesting` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Vesting::Vesting` (r:1 w:1) + /// Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1057), added: 3532, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `Balances::Locks` (r:1 w:1) + /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`) + /// Storage: `Balances::Freezes` (r:1 w:0) + /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) fn claim() -> Weight { - Weight::from_parts(761_780_000, 0u64) - .saturating_add(T::DbWeight::get().reads(7)) - .saturating_add(T::DbWeight::get().writes(6)) + // Proof Size summary in bytes: + // Measured: `487` + // Estimated: `4764` + // Minimum execution time: 161_698_000 picoseconds. + Weight::from_parts(171_763_000, 0) + .saturating_add(Weight::from_parts(0, 4764)) + .saturating_add(T::DbWeight::get().reads(8)) + .saturating_add(T::DbWeight::get().writes(7)) } - // Storage: Claims Total (r:1 w:1) - // Storage: Claims Vesting (r:0 w:1) - // Storage: Claims Claims (r:0 w:1) - // Storage: Claims Signing (r:0 w:1) + /// Storage: `Claims::Total` (r:1 w:1) + /// Proof: `Claims::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Claims::Vesting` (r:0 w:1) + /// Proof: `Claims::Vesting` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Claims::Claims` (r:0 w:1) + /// Proof: `Claims::Claims` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Claims::Signing` (r:0 w:1) + /// Proof: `Claims::Signing` (`max_values`: None, `max_size`: None, mode: `Measured`) fn mint_claim() -> Weight { - Weight::from_parts(27_006_000, 0u64) + // Proof Size summary in bytes: + // Measured: `145` + // Estimated: `1630` + // Minimum execution time: 12_358_000 picoseconds. + Weight::from_parts(14_041_000, 0) + .saturating_add(Weight::from_parts(0, 1630)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(4)) } - // Storage: Claims Claims (r:1 w:1) - // Storage: Claims Signing (r:1 w:1) - // Storage: Claims Total (r:1 w:1) - // Storage: Claims Vesting (r:1 w:1) - // Storage: Vesting Vesting (r:1 w:1) - // Storage: System Account (r:1 w:0) - // Storage: Balances Locks (r:1 w:1) + /// Storage: `Claims::Claims` (r:1 w:1) + /// Proof: `Claims::Claims` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Claims::Signing` (r:1 w:1) + /// Proof: `Claims::Signing` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Claims::Total` (r:1 w:1) + /// Proof: `Claims::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Claims::Vesting` (r:1 w:1) + /// Proof: `Claims::Vesting` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Vesting::Vesting` (r:1 w:1) + /// Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1057), added: 3532, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `Balances::Locks` (r:1 w:1) + /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`) + /// Storage: `Balances::Freezes` (r:1 w:0) + /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) fn claim_attest() -> Weight { - Weight::from_parts(775_524_000, 0u64) - .saturating_add(T::DbWeight::get().reads(7)) - .saturating_add(T::DbWeight::get().writes(6)) - } - // Storage: Claims Preclaims (r:1 w:1) - // Storage: Claims Signing (r:1 w:1) - // Storage: Claims Claims (r:1 w:1) - // Storage: Claims Total (r:1 w:1) - // Storage: Claims Vesting (r:1 w:1) - // Storage: Vesting Vesting (r:1 w:1) - // Storage: System Account (r:1 w:0) - // Storage: Balances Locks (r:1 w:1) - fn attest() -> Weight { - Weight::from_parts(310_377_000, 0u64) + // Proof Size summary in bytes: + // Measured: `487` + // Estimated: `4764` + // Minimum execution time: 165_109_000 picoseconds. + Weight::from_parts(173_146_000, 0) + .saturating_add(Weight::from_parts(0, 4764)) .saturating_add(T::DbWeight::get().reads(8)) .saturating_add(T::DbWeight::get().writes(7)) } - // Storage: Claims Claims (r:1 w:2) - // Storage: Claims Vesting (r:1 w:2) - // Storage: Claims Signing (r:1 w:2) - // Storage: Claims Preclaims (r:1 w:1) + /// Storage: `Claims::Preclaims` (r:1 w:1) + /// Proof: `Claims::Preclaims` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Claims::Signing` (r:1 w:1) + /// Proof: `Claims::Signing` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Claims::Claims` (r:1 w:1) + /// Proof: `Claims::Claims` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Claims::Total` (r:1 w:1) + /// Proof: `Claims::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Claims::Vesting` (r:1 w:1) + /// Proof: `Claims::Vesting` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Vesting::Vesting` (r:1 w:1) + /// Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1057), added: 3532, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `Balances::Locks` (r:1 w:1) + /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`) + /// Storage: `Balances::Freezes` (r:1 w:0) + /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) + fn attest() -> Weight { + // Proof Size summary in bytes: + // Measured: `561` + // Estimated: `4764` + // Minimum execution time: 92_439_000 picoseconds. + Weight::from_parts(99_940_000, 0) + .saturating_add(Weight::from_parts(0, 4764)) + .saturating_add(T::DbWeight::get().reads(9)) + .saturating_add(T::DbWeight::get().writes(8)) + } + /// Storage: `Claims::Claims` (r:1 w:2) + /// Proof: `Claims::Claims` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Claims::Vesting` (r:1 w:2) + /// Proof: `Claims::Vesting` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Claims::Signing` (r:1 w:2) + /// Proof: `Claims::Signing` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Claims::Preclaims` (r:1 w:1) + /// Proof: `Claims::Preclaims` (`max_values`: None, `max_size`: None, mode: `Measured`) fn move_claim() -> Weight { - Weight::from_parts(64_975_000, 0u64) + // Proof Size summary in bytes: + // Measured: `369` + // Estimated: `3834` + // Minimum execution time: 28_020_000 picoseconds. + Weight::from_parts(29_512_000, 0) + .saturating_add(Weight::from_parts(0, 3834)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(7)) } diff --git a/runtime/src/weights/pallet_enclave_bridge.rs b/runtime/src/weights/pallet_enclave_bridge.rs index ef45322..a542435 100644 --- a/runtime/src/weights/pallet_enclave_bridge.rs +++ b/runtime/src/weights/pallet_enclave_bridge.rs @@ -1,11 +1,11 @@ //! Autogenerated weights for `pallet_enclave_bridge` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-07-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 39.0.0 +//! DATE: 2024-07-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `caribe`, CPU: `12th Gen Intel(R) Core(TM) i7-1260P` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("integritee-solo-fresh"), DB CACHE: 1024 +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("integritee-solo-fresh")`, DB CACHE: 1024 // Executed Command: // target/release/integritee-node @@ -36,100 +36,108 @@ impl pallet_enclave_bridge::WeightInfo for WeightInfo Weight { // Proof Size summary in bytes: - // Measured: `350` - // Estimated: `3815` - // Minimum execution time: 17_900_000 picoseconds. - Weight::from_parts(18_510_000, 0) - .saturating_add(Weight::from_parts(0, 3815)) + // Measured: `371` + // Estimated: `3836` + // Minimum execution time: 30_198_000 picoseconds. + Weight::from_parts(32_031_000, 0) + .saturating_add(Weight::from_parts(0, 3836)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn shield_funds() -> Weight { // Proof Size summary in bytes: // Measured: `52` // Estimated: `3593` - // Minimum execution time: 48_927_000 picoseconds. - Weight::from_parts(49_346_000, 0) + // Minimum execution time: 73_850_000 picoseconds. + Weight::from_parts(75_837_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: Teerex SovereignEnclaves (r:1 w:0) - /// Proof Skipped: Teerex SovereignEnclaves (max_values: None, max_size: None, mode: Measured) - /// Storage: EnclaveBridge ShardConfigRegistry (r:1 w:0) - /// Proof Skipped: EnclaveBridge ShardConfigRegistry (max_values: None, max_size: None, mode: Measured) - /// Storage: EnclaveBridge ShardStatus (r:1 w:1) - /// Proof Skipped: EnclaveBridge ShardStatus (max_values: None, max_size: None, mode: Measured) - /// Storage: EnclaveBridge ExecutedUnshieldCalls (r:1 w:1) - /// Proof Skipped: EnclaveBridge ExecutedUnshieldCalls (max_values: None, max_size: None, mode: Measured) - /// Storage: System Account (r:2 w:2) - /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// Storage: `Teerex::SovereignEnclaves` (r:1 w:0) + /// Proof: `Teerex::SovereignEnclaves` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `EnclaveBridge::ShardConfigRegistry` (r:1 w:0) + /// Proof: `EnclaveBridge::ShardConfigRegistry` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `EnclaveBridge::ShardStatus` (r:1 w:1) + /// Proof: `EnclaveBridge::ShardStatus` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `EnclaveBridge::ExecutedUnshieldCalls` (r:1 w:1) + /// Proof: `EnclaveBridge::ExecutedUnshieldCalls` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `System::Account` (r:2 w:2) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn unshield_funds() -> Weight { // Proof Size summary in bytes: - // Measured: `490` + // Measured: `511` // Estimated: `6196` - // Minimum execution time: 79_834_000 picoseconds. - Weight::from_parts(81_535_000, 0) + // Minimum execution time: 105_678_000 picoseconds. + Weight::from_parts(109_746_000, 0) .saturating_add(Weight::from_parts(0, 6196)) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(4)) } - /// Storage: Teerex SovereignEnclaves (r:1 w:0) - /// Proof Skipped: Teerex SovereignEnclaves (max_values: None, max_size: None, mode: Measured) - /// Storage: EnclaveBridge ShardStatus (r:1 w:1) - /// Proof Skipped: EnclaveBridge ShardStatus (max_values: None, max_size: None, mode: Measured) - /// Storage: System EventTopics (r:6 w:6) - /// Proof Skipped: System EventTopics (max_values: None, max_size: None, mode: Measured) + /// Storage: `Teerex::SovereignEnclaves` (r:1 w:0) + /// Proof: `Teerex::SovereignEnclaves` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `EnclaveBridge::ShardStatus` (r:1 w:1) + /// Proof: `EnclaveBridge::ShardStatus` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `System::EventTopics` (r:6 w:6) + /// Proof: `System::EventTopics` (`max_values`: None, `max_size`: None, mode: `Measured`) /// The range of component `l` is `[0, 100]`. /// The range of component `t` is `[1, 5]`. - fn publish_hash(_l: u32, t: u32, ) -> Weight { + fn publish_hash(l: u32, t: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `350` - // Estimated: `3815 + t * (2475 ±0)` - // Minimum execution time: 21_138_000 picoseconds. - Weight::from_parts(22_148_005, 0) - .saturating_add(Weight::from_parts(0, 3815)) - // Standard Error: 68_089 - .saturating_add(Weight::from_parts(2_376_164, 0).saturating_mul(t.into())) + // Measured: `371` + // Estimated: `3836 + t * (2475 ±0)` + // Minimum execution time: 30_952_000 picoseconds. + Weight::from_parts(24_040_704, 0) + .saturating_add(Weight::from_parts(0, 3836)) + // Standard Error: 8_154 + .saturating_add(Weight::from_parts(23_530, 0).saturating_mul(l.into())) + // Standard Error: 178_695 + .saturating_add(Weight::from_parts(5_070_215, 0).saturating_mul(t.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(t.into()))) .saturating_add(T::DbWeight::get().writes(2)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(t.into()))) .saturating_add(Weight::from_parts(0, 2475).saturating_mul(t.into())) } - /// Storage: Teerex SovereignEnclaves (r:1 w:0) - /// Proof Skipped: Teerex SovereignEnclaves (max_values: None, max_size: None, mode: Measured) - /// Storage: EnclaveBridge ShardConfigRegistry (r:1 w:1) - /// Proof Skipped: EnclaveBridge ShardConfigRegistry (max_values: None, max_size: None, mode: Measured) - /// Storage: EnclaveBridge ShardStatus (r:1 w:1) - /// Proof Skipped: EnclaveBridge ShardStatus (max_values: None, max_size: None, mode: Measured) + /// Storage: `EnclaveBridge::ShardConfigRegistry` (r:1 w:1) + /// Proof: `EnclaveBridge::ShardConfigRegistry` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Teerex::SovereignEnclaves` (r:1 w:0) + /// Proof: `Teerex::SovereignEnclaves` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `EnclaveBridge::ShardStatus` (r:1 w:1) + /// Proof: `EnclaveBridge::ShardStatus` (`max_values`: None, `max_size`: None, mode: `Measured`) fn update_shard_config() -> Weight { // Proof Size summary in bytes: - // Measured: `463` - // Estimated: `3928` - // Minimum execution time: 29_961_000 picoseconds. - Weight::from_parts(31_830_000, 0) - .saturating_add(Weight::from_parts(0, 3928)) + // Measured: `484` + // Estimated: `3949` + // Minimum execution time: 40_354_000 picoseconds. + Weight::from_parts(41_833_000, 0) + .saturating_add(Weight::from_parts(0, 3949)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(2)) } - + /// Storage: `EnclaveBridge::ShardStatus` (r:1 w:1) + /// Proof: `EnclaveBridge::ShardStatus` (`max_values`: None, `max_size`: None, mode: `Measured`) fn purge_enclave_from_shard_status() -> Weight { - Weight::from_parts(10_000_000, 0) + // Proof Size summary in bytes: + // Measured: `223` + // Estimated: `3688` + // Minimum execution time: 29_052_000 picoseconds. + Weight::from_parts(30_781_000, 0) + .saturating_add(Weight::from_parts(0, 3688)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } diff --git a/runtime/src/weights/pallet_multisig.rs b/runtime/src/weights/pallet_multisig.rs index 44cfd65..ad95934 100644 --- a/runtime/src/weights/pallet_multisig.rs +++ b/runtime/src/weights/pallet_multisig.rs @@ -1,13 +1,16 @@ //! Autogenerated weights for `pallet_multisig` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2021-11-11, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("integritee-solo-fresh"), DB CACHE: 128 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 39.0.0 +//! DATE: 2024-07-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `caribe`, CPU: `12th Gen Intel(R) Core(TM) i7-1260P` +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("integritee-solo-fresh")`, DB CACHE: 1024 // Executed Command: -// ./integritee-node +// target/release/integritee-node // benchmark +// pallet // --chain=integritee-solo-fresh // --steps=50 // --repeat=20 @@ -18,74 +21,125 @@ // --heap-pages=4096 // --output=runtime/src/weights/pallet_multisig.rs - #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] +#![allow(missing_docs)] use frame_support::{traits::Get, weights::Weight}; -use sp_std::marker::PhantomData; +use core::marker::PhantomData; -/// Weight functions for pallet_multisig. +/// Weight functions for `pallet_multisig`. pub struct WeightInfo(PhantomData); impl pallet_multisig::WeightInfo for WeightInfo { + /// The range of component `z` is `[0, 10000]`. fn as_multi_threshold_1(z: u32, ) -> Weight { - Weight::from_parts(9_050_000, 0u64) - // Standard Error: 0 - .saturating_add(Weight::from_parts(3_000, 0u64)).saturating_mul(z.into()) + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 5_519_000 picoseconds. + Weight::from_parts(6_281_946, 0) + .saturating_add(Weight::from_parts(0, 0)) + // Standard Error: 3 + .saturating_add(Weight::from_parts(372, 0).saturating_mul(z.into())) } - // Storage: Multisig Multisigs (r:1 w:1) - // Storage: unknown [0x3a65787472696e7369635f696e646578] (r:1 w:0) + /// Storage: `Multisig::Multisigs` (r:1 w:1) + /// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(465), added: 2940, mode: `MaxEncodedLen`) + /// The range of component `s` is `[2, 10]`. + /// The range of component `z` is `[0, 10000]`. fn as_multi_create(s: u32, z: u32, ) -> Weight { - Weight::from_parts(99_228_000, 0u64) - // Standard Error: 87_000 - .saturating_add(Weight::from_parts(793_000, 0u64)).saturating_mul(s.into()) - // Standard Error: 0 - .saturating_add(Weight::from_parts(3_000, 0u64)).saturating_mul(z.into()) - .saturating_add(T::DbWeight::get().reads(2)) + // Proof Size summary in bytes: + // Measured: `130 + s * (14 ±0)` + // Estimated: `3930` + // Minimum execution time: 27_756_000 picoseconds. + Weight::from_parts(28_130_379, 0) + .saturating_add(Weight::from_parts(0, 3930)) + // Standard Error: 13_564 + .saturating_add(Weight::from_parts(183_446, 0).saturating_mul(s.into())) + // Standard Error: 11 + .saturating_add(Weight::from_parts(1_065, 0).saturating_mul(z.into())) + .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } - // Storage: Multisig Multisigs (r:1 w:1) - fn as_multi_approve(_s: u32, z: u32, ) -> Weight { - Weight::from_parts(70_439_000, 0u64) - // Standard Error: 0 - .saturating_add(Weight::from_parts(3_000, 0u64)).saturating_mul(z.into()) + /// Storage: `Multisig::Multisigs` (r:1 w:1) + /// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(465), added: 2940, mode: `MaxEncodedLen`) + /// The range of component `s` is `[3, 10]`. + /// The range of component `z` is `[0, 10000]`. + fn as_multi_approve(s: u32, z: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `248` + // Estimated: `3930` + // Minimum execution time: 15_506_000 picoseconds. + Weight::from_parts(14_577_994, 0) + .saturating_add(Weight::from_parts(0, 3930)) + // Standard Error: 9_476 + .saturating_add(Weight::from_parts(174_483, 0).saturating_mul(s.into())) + // Standard Error: 7 + .saturating_add(Weight::from_parts(1_080, 0).saturating_mul(z.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } - // Storage: Multisig Multisigs (r:1 w:1) - // Storage: Multisig Calls (r:1 w:1) - // Storage: System Account (r:1 w:1) + /// Storage: `Multisig::Multisigs` (r:1 w:1) + /// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(465), added: 2940, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// The range of component `s` is `[2, 10]`. + /// The range of component `z` is `[0, 10000]`. fn as_multi_complete(s: u32, z: u32, ) -> Weight { - Weight::from_parts(139_018_000, 0u64) - // Standard Error: 317_000 - .saturating_add(Weight::from_parts(629_000, 0u64)).saturating_mul(s.into()) - // Standard Error: 0 - .saturating_add(Weight::from_parts(9_000, 0u64)).saturating_mul(z.into()) - .saturating_add(T::DbWeight::get().reads(3)) - .saturating_add(T::DbWeight::get().writes(3)) + // Proof Size summary in bytes: + // Measured: `272 + s * (46 ±0)` + // Estimated: `3930` + // Minimum execution time: 29_936_000 picoseconds. + Weight::from_parts(27_338_959, 0) + .saturating_add(Weight::from_parts(0, 3930)) + // Standard Error: 39_172 + .saturating_add(Weight::from_parts(488_113, 0).saturating_mul(s.into())) + // Standard Error: 33 + .saturating_add(Weight::from_parts(1_186, 0).saturating_mul(z.into())) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(2)) } - // Storage: Multisig Multisigs (r:1 w:1) - // Storage: unknown [0x3a65787472696e7369635f696e646578] (r:1 w:0) + /// Storage: `Multisig::Multisigs` (r:1 w:1) + /// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(465), added: 2940, mode: `MaxEncodedLen`) + /// The range of component `s` is `[2, 10]`. fn approve_as_multi_create(s: u32, ) -> Weight { - Weight::from_parts(93_678_000, 0u64) - // Standard Error: 75_000 - .saturating_add(Weight::from_parts(1_063_000, 0u64)).saturating_mul(s.into()) - .saturating_add(T::DbWeight::get().reads(2)) + // Proof Size summary in bytes: + // Measured: `130 + s * (14 ±0)` + // Estimated: `3930` + // Minimum execution time: 25_305_000 picoseconds. + Weight::from_parts(25_299_178, 0) + .saturating_add(Weight::from_parts(0, 3930)) + // Standard Error: 11_627 + .saturating_add(Weight::from_parts(702_686, 0).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } - // Storage: Multisig Multisigs (r:1 w:1) - // Storage: Multisig Calls (r:1 w:0) + /// Storage: `Multisig::Multisigs` (r:1 w:1) + /// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(465), added: 2940, mode: `MaxEncodedLen`) + /// The range of component `s` is `[2, 10]`. fn approve_as_multi_approve(_s: u32, ) -> Weight { - Weight::from_parts(81_581_000, 0u64) - .saturating_add(T::DbWeight::get().reads(2)) + // Proof Size summary in bytes: + // Measured: `248` + // Estimated: `3930` + // Minimum execution time: 13_809_000 picoseconds. + Weight::from_parts(15_782_661, 0) + .saturating_add(Weight::from_parts(0, 3930)) + .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } - // Storage: Multisig Multisigs (r:1 w:1) - // Storage: Multisig Calls (r:1 w:1) - fn cancel_as_multi(_s: u32, ) -> Weight { - Weight::from_parts(194_725_000, 0u64) - .saturating_add(T::DbWeight::get().reads(2)) - .saturating_add(T::DbWeight::get().writes(2)) + /// Storage: `Multisig::Multisigs` (r:1 w:1) + /// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(465), added: 2940, mode: `MaxEncodedLen`) + /// The range of component `s` is `[2, 10]`. + fn cancel_as_multi(s: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `336 + s * (14 ±0)` + // Estimated: `3930` + // Minimum execution time: 25_035_000 picoseconds. + Weight::from_parts(25_920_273, 0) + .saturating_add(Weight::from_parts(0, 3930)) + // Standard Error: 9_311 + .saturating_add(Weight::from_parts(349_878, 0).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) } } diff --git a/runtime/src/weights/pallet_preimage.rs b/runtime/src/weights/pallet_preimage.rs index 2b3f855..3969dfc 100644 --- a/runtime/src/weights/pallet_preimage.rs +++ b/runtime/src/weights/pallet_preimage.rs @@ -1,17 +1,17 @@ //! Autogenerated weights for `pallet_preimage` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 36.0.0 -//! DATE: 2024-05-31, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 39.0.0 +//! DATE: 2024-07-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `caribe`, CPU: `12th Gen Intel(R) Core(TM) i7-1260P` -//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("integritee-rococo-local-dev")`, DB CACHE: 1024 +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("integritee-solo-fresh")`, DB CACHE: 1024 // Executed Command: -// ./target/release/integritee-collator +// target/release/integritee-node // benchmark // pallet -// --chain=integritee-rococo-local-dev +// --chain=integritee-solo-fresh // --steps=50 // --repeat=20 // --pallet=pallet_preimage @@ -19,7 +19,7 @@ // --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 -// --output=./polkadot-parachains/integritee-runtime/src/weights/pallet_preimage.rs +// --output=runtime/src/weights/pallet_preimage.rs #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] @@ -45,11 +45,11 @@ impl pallet_preimage::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `76` // Estimated: `3556` - // Minimum execution time: 64_018_000 picoseconds. - Weight::from_parts(64_742_000, 0) + // Minimum execution time: 47_046_000 picoseconds. + Weight::from_parts(47_834_000, 0) .saturating_add(Weight::from_parts(0, 3556)) - // Standard Error: 13 - .saturating_add(Weight::from_parts(2_079, 0).saturating_mul(s.into())) + // Standard Error: 3 + .saturating_add(Weight::from_parts(1_241, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) } @@ -64,11 +64,11 @@ impl pallet_preimage::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `140` // Estimated: `3556` - // Minimum execution time: 13_391_000 picoseconds. - Weight::from_parts(13_844_000, 0) + // Minimum execution time: 14_673_000 picoseconds. + Weight::from_parts(15_506_000, 0) .saturating_add(Weight::from_parts(0, 3556)) - // Standard Error: 7 - .saturating_add(Weight::from_parts(2_176, 0).saturating_mul(s.into())) + // Standard Error: 3 + .saturating_add(Weight::from_parts(1_224, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -83,11 +83,11 @@ impl pallet_preimage::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `140` // Estimated: `3556` - // Minimum execution time: 13_312_000 picoseconds. - Weight::from_parts(386_550_663, 0) + // Minimum execution time: 12_325_000 picoseconds. + Weight::from_parts(12_966_000, 0) .saturating_add(Weight::from_parts(0, 3556)) - // Standard Error: 16 - .saturating_add(Weight::from_parts(1_803, 0).saturating_mul(s.into())) + // Standard Error: 3 + .saturating_add(Weight::from_parts(1_260, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -103,8 +103,8 @@ impl pallet_preimage::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `277` // Estimated: `3556` - // Minimum execution time: 48_310_000 picoseconds. - Weight::from_parts(58_772_000, 0) + // Minimum execution time: 57_114_000 picoseconds. + Weight::from_parts(60_042_000, 0) .saturating_add(Weight::from_parts(0, 3556)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) @@ -119,8 +119,8 @@ impl pallet_preimage::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `178` // Estimated: `3556` - // Minimum execution time: 16_952_000 picoseconds. - Weight::from_parts(18_277_000, 0) + // Minimum execution time: 17_214_000 picoseconds. + Weight::from_parts(18_688_000, 0) .saturating_add(Weight::from_parts(0, 3556)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -133,8 +133,8 @@ impl pallet_preimage::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `222` // Estimated: `3556` - // Minimum execution time: 15_797_000 picoseconds. - Weight::from_parts(22_185_000, 0) + // Minimum execution time: 15_407_000 picoseconds. + Weight::from_parts(16_480_000, 0) .saturating_add(Weight::from_parts(0, 3556)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -147,8 +147,8 @@ impl pallet_preimage::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `178` // Estimated: `3556` - // Minimum execution time: 10_349_000 picoseconds. - Weight::from_parts(11_629_000, 0) + // Minimum execution time: 10_206_000 picoseconds. + Weight::from_parts(12_437_000, 0) .saturating_add(Weight::from_parts(0, 3556)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -161,8 +161,8 @@ impl pallet_preimage::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `76` // Estimated: `3556` - // Minimum execution time: 9_159_000 picoseconds. - Weight::from_parts(9_688_000, 0) + // Minimum execution time: 9_574_000 picoseconds. + Weight::from_parts(10_692_000, 0) .saturating_add(Weight::from_parts(0, 3556)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -175,8 +175,8 @@ impl pallet_preimage::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `140` // Estimated: `3556` - // Minimum execution time: 7_601_000 picoseconds. - Weight::from_parts(7_933_000, 0) + // Minimum execution time: 6_919_000 picoseconds. + Weight::from_parts(7_531_000, 0) .saturating_add(Weight::from_parts(0, 3556)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -191,8 +191,8 @@ impl pallet_preimage::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `178` // Estimated: `3556` - // Minimum execution time: 15_466_000 picoseconds. - Weight::from_parts(18_832_000, 0) + // Minimum execution time: 15_439_000 picoseconds. + Weight::from_parts(18_851_000, 0) .saturating_add(Weight::from_parts(0, 3556)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -205,8 +205,8 @@ impl pallet_preimage::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `140` // Estimated: `3556` - // Minimum execution time: 7_599_000 picoseconds. - Weight::from_parts(7_924_000, 0) + // Minimum execution time: 8_442_000 picoseconds. + Weight::from_parts(9_150_000, 0) .saturating_add(Weight::from_parts(0, 3556)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -219,8 +219,8 @@ impl pallet_preimage::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `140` // Estimated: `3556` - // Minimum execution time: 7_146_000 picoseconds. - Weight::from_parts(7_737_000, 0) + // Minimum execution time: 8_894_000 picoseconds. + Weight::from_parts(10_012_000, 0) .saturating_add(Weight::from_parts(0, 3556)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -238,11 +238,11 @@ impl pallet_preimage::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0 + n * (227 ±0)` // Estimated: `990 + n * (2603 ±0)` - // Minimum execution time: 42_713_000 picoseconds. - Weight::from_parts(43_344_000, 0) + // Minimum execution time: 52_579_000 picoseconds. + Weight::from_parts(53_365_000, 0) .saturating_add(Weight::from_parts(0, 990)) - // Standard Error: 78_572 - .saturating_add(Weight::from_parts(47_242_344, 0).saturating_mul(n.into())) + // Standard Error: 171_641 + .saturating_add(Weight::from_parts(51_083_905, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(n.into()))) .saturating_add(T::DbWeight::get().writes((4_u64).saturating_mul(n.into()))) .saturating_add(Weight::from_parts(0, 2603).saturating_mul(n.into())) diff --git a/runtime/src/weights/pallet_proxy.rs b/runtime/src/weights/pallet_proxy.rs index 0c11075..8921d19 100644 --- a/runtime/src/weights/pallet_proxy.rs +++ b/runtime/src/weights/pallet_proxy.rs @@ -1,13 +1,16 @@ //! Autogenerated weights for `pallet_proxy` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2021-11-11, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("integritee-solo-fresh"), DB CACHE: 128 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 39.0.0 +//! DATE: 2024-07-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `caribe`, CPU: `12th Gen Intel(R) Core(TM) i7-1260P` +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("integritee-solo-fresh")`, DB CACHE: 1024 // Executed Command: -// ./integritee-node +// target/release/integritee-node // benchmark +// pallet // --chain=integritee-solo-fresh // --steps=50 // --repeat=20 @@ -18,111 +21,180 @@ // --heap-pages=4096 // --output=runtime/src/weights/pallet_proxy.rs - #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] +#![allow(missing_docs)] use frame_support::{traits::Get, weights::Weight}; -use sp_std::marker::PhantomData; +use core::marker::PhantomData; -/// Weight functions for pallet_proxy. +/// Weight functions for `pallet_proxy`. pub struct WeightInfo(PhantomData); impl pallet_proxy::WeightInfo for WeightInfo { - // Storage: Proxy Proxies (r:1 w:0) - fn proxy(p: u32, ) -> Weight { - Weight::from_parts(49_346_000, 0u64) - // Standard Error: 15_000 - .saturating_add(Weight::from_parts(423_000, 0u64)).saturating_mul(p.into()) + /// Storage: `Proxy::Proxies` (r:1 w:0) + /// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`) + /// The range of component `p` is `[1, 31]`. + fn proxy(_p: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `90 + p * (37 ±0)` + // Estimated: `4706` + // Minimum execution time: 12_347_000 picoseconds. + Weight::from_parts(25_311_460, 0) + .saturating_add(Weight::from_parts(0, 4706)) .saturating_add(T::DbWeight::get().reads(1)) } - // Storage: Proxy Proxies (r:1 w:0) - // Storage: Proxy Announcements (r:1 w:1) - // Storage: System Account (r:1 w:1) + /// Storage: `Proxy::Proxies` (r:1 w:0) + /// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`) + /// Storage: `Proxy::Announcements` (r:1 w:1) + /// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// The range of component `a` is `[0, 31]`. + /// The range of component `p` is `[1, 31]`. fn proxy_announced(a: u32, p: u32, ) -> Weight { - Weight::from_parts(108_778_000, 0u64) - // Standard Error: 78_000 - .saturating_add(Weight::from_parts(985_000, 0u64)).saturating_mul(a.into()) - // Standard Error: 81_000 - .saturating_add(Weight::from_parts(472_000, 0u64)).saturating_mul(p.into()) + // Proof Size summary in bytes: + // Measured: `380 + a * (68 ±0) + p * (37 ±0)` + // Estimated: `5698` + // Minimum execution time: 31_721_000 picoseconds. + Weight::from_parts(28_313_589, 0) + .saturating_add(Weight::from_parts(0, 5698)) + // Standard Error: 35_000 + .saturating_add(Weight::from_parts(404_412, 0).saturating_mul(a.into())) + // Standard Error: 36_162 + .saturating_add(Weight::from_parts(200_328, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(2)) } - // Storage: Proxy Announcements (r:1 w:1) - // Storage: System Account (r:1 w:1) - fn remove_announcement(a: u32, _p: u32, ) -> Weight { - Weight::from_parts(80_354_000, 0u64) - // Standard Error: 21_000 - .saturating_add(Weight::from_parts(1_101_000, 0u64)).saturating_mul(a.into()) + /// Storage: `Proxy::Announcements` (r:1 w:1) + /// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// The range of component `a` is `[0, 31]`. + /// The range of component `p` is `[1, 31]`. + fn remove_announcement(_a: u32, _p: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `295 + a * (68 ±0)` + // Estimated: `5698` + // Minimum execution time: 24_516_000 picoseconds. + Weight::from_parts(31_792_088, 0) + .saturating_add(Weight::from_parts(0, 5698)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) } - // Storage: Proxy Announcements (r:1 w:1) - // Storage: System Account (r:1 w:1) + /// Storage: `Proxy::Announcements` (r:1 w:1) + /// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// The range of component `a` is `[0, 31]`. + /// The range of component `p` is `[1, 31]`. fn reject_announcement(a: u32, p: u32, ) -> Weight { - Weight::from_parts(73_831_000, 0u64) - // Standard Error: 53_000 - .saturating_add(Weight::from_parts(1_185_000, 0u64)).saturating_mul(a.into()) - // Standard Error: 55_000 - .saturating_add(Weight::from_parts(162_000, 0u64)).saturating_mul(p.into()) + // Proof Size summary in bytes: + // Measured: `295 + a * (68 ±0)` + // Estimated: `5698` + // Minimum execution time: 21_879_000 picoseconds. + Weight::from_parts(21_096_778, 0) + .saturating_add(Weight::from_parts(0, 5698)) + // Standard Error: 10_779 + .saturating_add(Weight::from_parts(234_668, 0).saturating_mul(a.into())) + // Standard Error: 11_136 + .saturating_add(Weight::from_parts(62_666, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) } - // Storage: Proxy Proxies (r:1 w:0) - // Storage: Proxy Announcements (r:1 w:1) - // Storage: System Account (r:1 w:1) + /// Storage: `Proxy::Proxies` (r:1 w:0) + /// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`) + /// Storage: `Proxy::Announcements` (r:1 w:1) + /// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// The range of component `a` is `[0, 31]`. + /// The range of component `p` is `[1, 31]`. fn announce(a: u32, p: u32, ) -> Weight { - Weight::from_parts(97_013_000, 0u64) - // Standard Error: 61_000 - .saturating_add(Weight::from_parts(1_224_000, 0u64)).saturating_mul(a.into()) - // Standard Error: 64_000 - .saturating_add(Weight::from_parts(500_000, 0u64)).saturating_mul(p.into()) + // Proof Size summary in bytes: + // Measured: `312 + a * (68 ±0) + p * (37 ±0)` + // Estimated: `5698` + // Minimum execution time: 28_371_000 picoseconds. + Weight::from_parts(27_569_104, 0) + .saturating_add(Weight::from_parts(0, 5698)) + // Standard Error: 8_842 + .saturating_add(Weight::from_parts(241_185, 0).saturating_mul(a.into())) + // Standard Error: 9_136 + .saturating_add(Weight::from_parts(104_153, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(2)) } - // Storage: Proxy Proxies (r:1 w:1) + /// Storage: `Proxy::Proxies` (r:1 w:1) + /// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`) + /// The range of component `p` is `[1, 31]`. fn add_proxy(p: u32, ) -> Weight { - Weight::from_parts(84_020_000, 0u64) - // Standard Error: 55_000 - .saturating_add(Weight::from_parts(591_000, 0u64)).saturating_mul(p.into()) + // Proof Size summary in bytes: + // Measured: `90 + p * (37 ±0)` + // Estimated: `4706` + // Minimum execution time: 20_577_000 picoseconds. + Weight::from_parts(22_109_667, 0) + .saturating_add(Weight::from_parts(0, 4706)) + // Standard Error: 5_387 + .saturating_add(Weight::from_parts(46_121, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } - // Storage: Proxy Proxies (r:1 w:1) - fn remove_proxy(p: u32, ) -> Weight { - Weight::from_parts(78_733_000, 0u64) - // Standard Error: 49_000 - .saturating_add(Weight::from_parts(234_000, 0u64)).saturating_mul(p.into()) + /// Storage: `Proxy::Proxies` (r:1 w:1) + /// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`) + /// The range of component `p` is `[1, 31]`. + fn remove_proxy(_p: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `90 + p * (37 ±0)` + // Estimated: `4706` + // Minimum execution time: 21_351_000 picoseconds. + Weight::from_parts(23_646_246, 0) + .saturating_add(Weight::from_parts(0, 4706)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } - // Storage: Proxy Proxies (r:1 w:1) + /// Storage: `Proxy::Proxies` (r:1 w:1) + /// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`) + /// The range of component `p` is `[1, 31]`. fn remove_proxies(p: u32, ) -> Weight { - Weight::from_parts(70_957_000, 0u64) - // Standard Error: 15_000 - .saturating_add(Weight::from_parts(451_000, 0u64)).saturating_mul(p.into()) + // Proof Size summary in bytes: + // Measured: `90 + p * (37 ±0)` + // Estimated: `4706` + // Minimum execution time: 18_751_000 picoseconds. + Weight::from_parts(20_827_715, 0) + .saturating_add(Weight::from_parts(0, 4706)) + // Standard Error: 2_626 + .saturating_add(Weight::from_parts(3_144, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } - // Storage: unknown [0x3a65787472696e7369635f696e646578] (r:1 w:0) - // Storage: Proxy Proxies (r:1 w:1) + /// Storage: `Proxy::Proxies` (r:1 w:1) + /// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`) /// The range of component `p` is `[1, 31]`. fn create_pure(p: u32, ) -> Weight { - // Minimum execution time: 48_409 nanoseconds. - Weight::from_parts(55_098_467, 0u64) - // Standard Error: 31_462 - .saturating_add(Weight::from_parts(38_634, 0u64).saturating_mul(p as u64)) - .saturating_add(T::DbWeight::get().reads(2 as u64)) - .saturating_add(T::DbWeight::get().writes(1 as u64)) + // Proof Size summary in bytes: + // Measured: `102` + // Estimated: `4706` + // Minimum execution time: 21_974_000 picoseconds. + Weight::from_parts(22_963_981, 0) + .saturating_add(Weight::from_parts(0, 4706)) + // Standard Error: 3_594 + .saturating_add(Weight::from_parts(65_795, 0).saturating_mul(p.into())) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) } - // Storage: Proxy Proxies (r:1 w:1) + /// Storage: `Proxy::Proxies` (r:1 w:1) + /// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`) /// The range of component `p` is `[0, 30]`. fn kill_pure(p: u32, ) -> Weight { - // Minimum execution time: 40_317 nanoseconds. - Weight::from_parts(41_597_802, 0u64) - // Standard Error: 15_439 - .saturating_add(Weight::from_parts(210_246, 0u64).saturating_mul(p as u64)) - .saturating_add(T::DbWeight::get().reads(1 as u64)) - .saturating_add(T::DbWeight::get().writes(1 as u64)) + // Proof Size summary in bytes: + // Measured: `127 + p * (37 ±0)` + // Estimated: `4706` + // Minimum execution time: 20_036_000 picoseconds. + Weight::from_parts(22_727_326, 0) + .saturating_add(Weight::from_parts(0, 4706)) + // Standard Error: 12_427 + .saturating_add(Weight::from_parts(23_413, 0).saturating_mul(p.into())) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) } } diff --git a/runtime/src/weights/pallet_scheduler.rs b/runtime/src/weights/pallet_scheduler.rs index 376f46a..40eec9b 100644 --- a/runtime/src/weights/pallet_scheduler.rs +++ b/runtime/src/weights/pallet_scheduler.rs @@ -1,17 +1,17 @@ //! Autogenerated weights for `pallet_scheduler` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 36.0.0 -//! DATE: 2024-05-31, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 39.0.0 +//! DATE: 2024-07-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `caribe`, CPU: `12th Gen Intel(R) Core(TM) i7-1260P` -//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("integritee-rococo-local-dev")`, DB CACHE: 1024 +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("integritee-solo-fresh")`, DB CACHE: 1024 // Executed Command: -// ./target/release/integritee-collator +// target/release/integritee-node // benchmark // pallet -// --chain=integritee-rococo-local-dev +// --chain=integritee-solo-fresh // --steps=50 // --repeat=20 // --pallet=pallet_scheduler @@ -19,7 +19,7 @@ // --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 -// --output=./polkadot-parachains/integritee-runtime/src/weights/pallet_scheduler.rs +// --output=runtime/src/weights/pallet_scheduler.rs #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] @@ -38,24 +38,24 @@ impl pallet_scheduler::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `31` // Estimated: `1489` - // Minimum execution time: 3_163_000 picoseconds. - Weight::from_parts(3_338_000, 0) + // Minimum execution time: 4_090_000 picoseconds. + Weight::from_parts(4_506_000, 0) .saturating_add(Weight::from_parts(0, 1489)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } /// Storage: `Scheduler::Agenda` (r:1 w:1) - /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(10463), added: 12938, mode: `MaxEncodedLen`) /// The range of component `s` is `[0, 50]`. fn service_agenda_base(s: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `78 + s * (177 ±0)` - // Estimated: `42428` - // Minimum execution time: 3_831_000 picoseconds. - Weight::from_parts(5_373_775, 0) - .saturating_add(Weight::from_parts(0, 42428)) - // Standard Error: 4_592 - .saturating_add(Weight::from_parts(489_247, 0).saturating_mul(s.into())) + // Estimated: `13928` + // Minimum execution time: 5_270_000 picoseconds. + Weight::from_parts(10_544_741, 0) + .saturating_add(Weight::from_parts(0, 13928)) + // Standard Error: 4_157 + .saturating_add(Weight::from_parts(315_559, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -63,8 +63,8 @@ impl pallet_scheduler::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_301_000 picoseconds. - Weight::from_parts(3_442_000, 0) + // Minimum execution time: 2_575_000 picoseconds. + Weight::from_parts(2_839_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// Storage: `Preimage::PreimageFor` (r:1 w:1) @@ -78,11 +78,11 @@ impl pallet_scheduler::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `213 + s * (1 ±0)` // Estimated: `3678 + s * (1 ±0)` - // Minimum execution time: 18_938_000 picoseconds. - Weight::from_parts(19_382_000, 0) + // Minimum execution time: 15_670_000 picoseconds. + Weight::from_parts(16_027_000, 0) .saturating_add(Weight::from_parts(0, 3678)) - // Standard Error: 1 - .saturating_add(Weight::from_parts(937, 0).saturating_mul(s.into())) + // Standard Error: 3 + .saturating_add(Weight::from_parts(871, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(2)) .saturating_add(Weight::from_parts(0, 1).saturating_mul(s.into())) @@ -93,8 +93,8 @@ impl pallet_scheduler::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_890_000 picoseconds. - Weight::from_parts(4_008_000, 0) + // Minimum execution time: 4_306_000 picoseconds. + Weight::from_parts(10_246_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -102,43 +102,43 @@ impl pallet_scheduler::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_810_000 picoseconds. - Weight::from_parts(2_879_000, 0) + // Minimum execution time: 2_570_000 picoseconds. + Weight::from_parts(2_779_000, 0) .saturating_add(Weight::from_parts(0, 0)) } fn execute_dispatch_signed() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_897_000 picoseconds. - Weight::from_parts(2_011_000, 0) + // Minimum execution time: 1_826_000 picoseconds. + Weight::from_parts(1_955_000, 0) .saturating_add(Weight::from_parts(0, 0)) } fn execute_dispatch_unsigned() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_876_000 picoseconds. - Weight::from_parts(1_986_000, 0) + // Minimum execution time: 1_909_000 picoseconds. + Weight::from_parts(2_032_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// Storage: `Scheduler::Agenda` (r:1 w:1) - /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(10463), added: 12938, mode: `MaxEncodedLen`) /// The range of component `s` is `[0, 49]`. fn schedule(s: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `78 + s * (177 ±0)` - // Estimated: `42428` - // Minimum execution time: 8_373_000 picoseconds. - Weight::from_parts(11_181_685, 0) - .saturating_add(Weight::from_parts(0, 42428)) - // Standard Error: 2_366 - .saturating_add(Weight::from_parts(327_833, 0).saturating_mul(s.into())) + // Estimated: `13928` + // Minimum execution time: 8_778_000 picoseconds. + Weight::from_parts(12_848_938, 0) + .saturating_add(Weight::from_parts(0, 13928)) + // Standard Error: 4_508 + .saturating_add(Weight::from_parts(380_663, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } /// Storage: `Scheduler::Agenda` (r:1 w:1) - /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(10463), added: 12938, mode: `MaxEncodedLen`) /// Storage: `Scheduler::Retries` (r:0 w:1) /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`) /// Storage: `Scheduler::Lookup` (r:0 w:1) @@ -147,125 +147,125 @@ impl pallet_scheduler::WeightInfo for WeightInfo { fn cancel(s: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `78 + s * (177 ±0)` - // Estimated: `42428` - // Minimum execution time: 12_403_000 picoseconds. - Weight::from_parts(12_767_894, 0) - .saturating_add(Weight::from_parts(0, 42428)) - // Standard Error: 2_658 - .saturating_add(Weight::from_parts(549_590, 0).saturating_mul(s.into())) + // Estimated: `13928` + // Minimum execution time: 14_872_000 picoseconds. + Weight::from_parts(19_034_252, 0) + .saturating_add(Weight::from_parts(0, 13928)) + // Standard Error: 12_971 + .saturating_add(Weight::from_parts(672_323, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(3)) } /// Storage: `Scheduler::Lookup` (r:1 w:1) /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) /// Storage: `Scheduler::Agenda` (r:1 w:1) - /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(10463), added: 12938, mode: `MaxEncodedLen`) /// The range of component `s` is `[0, 49]`. fn schedule_named(s: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `255 + s * (185 ±0)` - // Estimated: `42428` - // Minimum execution time: 10_043_000 picoseconds. - Weight::from_parts(14_732_637, 0) - .saturating_add(Weight::from_parts(0, 42428)) - // Standard Error: 12_041 - .saturating_add(Weight::from_parts(438_836, 0).saturating_mul(s.into())) + // Estimated: `13928` + // Minimum execution time: 12_044_000 picoseconds. + Weight::from_parts(17_619_147, 0) + .saturating_add(Weight::from_parts(0, 13928)) + // Standard Error: 6_396 + .saturating_add(Weight::from_parts(488_293, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) } /// Storage: `Scheduler::Lookup` (r:1 w:1) /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) /// Storage: `Scheduler::Agenda` (r:1 w:1) - /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(10463), added: 12938, mode: `MaxEncodedLen`) /// Storage: `Scheduler::Retries` (r:0 w:1) /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`) /// The range of component `s` is `[1, 50]`. fn cancel_named(s: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `281 + s * (185 ±0)` - // Estimated: `42428` - // Minimum execution time: 14_985_000 picoseconds. - Weight::from_parts(16_391_814, 0) - .saturating_add(Weight::from_parts(0, 42428)) - // Standard Error: 2_483 - .saturating_add(Weight::from_parts(611_972, 0).saturating_mul(s.into())) + // Estimated: `13928` + // Minimum execution time: 17_706_000 picoseconds. + Weight::from_parts(18_506_936, 0) + .saturating_add(Weight::from_parts(0, 13928)) + // Standard Error: 2_645 + .saturating_add(Weight::from_parts(611_170, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(3)) } /// Storage: `Scheduler::Agenda` (r:1 w:1) - /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(10463), added: 12938, mode: `MaxEncodedLen`) /// Storage: `Scheduler::Retries` (r:0 w:1) /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`) /// The range of component `s` is `[1, 50]`. fn schedule_retry(s: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `118` - // Estimated: `42428` - // Minimum execution time: 7_813_000 picoseconds. - Weight::from_parts(8_424_186, 0) - .saturating_add(Weight::from_parts(0, 42428)) - // Standard Error: 1_135 - .saturating_add(Weight::from_parts(31_229, 0).saturating_mul(s.into())) + // Estimated: `13928` + // Minimum execution time: 8_032_000 picoseconds. + Weight::from_parts(7_203_466, 0) + .saturating_add(Weight::from_parts(0, 13928)) + // Standard Error: 8_382 + .saturating_add(Weight::from_parts(149_564, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(2)) } /// Storage: `Scheduler::Agenda` (r:1 w:0) - /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(10463), added: 12938, mode: `MaxEncodedLen`) /// Storage: `Scheduler::Retries` (r:0 w:1) /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`) fn set_retry() -> Weight { // Proof Size summary in bytes: // Measured: `8928` - // Estimated: `42428` - // Minimum execution time: 21_233_000 picoseconds. - Weight::from_parts(22_180_000, 0) - .saturating_add(Weight::from_parts(0, 42428)) + // Estimated: `13928` + // Minimum execution time: 28_125_000 picoseconds. + Weight::from_parts(29_668_000, 0) + .saturating_add(Weight::from_parts(0, 13928)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } /// Storage: `Scheduler::Lookup` (r:1 w:0) /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) /// Storage: `Scheduler::Agenda` (r:1 w:0) - /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(10463), added: 12938, mode: `MaxEncodedLen`) /// Storage: `Scheduler::Retries` (r:0 w:1) /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`) fn set_retry_named() -> Weight { // Proof Size summary in bytes: // Measured: `9606` - // Estimated: `42428` - // Minimum execution time: 26_777_000 picoseconds. - Weight::from_parts(27_500_000, 0) - .saturating_add(Weight::from_parts(0, 42428)) + // Estimated: `13928` + // Minimum execution time: 34_322_000 picoseconds. + Weight::from_parts(35_847_000, 0) + .saturating_add(Weight::from_parts(0, 13928)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } /// Storage: `Scheduler::Agenda` (r:1 w:0) - /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(10463), added: 12938, mode: `MaxEncodedLen`) /// Storage: `Scheduler::Retries` (r:0 w:1) /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`) fn cancel_retry() -> Weight { // Proof Size summary in bytes: // Measured: `8940` - // Estimated: `42428` - // Minimum execution time: 20_871_000 picoseconds. - Weight::from_parts(22_258_000, 0) - .saturating_add(Weight::from_parts(0, 42428)) + // Estimated: `13928` + // Minimum execution time: 25_927_000 picoseconds. + Weight::from_parts(27_078_000, 0) + .saturating_add(Weight::from_parts(0, 13928)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } /// Storage: `Scheduler::Lookup` (r:1 w:0) /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) /// Storage: `Scheduler::Agenda` (r:1 w:0) - /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(10463), added: 12938, mode: `MaxEncodedLen`) /// Storage: `Scheduler::Retries` (r:0 w:1) /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`) fn cancel_retry_named() -> Weight { // Proof Size summary in bytes: // Measured: `9618` - // Estimated: `42428` - // Minimum execution time: 27_305_000 picoseconds. - Weight::from_parts(28_724_000, 0) - .saturating_add(Weight::from_parts(0, 42428)) + // Estimated: `13928` + // Minimum execution time: 31_528_000 picoseconds. + Weight::from_parts(33_006_000, 0) + .saturating_add(Weight::from_parts(0, 13928)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } diff --git a/runtime/src/weights/pallet_sidechain.rs b/runtime/src/weights/pallet_sidechain.rs index 44bfb8f..dd20575 100644 --- a/runtime/src/weights/pallet_sidechain.rs +++ b/runtime/src/weights/pallet_sidechain.rs @@ -1,11 +1,11 @@ //! Autogenerated weights for `pallet_sidechain` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-07-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 39.0.0 +//! DATE: 2024-07-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `caribe`, CPU: `12th Gen Intel(R) Core(TM) i7-1260P` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("integritee-solo-fresh"), DB CACHE: 1024 +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("integritee-solo-fresh")`, DB CACHE: 1024 // Executed Command: // target/release/integritee-node @@ -32,24 +32,22 @@ use core::marker::PhantomData; /// Weight functions for `pallet_sidechain`. pub struct WeightInfo(PhantomData); impl pallet_sidechain::WeightInfo for WeightInfo { - /// Storage: Teerex SovereignEnclaves (r:1 w:0) - /// Proof Skipped: Teerex SovereignEnclaves (max_values: None, max_size: None, mode: Measured) - /// Storage: EnclaveBridge ShardConfigRegistry (r:1 w:0) - /// Proof Skipped: EnclaveBridge ShardConfigRegistry (max_values: None, max_size: None, mode: Measured) - /// Storage: EnclaveBridge ShardStatus (r:1 w:1) - /// Proof Skipped: EnclaveBridge ShardStatus (max_values: None, max_size: None, mode: Measured) - /// Storage: Sidechain SidechainBlockFinalizationCandidate (r:1 w:1) - /// Proof Skipped: Sidechain SidechainBlockFinalizationCandidate (max_values: None, max_size: None, mode: Measured) - /// Storage: Sidechain LatestSidechainBlockConfirmation (r:0 w:1) - /// Proof Skipped: Sidechain LatestSidechainBlockConfirmation (max_values: None, max_size: None, mode: Measured) + /// Storage: `Teerex::SovereignEnclaves` (r:1 w:0) + /// Proof: `Teerex::SovereignEnclaves` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `EnclaveBridge::ShardConfigRegistry` (r:1 w:0) + /// Proof: `EnclaveBridge::ShardConfigRegistry` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `EnclaveBridge::ShardStatus` (r:1 w:1) + /// Proof: `EnclaveBridge::ShardStatus` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Sidechain::LatestSidechainBlockConfirmation` (r:1 w:1) + /// Proof: `Sidechain::LatestSidechainBlockConfirmation` (`max_values`: None, `max_size`: None, mode: `Measured`) fn confirm_imported_sidechain_block() -> Weight { // Proof Size summary in bytes: - // Measured: `354` - // Estimated: `3819` - // Minimum execution time: 23_043_000 picoseconds. - Weight::from_parts(23_511_000, 0) - .saturating_add(Weight::from_parts(0, 3819)) + // Measured: `375` + // Estimated: `3840` + // Minimum execution time: 35_435_000 picoseconds. + Weight::from_parts(37_897_000, 0) + .saturating_add(Weight::from_parts(0, 3840)) .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(3)) + .saturating_add(T::DbWeight::get().writes(2)) } } diff --git a/runtime/src/weights/pallet_teeracle.rs b/runtime/src/weights/pallet_teeracle.rs index bcf13e1..b3e67f2 100644 --- a/runtime/src/weights/pallet_teeracle.rs +++ b/runtime/src/weights/pallet_teeracle.rs @@ -1,11 +1,11 @@ //! Autogenerated weights for `pallet_teeracle` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-07-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 39.0.0 +//! DATE: 2024-07-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `caribe`, CPU: `12th Gen Intel(R) Core(TM) i7-1260P` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("integritee-solo-fresh"), DB CACHE: 1024 +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("integritee-solo-fresh")`, DB CACHE: 1024 // Executed Command: // target/release/integritee-node @@ -32,58 +32,58 @@ use core::marker::PhantomData; /// Weight functions for `pallet_teeracle`. pub struct WeightInfo(PhantomData); impl pallet_teeracle::WeightInfo for WeightInfo { - /// Storage: Teerex SovereignEnclaves (r:1 w:0) - /// Proof Skipped: Teerex SovereignEnclaves (max_values: None, max_size: None, mode: Measured) - /// Storage: Teeracle Whitelists (r:1 w:0) - /// Proof Skipped: Teeracle Whitelists (max_values: None, max_size: None, mode: Measured) - /// Storage: Teeracle ExchangeRates (r:1 w:1) - /// Proof Skipped: Teeracle ExchangeRates (max_values: None, max_size: None, mode: Measured) + /// Storage: `Teerex::SovereignEnclaves` (r:1 w:0) + /// Proof: `Teerex::SovereignEnclaves` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Teeracle::Whitelists` (r:1 w:0) + /// Proof: `Teeracle::Whitelists` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Teeracle::ExchangeRates` (r:1 w:1) + /// Proof: `Teeracle::ExchangeRates` (`max_values`: None, `max_size`: None, mode: `Measured`) fn update_exchange_rate() -> Weight { // Proof Size summary in bytes: - // Measured: `433` - // Estimated: `3898` - // Minimum execution time: 19_736_000 picoseconds. - Weight::from_parts(20_994_000, 0) - .saturating_add(Weight::from_parts(0, 3898)) + // Measured: `454` + // Estimated: `3919` + // Minimum execution time: 30_075_000 picoseconds. + Weight::from_parts(33_584_000, 0) + .saturating_add(Weight::from_parts(0, 3919)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: Teerex SovereignEnclaves (r:1 w:0) - /// Proof Skipped: Teerex SovereignEnclaves (max_values: None, max_size: None, mode: Measured) - /// Storage: Teeracle Whitelists (r:1 w:0) - /// Proof Skipped: Teeracle Whitelists (max_values: None, max_size: None, mode: Measured) - /// Storage: Teeracle OracleData (r:0 w:1) - /// Proof Skipped: Teeracle OracleData (max_values: None, max_size: None, mode: Measured) + /// Storage: `Teerex::SovereignEnclaves` (r:1 w:0) + /// Proof: `Teerex::SovereignEnclaves` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Teeracle::Whitelists` (r:1 w:0) + /// Proof: `Teeracle::Whitelists` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Teeracle::OracleData` (r:0 w:1) + /// Proof: `Teeracle::OracleData` (`max_values`: None, `max_size`: None, mode: `Measured`) fn update_oracle() -> Weight { // Proof Size summary in bytes: - // Measured: `424` - // Estimated: `3889` - // Minimum execution time: 17_220_000 picoseconds. - Weight::from_parts(17_956_000, 0) - .saturating_add(Weight::from_parts(0, 3889)) + // Measured: `445` + // Estimated: `3910` + // Minimum execution time: 24_320_000 picoseconds. + Weight::from_parts(25_638_000, 0) + .saturating_add(Weight::from_parts(0, 3910)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: Teeracle Whitelists (r:1 w:1) - /// Proof Skipped: Teeracle Whitelists (max_values: None, max_size: None, mode: Measured) + /// Storage: `Teeracle::Whitelists` (r:1 w:1) + /// Proof: `Teeracle::Whitelists` (`max_values`: None, `max_size`: None, mode: `Measured`) fn add_to_whitelist() -> Weight { // Proof Size summary in bytes: // Measured: `6` // Estimated: `3471` - // Minimum execution time: 10_557_000 picoseconds. - Weight::from_parts(10_955_000, 0) + // Minimum execution time: 11_915_000 picoseconds. + Weight::from_parts(13_020_000, 0) .saturating_add(Weight::from_parts(0, 3471)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: Teeracle Whitelists (r:1 w:1) - /// Proof Skipped: Teeracle Whitelists (max_values: None, max_size: None, mode: Measured) + /// Storage: `Teeracle::Whitelists` (r:1 w:1) + /// Proof: `Teeracle::Whitelists` (`max_values`: None, `max_size`: None, mode: `Measured`) fn remove_from_whitelist() -> Weight { // Proof Size summary in bytes: // Measured: `107` // Estimated: `3572` - // Minimum execution time: 12_074_000 picoseconds. - Weight::from_parts(12_535_000, 0) + // Minimum execution time: 14_245_000 picoseconds. + Weight::from_parts(14_790_000, 0) .saturating_add(Weight::from_parts(0, 3572)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) diff --git a/runtime/src/weights/pallet_teerdays.rs b/runtime/src/weights/pallet_teerdays.rs new file mode 100644 index 0000000..5385424 --- /dev/null +++ b/runtime/src/weights/pallet_teerdays.rs @@ -0,0 +1,105 @@ + +//! Autogenerated weights for `pallet_teerdays` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 39.0.0 +//! DATE: 2024-07-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `caribe`, CPU: `12th Gen Intel(R) Core(TM) i7-1260P` +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("integritee-solo-fresh")`, DB CACHE: 1024 + +// Executed Command: +// target/release/integritee-node +// benchmark +// pallet +// --chain=integritee-solo-fresh +// --steps=50 +// --repeat=20 +// --pallet=pallet_teerdays +// --extrinsic=* +// --execution=wasm +// --wasm-execution=compiled +// --heap-pages=4096 +// --output=runtime/src/weights/pallet_teerdays.rs + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::Weight}; +use core::marker::PhantomData; + +/// Weight functions for `pallet_teerdays`. +pub struct WeightInfo(PhantomData); +impl pallet_teerdays::WeightInfo for WeightInfo { + /// Storage: `TeerDays::TeerDayBonds` (r:1 w:1) + /// Proof: `TeerDays::TeerDayBonds` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `Balances::Locks` (r:1 w:1) + /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`) + /// Storage: `Balances::Freezes` (r:1 w:0) + /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) + /// Storage: `Timestamp::Now` (r:1 w:0) + /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) + fn bond() -> Weight { + // Proof Size summary in bytes: + // Measured: `240` + // Estimated: `4764` + // Minimum execution time: 53_157_000 picoseconds. + Weight::from_parts(54_869_000, 0) + .saturating_add(Weight::from_parts(0, 4764)) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(3)) + } + /// Storage: `TeerDays::PendingUnlock` (r:1 w:1) + /// Proof: `TeerDays::PendingUnlock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TeerDays::TeerDayBonds` (r:1 w:1) + /// Proof: `TeerDays::TeerDayBonds` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Timestamp::Now` (r:1 w:0) + /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) + fn unbond() -> Weight { + // Proof Size summary in bytes: + // Measured: `253` + // Estimated: `3718` + // Minimum execution time: 32_747_000 picoseconds. + Weight::from_parts(35_019_000, 0) + .saturating_add(Weight::from_parts(0, 3718)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `TeerDays::TeerDayBonds` (r:1 w:1) + /// Proof: `TeerDays::TeerDayBonds` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Timestamp::Now` (r:1 w:0) + /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) + fn update_other() -> Weight { + // Proof Size summary in bytes: + // Measured: `253` + // Estimated: `3718` + // Minimum execution time: 22_243_000 picoseconds. + Weight::from_parts(22_940_000, 0) + .saturating_add(Weight::from_parts(0, 3718)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `TeerDays::PendingUnlock` (r:1 w:1) + /// Proof: `TeerDays::PendingUnlock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Timestamp::Now` (r:1 w:0) + /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) + /// Storage: `Balances::Locks` (r:1 w:1) + /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`) + /// Storage: `Balances::Freezes` (r:1 w:0) + /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + fn withdraw_unbonded() -> Weight { + // Proof Size summary in bytes: + // Measured: `400` + // Estimated: `4764` + // Minimum execution time: 49_889_000 picoseconds. + Weight::from_parts(51_522_000, 0) + .saturating_add(Weight::from_parts(0, 4764)) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(3)) + } +} diff --git a/runtime/src/weights/pallet_teerex.rs b/runtime/src/weights/pallet_teerex.rs index 28ea0eb..235624a 100644 --- a/runtime/src/weights/pallet_teerex.rs +++ b/runtime/src/weights/pallet_teerex.rs @@ -1,11 +1,11 @@ //! Autogenerated weights for `pallet_teerex` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-07-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 39.0.0 +//! DATE: 2024-07-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `zeetee`, CPU: `Intel(R) Core(TM) i9-10885H CPU @ 2.40GHz` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("integritee-solo-fresh"), DB CACHE: 1024 +//! HOSTNAME: `caribe`, CPU: `12th Gen Intel(R) Core(TM) i7-1260P` +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("integritee-solo-fresh")`, DB CACHE: 1024 // Executed Command: // target/release/integritee-node @@ -32,92 +32,92 @@ use core::marker::PhantomData; /// Weight functions for `pallet_teerex`. pub struct WeightInfo(PhantomData); impl pallet_teerex::WeightInfo for WeightInfo { - /// Storage: Timestamp Now (r:1 w:0) - /// Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) - /// Storage: Teerex SgxQuotingEnclaveRegistry (r:1 w:0) - /// Proof Skipped: Teerex SgxQuotingEnclaveRegistry (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Teerex SgxTcbInfo (r:1 w:0) - /// Proof Skipped: Teerex SgxTcbInfo (max_values: None, max_size: None, mode: Measured) - /// Storage: Teerex SgxAllowDebugMode (r:1 w:0) - /// Proof Skipped: Teerex SgxAllowDebugMode (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Teerex SovereignEnclaves (r:0 w:1) - /// Proof Skipped: Teerex SovereignEnclaves (max_values: None, max_size: None, mode: Measured) + /// Storage: `Timestamp::Now` (r:1 w:0) + /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) + /// Storage: `Teerex::SgxQuotingEnclaveRegistry` (r:1 w:0) + /// Proof: `Teerex::SgxQuotingEnclaveRegistry` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Teerex::SgxTcbInfo` (r:1 w:0) + /// Proof: `Teerex::SgxTcbInfo` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Teerex::SgxAllowDebugMode` (r:1 w:0) + /// Proof: `Teerex::SgxAllowDebugMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Teerex::SovereignEnclaves` (r:0 w:1) + /// Proof: `Teerex::SovereignEnclaves` (`max_values`: None, `max_size`: None, mode: `Measured`) fn register_sgx_enclave() -> Weight { // Proof Size summary in bytes: - // Measured: `394` - // Estimated: `3859` - // Minimum execution time: 2_019_887_000 picoseconds. - Weight::from_parts(2_047_667_000, 0) - .saturating_add(Weight::from_parts(0, 3859)) + // Measured: `747` + // Estimated: `4212` + // Minimum execution time: 2_435_598_000 picoseconds. + Weight::from_parts(2_591_558_000, 0) + .saturating_add(Weight::from_parts(0, 4212)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: Timestamp Now (r:1 w:0) - /// Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) - /// Storage: Teerex SgxQuotingEnclaveRegistry (r:0 w:1) - /// Proof Skipped: Teerex SgxQuotingEnclaveRegistry (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `Timestamp::Now` (r:1 w:0) + /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) + /// Storage: `Teerex::SgxQuotingEnclaveRegistry` (r:0 w:1) + /// Proof: `Teerex::SgxQuotingEnclaveRegistry` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn register_quoting_enclave() -> Weight { // Proof Size summary in bytes: // Measured: `95` // Estimated: `1493` - // Minimum execution time: 1_013_747_000 picoseconds. - Weight::from_parts(1_025_189_000, 0) + // Minimum execution time: 1_185_842_000 picoseconds. + Weight::from_parts(1_199_479_000, 0) .saturating_add(Weight::from_parts(0, 1493)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: Timestamp Now (r:1 w:0) - /// Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) - /// Storage: Teerex SgxTcbInfo (r:0 w:1) - /// Proof Skipped: Teerex SgxTcbInfo (max_values: None, max_size: None, mode: Measured) + /// Storage: `Timestamp::Now` (r:1 w:0) + /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) + /// Storage: `Teerex::SgxTcbInfo` (r:0 w:1) + /// Proof: `Teerex::SgxTcbInfo` (`max_values`: None, `max_size`: None, mode: `Measured`) fn register_tcb_info() -> Weight { // Proof Size summary in bytes: // Measured: `95` // Estimated: `1493` - // Minimum execution time: 1_115_609_000 picoseconds. - Weight::from_parts(1_125_246_000, 0) + // Minimum execution time: 1_271_230_000 picoseconds. + Weight::from_parts(1_279_625_000, 0) .saturating_add(Weight::from_parts(0, 1493)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: Teerex SovereignEnclaves (r:1 w:1) - /// Proof Skipped: Teerex SovereignEnclaves (max_values: None, max_size: None, mode: Measured) - /// Storage: Timestamp Now (r:1 w:0) - /// Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) + /// Storage: `Teerex::SovereignEnclaves` (r:1 w:1) + /// Proof: `Teerex::SovereignEnclaves` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Timestamp::Now` (r:1 w:0) + /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) fn unregister_sovereign_enclave() -> Weight { // Proof Size summary in bytes: - // Measured: `473` - // Estimated: `3938` - // Minimum execution time: 15_427_000 picoseconds. - Weight::from_parts(15_999_000, 0) - .saturating_add(Weight::from_parts(0, 3938)) + // Measured: `494` + // Estimated: `3959` + // Minimum execution time: 16_277_000 picoseconds. + Weight::from_parts(16_863_000, 0) + .saturating_add(Weight::from_parts(0, 3959)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: Teerex ProxiedEnclaves (r:1 w:1) - /// Proof Skipped: Teerex ProxiedEnclaves (max_values: None, max_size: None, mode: Measured) - /// Storage: Timestamp Now (r:1 w:0) - /// Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) + /// Storage: `Teerex::ProxiedEnclaves` (r:1 w:1) + /// Proof: `Teerex::ProxiedEnclaves` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Timestamp::Now` (r:1 w:0) + /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) fn unregister_proxied_enclave() -> Weight { // Proof Size summary in bytes: - // Measured: `575` - // Estimated: `4040` - // Minimum execution time: 20_070_000 picoseconds. - Weight::from_parts(20_971_000, 0) - .saturating_add(Weight::from_parts(0, 4040)) + // Measured: `596` + // Estimated: `4061` + // Minimum execution time: 21_453_000 picoseconds. + Weight::from_parts(22_476_000, 0) + .saturating_add(Weight::from_parts(0, 4061)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: Teerex SgxAllowDebugMode (r:0 w:1) - /// Proof Skipped: Teerex SgxAllowDebugMode (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Teerex AllowSkippingAttestation (r:0 w:1) - /// Proof Skipped: Teerex AllowSkippingAttestation (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `Teerex::SgxAllowDebugMode` (r:0 w:1) + /// Proof: `Teerex::SgxAllowDebugMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Teerex::AllowSkippingAttestation` (r:0 w:1) + /// Proof: `Teerex::AllowSkippingAttestation` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn set_security_flags() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 20_413_000 picoseconds. - Weight::from_parts(21_148_000, 0) + // Minimum execution time: 6_602_000 picoseconds. + Weight::from_parts(6_982_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(2)) } diff --git a/runtime/src/weights/pallet_timestamp.rs b/runtime/src/weights/pallet_timestamp.rs index 725116a..241249e 100644 --- a/runtime/src/weights/pallet_timestamp.rs +++ b/runtime/src/weights/pallet_timestamp.rs @@ -1,13 +1,16 @@ //! Autogenerated weights for `pallet_timestamp` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2021-11-11, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("integritee-solo-fresh"), DB CACHE: 128 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 39.0.0 +//! DATE: 2024-07-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `caribe`, CPU: `12th Gen Intel(R) Core(TM) i7-1260P` +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("integritee-solo-fresh")`, DB CACHE: 1024 // Executed Command: -// ./integritee-node +// target/release/integritee-node // benchmark +// pallet // --chain=integritee-solo-fresh // --steps=50 // --repeat=20 @@ -18,26 +21,37 @@ // --heap-pages=4096 // --output=runtime/src/weights/pallet_timestamp.rs - #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] +#![allow(missing_docs)] use frame_support::{traits::Get, weights::Weight}; -use sp_std::marker::PhantomData; +use core::marker::PhantomData; -/// Weight functions for pallet_timestamp. +/// Weight functions for `pallet_timestamp`. pub struct WeightInfo(PhantomData); impl pallet_timestamp::WeightInfo for WeightInfo { - // Storage: Timestamp Now (r:1 w:1) - // Storage: Aura CurrentSlot (r:1 w:0) - // Storage: Teerex EnclaveRegistry (r:1 w:0) + /// Storage: `Timestamp::Now` (r:1 w:1) + /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) + /// Storage: `Aura::CurrentSlot` (r:1 w:0) + /// Proof: `Aura::CurrentSlot` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) fn set() -> Weight { - Weight::from_parts(51_125_000, 0u64) - .saturating_add(T::DbWeight::get().reads(3)) + // Proof Size summary in bytes: + // Measured: `157` + // Estimated: `1493` + // Minimum execution time: 11_238_000 picoseconds. + Weight::from_parts(12_023_000, 0) + .saturating_add(Weight::from_parts(0, 1493)) + .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } fn on_finalize() -> Weight { - Weight::from_parts(9_723_000, 0u64) + // Proof Size summary in bytes: + // Measured: `95` + // Estimated: `0` + // Minimum execution time: 5_071_000 picoseconds. + Weight::from_parts(5_450_000, 0) + .saturating_add(Weight::from_parts(0, 0)) } } diff --git a/runtime/src/weights/pallet_utility.rs b/runtime/src/weights/pallet_utility.rs index 1f9c4c7..e58d576 100644 --- a/runtime/src/weights/pallet_utility.rs +++ b/runtime/src/weights/pallet_utility.rs @@ -1,12 +1,16 @@ + //! Autogenerated weights for `pallet_utility` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2021-11-11, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("integritee-solo-fresh"), DB CACHE: 128 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 39.0.0 +//! DATE: 2024-07-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `caribe`, CPU: `12th Gen Intel(R) Core(TM) i7-1260P` +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("integritee-solo-fresh")`, DB CACHE: 1024 // Executed Command: -// ./integritee-node +// target/release/integritee-node // benchmark +// pallet // --chain=integritee-solo-fresh // --steps=50 // --repeat=20 @@ -17,41 +21,64 @@ // --heap-pages=4096 // --output=runtime/src/weights/pallet_utility.rs - #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] +#![allow(missing_docs)] use frame_support::{traits::Get, weights::Weight}; -use sp_std::marker::PhantomData; +use core::marker::PhantomData; -/// Weight functions for pallet_utility. +/// Weight functions for `pallet_utility`. pub struct WeightInfo(PhantomData); impl pallet_utility::WeightInfo for WeightInfo { + /// The range of component `c` is `[0, 1000]`. fn batch(c: u32, ) -> Weight { - Weight::from_parts(63_793_000, 0u64) - // Standard Error: 36_000 - .saturating_add(Weight::from_parts(9_370_000, 0u64)) - .saturating_mul(c.into()) + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 6_557_000 picoseconds. + Weight::from_parts(54_563_708, 0) + .saturating_add(Weight::from_parts(0, 0)) + // Standard Error: 17_878 + .saturating_add(Weight::from_parts(2_758_469, 0).saturating_mul(c.into())) } fn as_derivative() -> Weight { - Weight::from_parts(4_912_000, 0u64) + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 3_856_000 picoseconds. + Weight::from_parts(4_141_000, 0) + .saturating_add(Weight::from_parts(0, 0)) } + /// The range of component `c` is `[0, 1000]`. fn batch_all(c: u32, ) -> Weight { - Weight::from_parts(58_530_000, 0u64) - // Standard Error: 20_000 - .saturating_add(Weight::from_parts(10_017_000, 0u64)) - .saturating_mul(c.into()) + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 4_055_000 picoseconds. + Weight::from_parts(4_267_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + // Standard Error: 10_040 + .saturating_add(Weight::from_parts(3_054_870, 0).saturating_mul(c.into())) } - //TODO: update weight value fn dispatch_as() -> Weight { - Weight::from_parts(14_340_000, 0u64) + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 5_467_000 picoseconds. + Weight::from_parts(5_919_000, 0) + .saturating_add(Weight::from_parts(0, 0)) } /// The range of component `c` is `[0, 1000]`. fn force_batch(c: u32, ) -> Weight { - Weight::from_parts(19_136_000, 0u64) - // Standard Error: 2_000 - .saturating_add(Weight::from_parts(2_697_000, 0u64)) - .saturating_mul(c.into()) + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 3_826_000 picoseconds. + Weight::from_parts(4_196_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + // Standard Error: 13_904 + .saturating_add(Weight::from_parts(2_891_778, 0).saturating_mul(c.into())) } } diff --git a/runtime/src/weights/pallet_vesting.rs b/runtime/src/weights/pallet_vesting.rs index 0e30d27..1babf46 100644 --- a/runtime/src/weights/pallet_vesting.rs +++ b/runtime/src/weights/pallet_vesting.rs @@ -1,17 +1,17 @@ //! Autogenerated weights for `pallet_vesting` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 36.0.0 -//! DATE: 2024-05-31, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 39.0.0 +//! DATE: 2024-07-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `caribe`, CPU: `12th Gen Intel(R) Core(TM) i7-1260P` -//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("integritee-rococo-local-dev")`, DB CACHE: 1024 +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("integritee-solo-fresh")`, DB CACHE: 1024 // Executed Command: -// ./target/release/integritee-collator +// target/release/integritee-node // benchmark // pallet -// --chain=integritee-rococo-local-dev +// --chain=integritee-solo-fresh // --steps=50 // --repeat=20 // --pallet=pallet_vesting @@ -19,7 +19,7 @@ // --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 -// --output=./polkadot-parachains/integritee-runtime/src/weights/pallet_vesting.rs +// --output=runtime/src/weights/pallet_vesting.rs #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] @@ -40,17 +40,15 @@ impl pallet_vesting::WeightInfo for WeightInfo { /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) /// The range of component `l` is `[0, 49]`. /// The range of component `s` is `[1, 28]`. - fn vest_locked(l: u32, s: u32, ) -> Weight { + fn vest_locked(l: u32, _s: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `205 + l * (25 ±0) + s * (36 ±0)` + // Measured: `277 + l * (25 ±0) + s * (36 ±0)` // Estimated: `4764` - // Minimum execution time: 25_584_000 picoseconds. - Weight::from_parts(26_191_808, 0) + // Minimum execution time: 28_850_000 picoseconds. + Weight::from_parts(34_002_107, 0) .saturating_add(Weight::from_parts(0, 4764)) - // Standard Error: 4_587 - .saturating_add(Weight::from_parts(31_993, 0).saturating_mul(l.into())) - // Standard Error: 8_161 - .saturating_add(Weight::from_parts(89_176, 0).saturating_mul(s.into())) + // Standard Error: 7_212 + .saturating_add(Weight::from_parts(3_425, 0).saturating_mul(l.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -64,15 +62,15 @@ impl pallet_vesting::WeightInfo for WeightInfo { /// The range of component `s` is `[1, 28]`. fn vest_unlocked(l: u32, s: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `205 + l * (25 ±0) + s * (36 ±0)` + // Measured: `277 + l * (25 ±0) + s * (36 ±0)` // Estimated: `4764` - // Minimum execution time: 23_559_000 picoseconds. - Weight::from_parts(27_389_403, 0) + // Minimum execution time: 31_058_000 picoseconds. + Weight::from_parts(29_815_260, 0) .saturating_add(Weight::from_parts(0, 4764)) - // Standard Error: 2_983 - .saturating_add(Weight::from_parts(42_301, 0).saturating_mul(l.into())) - // Standard Error: 5_307 - .saturating_add(Weight::from_parts(161_528, 0).saturating_mul(s.into())) + // Standard Error: 4_272 + .saturating_add(Weight::from_parts(50_347, 0).saturating_mul(l.into())) + // Standard Error: 7_602 + .saturating_add(Weight::from_parts(132_966, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -88,15 +86,15 @@ impl pallet_vesting::WeightInfo for WeightInfo { /// The range of component `s` is `[1, 28]`. fn vest_other_locked(l: u32, s: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `308 + l * (25 ±0) + s * (36 ±0)` + // Measured: `380 + l * (25 ±0) + s * (36 ±0)` // Estimated: `4764` - // Minimum execution time: 23_518_000 picoseconds. - Weight::from_parts(27_918_598, 0) + // Minimum execution time: 30_260_000 picoseconds. + Weight::from_parts(30_314_459, 0) .saturating_add(Weight::from_parts(0, 4764)) - // Standard Error: 6_566 - .saturating_add(Weight::from_parts(71_244, 0).saturating_mul(l.into())) - // Standard Error: 11_682 - .saturating_add(Weight::from_parts(72_710, 0).saturating_mul(s.into())) + // Standard Error: 7_482 + .saturating_add(Weight::from_parts(72_837, 0).saturating_mul(l.into())) + // Standard Error: 13_312 + .saturating_add(Weight::from_parts(96_937, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) } @@ -112,15 +110,15 @@ impl pallet_vesting::WeightInfo for WeightInfo { /// The range of component `s` is `[1, 28]`. fn vest_other_unlocked(l: u32, s: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `308 + l * (25 ±0) + s * (36 ±0)` + // Measured: `380 + l * (25 ±0) + s * (36 ±0)` // Estimated: `4764` - // Minimum execution time: 27_573_000 picoseconds. - Weight::from_parts(24_469_466, 0) + // Minimum execution time: 32_552_000 picoseconds. + Weight::from_parts(31_164_123, 0) .saturating_add(Weight::from_parts(0, 4764)) - // Standard Error: 8_859 - .saturating_add(Weight::from_parts(146_414, 0).saturating_mul(l.into())) - // Standard Error: 15_761 - .saturating_add(Weight::from_parts(194_266, 0).saturating_mul(s.into())) + // Standard Error: 14_350 + .saturating_add(Weight::from_parts(162_203, 0).saturating_mul(l.into())) + // Standard Error: 25_531 + .saturating_add(Weight::from_parts(72_688, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) } @@ -134,15 +132,17 @@ impl pallet_vesting::WeightInfo for WeightInfo { /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) /// The range of component `l` is `[0, 49]`. /// The range of component `s` is `[0, 27]`. - fn vested_transfer(_l: u32, s: u32, ) -> Weight { + fn vested_transfer(l: u32, s: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `308 + l * (25 ±0) + s * (36 ±0)` + // Measured: `380 + l * (25 ±0) + s * (36 ±0)` // Estimated: `4764` - // Minimum execution time: 61_638_000 picoseconds. - Weight::from_parts(75_422_594, 0) + // Minimum execution time: 62_792_000 picoseconds. + Weight::from_parts(62_668_826, 0) .saturating_add(Weight::from_parts(0, 4764)) - // Standard Error: 28_372 - .saturating_add(Weight::from_parts(172_417, 0).saturating_mul(s.into())) + // Standard Error: 12_480 + .saturating_add(Weight::from_parts(41_854, 0).saturating_mul(l.into())) + // Standard Error: 22_205 + .saturating_add(Weight::from_parts(410_696, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) } @@ -156,17 +156,15 @@ impl pallet_vesting::WeightInfo for WeightInfo { /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) /// The range of component `l` is `[0, 49]`. /// The range of component `s` is `[0, 27]`. - fn force_vested_transfer(l: u32, s: u32, ) -> Weight { + fn force_vested_transfer(_l: u32, s: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `411 + l * (25 ±0) + s * (36 ±0)` + // Measured: `520 + l * (25 ±0) + s * (36 ±0)` // Estimated: `6196` - // Minimum execution time: 55_043_000 picoseconds. - Weight::from_parts(64_489_820, 0) + // Minimum execution time: 66_703_000 picoseconds. + Weight::from_parts(78_059_791, 0) .saturating_add(Weight::from_parts(0, 6196)) - // Standard Error: 5_541 - .saturating_add(Weight::from_parts(73_314, 0).saturating_mul(l.into())) - // Standard Error: 9_859 - .saturating_add(Weight::from_parts(136_188, 0).saturating_mul(s.into())) + // Standard Error: 31_947 + .saturating_add(Weight::from_parts(179_743, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(4)) } @@ -180,17 +178,15 @@ impl pallet_vesting::WeightInfo for WeightInfo { /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// The range of component `l` is `[0, 49]`. /// The range of component `s` is `[2, 28]`. - fn not_unlocking_merge_schedules(l: u32, s: u32, ) -> Weight { + fn not_unlocking_merge_schedules(_l: u32, s: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `306 + l * (25 ±0) + s * (36 ±0)` + // Measured: `328 + l * (25 ±0) + s * (36 ±0)` // Estimated: `4764` - // Minimum execution time: 27_667_000 picoseconds. - Weight::from_parts(30_343_216, 0) + // Minimum execution time: 30_520_000 picoseconds. + Weight::from_parts(34_396_025, 0) .saturating_add(Weight::from_parts(0, 4764)) - // Standard Error: 3_818 - .saturating_add(Weight::from_parts(22_662, 0).saturating_mul(l.into())) - // Standard Error: 7_051 - .saturating_add(Weight::from_parts(102_686, 0).saturating_mul(s.into())) + // Standard Error: 12_813 + .saturating_add(Weight::from_parts(92_797, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) } @@ -204,17 +200,15 @@ impl pallet_vesting::WeightInfo for WeightInfo { /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// The range of component `l` is `[0, 49]`. /// The range of component `s` is `[2, 28]`. - fn unlocking_merge_schedules(l: u32, s: u32, ) -> Weight { + fn unlocking_merge_schedules(_l: u32, s: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `306 + l * (25 ±0) + s * (36 ±0)` + // Measured: `328 + l * (25 ±0) + s * (36 ±0)` // Estimated: `4764` - // Minimum execution time: 27_260_000 picoseconds. - Weight::from_parts(32_039_096, 0) + // Minimum execution time: 33_774_000 picoseconds. + Weight::from_parts(37_657_520, 0) .saturating_add(Weight::from_parts(0, 4764)) - // Standard Error: 3_380 - .saturating_add(Weight::from_parts(20_928, 0).saturating_mul(l.into())) - // Standard Error: 6_243 - .saturating_add(Weight::from_parts(48_861, 0).saturating_mul(s.into())) + // Standard Error: 12_529 + .saturating_add(Weight::from_parts(88_818, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) } @@ -228,17 +222,15 @@ impl pallet_vesting::WeightInfo for WeightInfo { /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// The range of component `l` is `[0, 49]`. /// The range of component `s` is `[2, 28]`. - fn force_remove_vesting_schedule(l: u32, s: u32, ) -> Weight { + fn force_remove_vesting_schedule(l: u32, _s: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `308 + l * (25 ±0) + s * (36 ±0)` + // Measured: `380 + l * (25 ±0) + s * (36 ±0)` // Estimated: `4764` - // Minimum execution time: 30_225_000 picoseconds. - Weight::from_parts(30_102_695, 0) + // Minimum execution time: 35_017_000 picoseconds. + Weight::from_parts(42_838_596, 0) .saturating_add(Weight::from_parts(0, 4764)) - // Standard Error: 3_070 - .saturating_add(Weight::from_parts(51_365, 0).saturating_mul(l.into())) - // Standard Error: 5_670 - .saturating_add(Weight::from_parts(68_276, 0).saturating_mul(s.into())) + // Standard Error: 8_310 + .saturating_add(Weight::from_parts(17_149, 0).saturating_mul(l.into())) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) } diff --git a/scripts/benchmark_all_pallets.sh b/scripts/benchmark_all_pallets.sh index 3be08ac..1b14120 100755 --- a/scripts/benchmark_all_pallets.sh +++ b/scripts/benchmark_all_pallets.sh @@ -14,21 +14,22 @@ echo "WEIGHT_OUTPUT_DIR: ${WEIGHT_OUTPUT_DIR}" mkdir -p "$WEIGHT_OUTPUT_DIR" pallets=( - #"frame_system" \ - #"pallet_balances" \ - #"pallet_multisig" \ - #"pallet_preimage" \ - #"pallet_proxy" \ - #"pallet_scheduler" \ + "frame_system" \ + "pallet_balances" \ + "pallet_multisig" \ + "pallet_preimage" \ + "pallet_proxy" \ + "pallet_scheduler" \ "pallet_teerex" \ "pallet_sidechain" \ "pallet_enclave_bridge" \ - #"pallet_claims" \ - #"pallet_timestamp" \ - #"pallet_treasury" \ - #"pallet_vesting" \ - #"pallet_utility" \ + "pallet_claims" \ + "pallet_timestamp" \ + "pallet_treasury" \ + "pallet_vesting" \ + "pallet_utility" \ "pallet_teeracle" \ + "pallet_teerdays" \ ) for pallet in ${pallets[*]}; do