From 05c67d136b87167be2396977ace2aad7d48f6b9f Mon Sep 17 00:00:00 2001 From: Harald Heckmann Date: Tue, 29 Mar 2022 12:42:55 +0200 Subject: [PATCH] Update weights (#502) --- runtime/src/weights/frame_system.rs | 66 ++-- runtime/src/weights/orml_currencies.rs | 18 +- runtime/src/weights/orml_tokens.rs | 18 +- runtime/src/weights/pallet_author_mapping.rs | 37 +-- runtime/src/weights/pallet_balances.rs | 47 +-- runtime/src/weights/pallet_collective.rs | 233 ++++++++++---- runtime/src/weights/pallet_democracy.rs | 320 +++++++++---------- runtime/src/weights/pallet_grandpa.rs | 12 +- runtime/src/weights/pallet_identity.rs | 230 ++++++------- runtime/src/weights/pallet_membership.rs | 125 ++++---- runtime/src/weights/pallet_preimage.rs | 117 +++---- runtime/src/weights/pallet_scheduler.rs | 201 ++++++------ runtime/src/weights/pallet_timestamp.rs | 31 +- runtime/src/weights/pallet_treasury.rs | 53 ++- runtime/src/weights/pallet_utility.rs | 33 +- runtime/src/weights/pallet_vesting.rs | 153 +++++---- zrml/authorized/src/weights.rs | 6 +- zrml/court/src/weights.rs | 10 +- zrml/liquidity-mining/src/weights.rs | 6 +- zrml/prediction-markets/src/weights.rs | 141 ++++---- zrml/swaps/src/weights.rs | 92 +++--- 21 files changed, 1004 insertions(+), 945 deletions(-) diff --git a/runtime/src/weights/frame_system.rs b/runtime/src/weights/frame_system.rs index a2143a796..0b2e395b1 100644 --- a/runtime/src/weights/frame_system.rs +++ b/runtime/src/weights/frame_system.rs @@ -1,23 +1,10 @@ //! Autogenerated weights for frame_system //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2022-01-14, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128 - -// Executed Command: -// ./target/release/zeitgeist -// benchmark -// --chain=dev -// --steps=50 -// --repeat=20 -// --pallet=frame_system -// --extrinsic=* -// --execution=wasm -// --wasm-execution=compiled -// --heap-pages=4096 -// --template=./misc/frame_weight_template.hbs -// --output=./runtime/src/weights/ +//! DATE: 2022-03-23, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +// Executed Command:// ./target/release/zeitgeist// benchmark// --chain=dev// --steps=50// --repeat=20// --pallet=frame_system// --extrinsic=*// --execution=wasm// --wasm-execution=compiled// --heap-pages=4096// --template=./misc/frame_weight_template.hbs// --output=./runtime/src/weights/ #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] @@ -28,42 +15,47 @@ use core::marker::PhantomData; /// Weight functions for frame_system (automatically generated) pub struct WeightInfo(PhantomData); impl frame_system::weights::WeightInfo for WeightInfo { - fn remark(b: u32, ) -> Weight { - (16_964_000 as Weight) - // Standard Error: 0 - .saturating_add((1_000 as Weight).saturating_mul(b as Weight)) + + fn remark(_b: u32, ) -> Weight { + (4_155_000 as Weight) + } + fn remark_with_event(b: u32, ) -> Weight { - (0 as Weight) - // Standard Error: 0 + (0 as Weight) + // Standard Error: 0 + .saturating_add((2_000 as Weight).saturating_mul(b as Weight)) } - // Storage: System Digest (r:1 w:1) - // Storage: unknown [0x3a686561707061676573] (r:0 w:1) + // Storage: System Digest (r:1 w:1) + // Storage: unknown [0x3a686561707061676573] (r:0 w:1) fn set_heap_pages() -> Weight { - (11_321_000 as Weight) + (7_620_000 as Weight) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(2 as Weight)) } - // Storage: Skipped Metadata (r:0 w:0) + // Storage: Skipped Metadata (r:0 w:0) fn set_storage(i: u32, ) -> Weight { - (884_000 as Weight) - // Standard Error: 2_000 - .saturating_add((1_634_000 as Weight).saturating_mul(i as Weight)) + (20_190_000 as Weight) + // Standard Error: 7_000 + + .saturating_add((875_000 as Weight).saturating_mul(i as Weight)) .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(i as Weight))) } - // Storage: Skipped Metadata (r:0 w:0) + // Storage: Skipped Metadata (r:0 w:0) fn kill_storage(i: u32, ) -> Weight { - (10_509_000 as Weight) - // Standard Error: 3_000 - .saturating_add((1_053_000 as Weight).saturating_mul(i as Weight)) + (0 as Weight) + // Standard Error: 6_000 + + .saturating_add((722_000 as Weight).saturating_mul(i as Weight)) .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(i as Weight))) } - // Storage: Skipped Metadata (r:0 w:0) + // Storage: Skipped Metadata (r:0 w:0) fn kill_prefix(p: u32, ) -> Weight { - (3_931_000 as Weight) - // Standard Error: 5_000 - .saturating_add((1_531_000 as Weight).saturating_mul(p as Weight)) + (0 as Weight) + // Standard Error: 10_000 + + .saturating_add((1_563_000 as Weight).saturating_mul(p as Weight)) .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(p as Weight))) } } diff --git a/runtime/src/weights/orml_currencies.rs b/runtime/src/weights/orml_currencies.rs index 26f787e67..9545e2672 100644 --- a/runtime/src/weights/orml_currencies.rs +++ b/runtime/src/weights/orml_currencies.rs @@ -1,8 +1,8 @@ //! Autogenerated weights for orml_currencies //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2022-01-14, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128 +//! DATE: 2022-03-23, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // ./target/release/zeitgeist @@ -28,27 +28,31 @@ use frame_support::{traits::Get, weights::Weight}; pub struct WeightInfo(PhantomData); impl orml_currencies::WeightInfo for WeightInfo { fn transfer_non_native_currency() -> Weight { - (143_811_000 as Weight) + (84_340_000 as Weight) .saturating_add(T::DbWeight::get().reads(3 as Weight)) .saturating_add(T::DbWeight::get().writes(3 as Weight)) } + fn transfer_native_currency() -> Weight { - (159_041_000 as Weight) + (88_540_000 as Weight) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } + fn update_balance_non_native_currency() -> Weight { - (111_471_000 as Weight) + (63_770_000 as Weight) .saturating_add(T::DbWeight::get().reads(3 as Weight)) .saturating_add(T::DbWeight::get().writes(3 as Weight)) } + fn update_balance_native_currency_creating() -> Weight { - (120_760_000 as Weight) + (68_460_000 as Weight) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } + fn update_balance_native_currency_killing() -> Weight { - (103_210_000 as Weight) + (57_000_000 as Weight) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } diff --git a/runtime/src/weights/orml_tokens.rs b/runtime/src/weights/orml_tokens.rs index 0ff65f0e5..a0c813d79 100644 --- a/runtime/src/weights/orml_tokens.rs +++ b/runtime/src/weights/orml_tokens.rs @@ -1,8 +1,8 @@ //! Autogenerated weights for orml_tokens //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2022-01-14, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128 +//! DATE: 2022-03-23, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // ./target/release/zeitgeist @@ -28,27 +28,31 @@ use frame_support::{traits::Get, weights::Weight}; pub struct WeightInfo(PhantomData); impl orml_tokens::WeightInfo for WeightInfo { fn transfer() -> Weight { - (148_181_000 as Weight) + (68_190_000 as Weight) .saturating_add(T::DbWeight::get().reads(3 as Weight)) .saturating_add(T::DbWeight::get().writes(3 as Weight)) } + fn transfer_all() -> Weight { - (161_001_000 as Weight) + (73_950_000 as Weight) .saturating_add(T::DbWeight::get().reads(3 as Weight)) .saturating_add(T::DbWeight::get().writes(3 as Weight)) } + fn transfer_keep_alive() -> Weight { - (133_641_000 as Weight) + (61_860_000 as Weight) .saturating_add(T::DbWeight::get().reads(3 as Weight)) .saturating_add(T::DbWeight::get().writes(3 as Weight)) } + fn force_transfer() -> Weight { - (145_710_000 as Weight) + (78_760_000 as Weight) .saturating_add(T::DbWeight::get().reads(4 as Weight)) .saturating_add(T::DbWeight::get().writes(3 as Weight)) } + fn set_balance() -> Weight { - (108_410_000 as Weight) + (50_760_000 as Weight) .saturating_add(T::DbWeight::get().reads(3 as Weight)) .saturating_add(T::DbWeight::get().writes(3 as Weight)) } diff --git a/runtime/src/weights/pallet_author_mapping.rs b/runtime/src/weights/pallet_author_mapping.rs index 027cb9f4b..b6363d6fb 100644 --- a/runtime/src/weights/pallet_author_mapping.rs +++ b/runtime/src/weights/pallet_author_mapping.rs @@ -1,23 +1,10 @@ //! Autogenerated weights for pallet_author_mapping //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2022-01-14, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128 - -// Executed Command: -// ./target/release/zeitgeist -// benchmark -// --chain=dev -// --steps=50 -// --repeat=20 -// --pallet=pallet_author_mapping -// --extrinsic=* -// --execution=wasm -// --wasm-execution=compiled -// --heap-pages=4096 -// --template=./misc/frame_weight_template.hbs -// --output=./runtime/src/weights/ +//! DATE: 2022-03-23, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +// Executed Command:// ./target/release/zeitgeist// benchmark// --chain=dev// --steps=50// --repeat=20// --pallet=pallet_author_mapping// --extrinsic=*// --execution=wasm// --wasm-execution=compiled// --heap-pages=4096// --template=./misc/frame_weight_template.hbs// --output=./runtime/src/weights/ #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] @@ -28,23 +15,23 @@ use core::marker::PhantomData; /// Weight functions for pallet_author_mapping (automatically generated) pub struct WeightInfo(PhantomData); impl pallet_author_mapping::weights::WeightInfo for WeightInfo { - // Storage: AuthorMapping MappingWithDeposit (r:1 w:1) - // Storage: System Account (r:1 w:1) + // Storage: AuthorMapping MappingWithDeposit (r:1 w:1) + // Storage: System Account (r:1 w:1) fn add_association() -> Weight { - (100_040_000 as Weight) + (69_550_000 as Weight) .saturating_add(T::DbWeight::get().reads(2 as Weight)) .saturating_add(T::DbWeight::get().writes(2 as Weight)) } - // Storage: AuthorMapping MappingWithDeposit (r:1 w:2) + // Storage: AuthorMapping MappingWithDeposit (r:2 w:2) fn update_association() -> Weight { - (61_390_000 as Weight) - .saturating_add(T::DbWeight::get().reads(1 as Weight)) + (53_670_000 as Weight) + .saturating_add(T::DbWeight::get().reads(2 as Weight)) .saturating_add(T::DbWeight::get().writes(2 as Weight)) } - // Storage: AuthorMapping MappingWithDeposit (r:1 w:1) - // Storage: System Account (r:1 w:1) + // Storage: AuthorMapping MappingWithDeposit (r:1 w:1) + // Storage: System Account (r:1 w:1) fn clear_association() -> Weight { - (101_200_000 as Weight) + (59_500_000 as Weight) .saturating_add(T::DbWeight::get().reads(2 as Weight)) .saturating_add(T::DbWeight::get().writes(2 as Weight)) } diff --git a/runtime/src/weights/pallet_balances.rs b/runtime/src/weights/pallet_balances.rs index 016988c1f..34913fcb1 100644 --- a/runtime/src/weights/pallet_balances.rs +++ b/runtime/src/weights/pallet_balances.rs @@ -1,23 +1,10 @@ //! Autogenerated weights for pallet_balances //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2022-01-14, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128 - -// Executed Command: -// ./target/release/zeitgeist -// benchmark -// --chain=dev -// --steps=50 -// --repeat=20 -// --pallet=pallet_balances -// --extrinsic=* -// --execution=wasm -// --wasm-execution=compiled -// --heap-pages=4096 -// --template=./misc/frame_weight_template.hbs -// --output=./runtime/src/weights/ +//! DATE: 2022-03-23, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +// Executed Command:// ./target/release/zeitgeist// benchmark// --chain=dev// --steps=50// --repeat=20// --pallet=pallet_balances// --extrinsic=*// --execution=wasm// --wasm-execution=compiled// --heap-pages=4096// --template=./misc/frame_weight_template.hbs// --output=./runtime/src/weights/ #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] @@ -28,45 +15,45 @@ use core::marker::PhantomData; /// Weight functions for pallet_balances (automatically generated) pub struct WeightInfo(PhantomData); impl pallet_balances::weights::WeightInfo for WeightInfo { - // Storage: System Account (r:1 w:1) + // Storage: System Account (r:1 w:1) fn transfer() -> Weight { - (149_510_000 as Weight) + (105_740_000 as Weight) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } - // Storage: System Account (r:1 w:1) + // Storage: System Account (r:1 w:1) fn transfer_keep_alive() -> Weight { - (91_510_000 as Weight) + (81_100_000 as Weight) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } - // Storage: System Account (r:1 w:1) + // Storage: System Account (r:1 w:1) fn set_balance_creating() -> Weight { - (65_781_000 as Weight) + (49_480_000 as Weight) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } - // Storage: System Account (r:1 w:1) + // Storage: System Account (r:1 w:1) fn set_balance_killing() -> Weight { - (79_530_000 as Weight) + (58_480_000 as Weight) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } - // Storage: System Account (r:2 w:2) + // Storage: System Account (r:2 w:2) fn force_transfer() -> Weight { - (164_551_000 as Weight) + (104_590_000 as Weight) .saturating_add(T::DbWeight::get().reads(2 as Weight)) .saturating_add(T::DbWeight::get().writes(2 as Weight)) } - // Storage: System Account (r:1 w:1) + // Storage: System Account (r:1 w:1) fn transfer_all() -> Weight { - (152_480_000 as Weight) + (94_810_000 as Weight) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } - // Storage: System Account (r:1 w:1) + // Storage: System Account (r:1 w:1) fn force_unreserve() -> Weight { - (55_240_000 as Weight) + (46_040_000 as Weight) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } diff --git a/runtime/src/weights/pallet_collective.rs b/runtime/src/weights/pallet_collective.rs index 224c17a8f..311877d94 100644 --- a/runtime/src/weights/pallet_collective.rs +++ b/runtime/src/weights/pallet_collective.rs @@ -28,133 +28,252 @@ use core::marker::PhantomData; /// Weight functions for pallet_collective (automatically generated) pub struct WeightInfo(PhantomData); impl pallet_collective::weights::WeightInfo for WeightInfo { - // Storage: AdvisoryCommitteeCollective Members (r:1 w:1) - // Storage: AdvisoryCommitteeCollective Proposals (r:1 w:0) - // Storage: AdvisoryCommitteeCollective Voting (r:64 w:64) - // Storage: AdvisoryCommitteeCollective Prime (r:0 w:1) + + // Storage: AdvisoryCommitteeCollective Members (r:1 w:1) + + // Storage: AdvisoryCommitteeCollective Proposals (r:1 w:0) + + // Storage: AdvisoryCommitteeCollective Voting (r:64 w:64) + + // Storage: AdvisoryCommitteeCollective Prime (r:0 w:1) + fn set_members(m: u32, n: u32, p: u32, ) -> Weight { (0 as Weight) - // Standard Error: 20_000 + + // Standard Error: 20_000 + .saturating_add((17_901_000 as Weight).saturating_mul(m as Weight)) - // Standard Error: 20_000 + + // Standard Error: 20_000 + .saturating_add((335_000 as Weight).saturating_mul(n as Weight)) - // Standard Error: 35_000 + + // Standard Error: 35_000 + .saturating_add((39_439_000 as Weight).saturating_mul(p as Weight)) + .saturating_add(T::DbWeight::get().reads(2 as Weight)) + .saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(p as Weight))) + .saturating_add(T::DbWeight::get().writes(2 as Weight)) + .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(p as Weight))) + } - // Storage: AdvisoryCommitteeCollective Members (r:1 w:0) + + // Storage: AdvisoryCommitteeCollective Members (r:1 w:0) + fn execute(b: u32, m: u32, ) -> Weight { (49_490_000 as Weight) - // Standard Error: 0 + + // Standard Error: 0 + .saturating_add((4_000 as Weight).saturating_mul(b as Weight)) - // Standard Error: 0 + + // Standard Error: 0 + .saturating_add((175_000 as Weight).saturating_mul(m as Weight)) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + } - // Storage: AdvisoryCommitteeCollective Members (r:1 w:0) - // Storage: AdvisoryCommitteeCollective ProposalOf (r:1 w:0) + + // Storage: AdvisoryCommitteeCollective Members (r:1 w:0) + + // Storage: AdvisoryCommitteeCollective ProposalOf (r:1 w:0) + fn propose_execute(b: u32, m: u32, ) -> Weight { (62_713_000 as Weight) - // Standard Error: 0 + + // Standard Error: 0 + .saturating_add((4_000 as Weight).saturating_mul(b as Weight)) - // Standard Error: 2_000 + + // Standard Error: 2_000 + .saturating_add((324_000 as Weight).saturating_mul(m as Weight)) + .saturating_add(T::DbWeight::get().reads(2 as Weight)) + } - // Storage: AdvisoryCommitteeCollective Members (r:1 w:0) - // Storage: AdvisoryCommitteeCollective ProposalOf (r:1 w:1) - // Storage: AdvisoryCommitteeCollective Proposals (r:1 w:1) - // Storage: AdvisoryCommitteeCollective ProposalCount (r:1 w:1) - // Storage: AdvisoryCommitteeCollective Voting (r:0 w:1) + + // Storage: AdvisoryCommitteeCollective Members (r:1 w:0) + + // Storage: AdvisoryCommitteeCollective ProposalOf (r:1 w:1) + + // Storage: AdvisoryCommitteeCollective Proposals (r:1 w:1) + + // Storage: AdvisoryCommitteeCollective ProposalCount (r:1 w:1) + + // Storage: AdvisoryCommitteeCollective Voting (r:0 w:1) + fn propose_proposed(b: u32, m: u32, p: u32, ) -> Weight { (77_941_000 as Weight) - // Standard Error: 0 + + // Standard Error: 0 + .saturating_add((13_000 as Weight).saturating_mul(b as Weight)) - // Standard Error: 5_000 + + // Standard Error: 5_000 + .saturating_add((194_000 as Weight).saturating_mul(m as Weight)) - // Standard Error: 8_000 + + // Standard Error: 8_000 + .saturating_add((862_000 as Weight).saturating_mul(p as Weight)) + .saturating_add(T::DbWeight::get().reads(4 as Weight)) + .saturating_add(T::DbWeight::get().writes(4 as Weight)) + } - // Storage: AdvisoryCommitteeCollective Members (r:1 w:0) - // Storage: AdvisoryCommitteeCollective Voting (r:1 w:1) + + // Storage: AdvisoryCommitteeCollective Members (r:1 w:0) + + // Storage: AdvisoryCommitteeCollective Voting (r:1 w:1) + fn vote(m: u32, ) -> Weight { (74_572_000 as Weight) - // Standard Error: 4_000 + + // Standard Error: 4_000 + .saturating_add((371_000 as Weight).saturating_mul(m as Weight)) + .saturating_add(T::DbWeight::get().reads(2 as Weight)) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + } - // Storage: AdvisoryCommitteeCollective Voting (r:1 w:1) - // Storage: AdvisoryCommitteeCollective Members (r:1 w:0) - // Storage: AdvisoryCommitteeCollective Proposals (r:1 w:1) - // Storage: AdvisoryCommitteeCollective ProposalOf (r:0 w:1) + + // Storage: AdvisoryCommitteeCollective Voting (r:1 w:1) + + // Storage: AdvisoryCommitteeCollective Members (r:1 w:0) + + // Storage: AdvisoryCommitteeCollective Proposals (r:1 w:1) + + // Storage: AdvisoryCommitteeCollective ProposalOf (r:0 w:1) + fn close_early_disapproved(m: u32, p: u32, ) -> Weight { (86_182_000 as Weight) - // Standard Error: 4_000 + + // Standard Error: 4_000 + .saturating_add((330_000 as Weight).saturating_mul(m as Weight)) - // Standard Error: 7_000 + + // Standard Error: 7_000 + .saturating_add((796_000 as Weight).saturating_mul(p as Weight)) + .saturating_add(T::DbWeight::get().reads(3 as Weight)) + .saturating_add(T::DbWeight::get().writes(3 as Weight)) + } - // Storage: AdvisoryCommitteeCollective Voting (r:1 w:1) - // Storage: AdvisoryCommitteeCollective Members (r:1 w:0) - // Storage: AdvisoryCommitteeCollective ProposalOf (r:1 w:1) - // Storage: AdvisoryCommitteeCollective Proposals (r:1 w:1) + + // Storage: AdvisoryCommitteeCollective Voting (r:1 w:1) + + // Storage: AdvisoryCommitteeCollective Members (r:1 w:0) + + // Storage: AdvisoryCommitteeCollective ProposalOf (r:1 w:1) + + // Storage: AdvisoryCommitteeCollective Proposals (r:1 w:1) + fn close_early_approved(b: u32, m: u32, p: u32, ) -> Weight { (109_707_000 as Weight) - // Standard Error: 0 + + // Standard Error: 0 + .saturating_add((9_000 as Weight).saturating_mul(b as Weight)) - // Standard Error: 5_000 + + // Standard Error: 5_000 + .saturating_add((362_000 as Weight).saturating_mul(m as Weight)) - // Standard Error: 9_000 + + // Standard Error: 9_000 + .saturating_add((890_000 as Weight).saturating_mul(p as Weight)) + .saturating_add(T::DbWeight::get().reads(4 as Weight)) + .saturating_add(T::DbWeight::get().writes(3 as Weight)) + } - // Storage: AdvisoryCommitteeCollective Voting (r:1 w:1) - // Storage: AdvisoryCommitteeCollective Members (r:1 w:0) - // Storage: AdvisoryCommitteeCollective Prime (r:1 w:0) - // Storage: AdvisoryCommitteeCollective Proposals (r:1 w:1) - // Storage: AdvisoryCommitteeCollective ProposalOf (r:0 w:1) + + // Storage: AdvisoryCommitteeCollective Voting (r:1 w:1) + + // Storage: AdvisoryCommitteeCollective Members (r:1 w:0) + + // Storage: AdvisoryCommitteeCollective Prime (r:1 w:0) + + // Storage: AdvisoryCommitteeCollective Proposals (r:1 w:1) + + // Storage: AdvisoryCommitteeCollective ProposalOf (r:0 w:1) + fn close_disapproved(m: u32, p: u32, ) -> Weight { (99_746_000 as Weight) - // Standard Error: 5_000 + + // Standard Error: 5_000 + .saturating_add((324_000 as Weight).saturating_mul(m as Weight)) - // Standard Error: 8_000 + + // Standard Error: 8_000 + .saturating_add((756_000 as Weight).saturating_mul(p as Weight)) + .saturating_add(T::DbWeight::get().reads(4 as Weight)) + .saturating_add(T::DbWeight::get().writes(3 as Weight)) + } - // Storage: AdvisoryCommitteeCollective Voting (r:1 w:1) - // Storage: AdvisoryCommitteeCollective Members (r:1 w:0) - // Storage: AdvisoryCommitteeCollective Prime (r:1 w:0) - // Storage: AdvisoryCommitteeCollective ProposalOf (r:1 w:1) - // Storage: AdvisoryCommitteeCollective Proposals (r:1 w:1) + + // Storage: AdvisoryCommitteeCollective Voting (r:1 w:1) + + // Storage: AdvisoryCommitteeCollective Members (r:1 w:0) + + // Storage: AdvisoryCommitteeCollective Prime (r:1 w:0) + + // Storage: AdvisoryCommitteeCollective ProposalOf (r:1 w:1) + + // Storage: AdvisoryCommitteeCollective Proposals (r:1 w:1) + fn close_approved(b: u32, m: u32, p: u32, ) -> Weight { (122_098_000 as Weight) - // Standard Error: 0 + + // Standard Error: 0 + .saturating_add((6_000 as Weight).saturating_mul(b as Weight)) - // Standard Error: 5_000 + + // Standard Error: 5_000 + .saturating_add((359_000 as Weight).saturating_mul(m as Weight)) - // Standard Error: 9_000 + + // Standard Error: 9_000 + .saturating_add((918_000 as Weight).saturating_mul(p as Weight)) + .saturating_add(T::DbWeight::get().reads(5 as Weight)) + .saturating_add(T::DbWeight::get().writes(3 as Weight)) + } - // Storage: AdvisoryCommitteeCollective Proposals (r:1 w:1) - // Storage: AdvisoryCommitteeCollective Voting (r:0 w:1) - // Storage: AdvisoryCommitteeCollective ProposalOf (r:0 w:1) + + // Storage: AdvisoryCommitteeCollective Proposals (r:1 w:1) + + // Storage: AdvisoryCommitteeCollective Voting (r:0 w:1) + + // Storage: AdvisoryCommitteeCollective ProposalOf (r:0 w:1) + fn disapprove_proposal(p: u32, ) -> Weight { (55_659_000 as Weight) - // Standard Error: 5_000 + + // Standard Error: 5_000 + .saturating_add((732_000 as Weight).saturating_mul(p as Weight)) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().writes(3 as Weight)) + } } diff --git a/runtime/src/weights/pallet_democracy.rs b/runtime/src/weights/pallet_democracy.rs index 40cfc8b06..0d3cec3e9 100644 --- a/runtime/src/weights/pallet_democracy.rs +++ b/runtime/src/weights/pallet_democracy.rs @@ -1,42 +1,10 @@ -// This file is part of Substrate. - -// Copyright (C) 2022 Parity Technologies (UK) Ltd. -// SPDX-License-Identifier: Apache-2.0 - -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - //! Autogenerated weights for pallet_democracy //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2022-01-30, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2022-03-23, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 -// Executed Command: -// ./target/production/substrate -// benchmark -// --chain=dev -// --steps=50 -// --repeat=20 -// --pallet=pallet_democracy -// --extrinsic=* -// --execution=wasm -// --wasm-execution=compiled -// --heap-pages=4096 -// --output=./frame/democracy/src/weights.rs -// --template=.maintain/frame-weight-template.hbs -// --header=HEADER-APACHE2 -// --raw - +// Executed Command:// ./target/release/zeitgeist// benchmark// --chain=dev// --steps=50// --repeat=20// --pallet=pallet_democracy// --extrinsic=*// --execution=wasm// --wasm-execution=compiled// --heap-pages=4096// --template=./misc/frame_weight_template.hbs// --output=./runtime/src/weights/ #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] @@ -44,240 +12,258 @@ use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; use core::marker::PhantomData; -/// Weights for pallet_democracy using the Substrate node and recommended hardware. +/// Weight functions for pallet_democracy (automatically generated) pub struct WeightInfo(PhantomData); impl pallet_democracy::weights::WeightInfo for WeightInfo { - // Storage: Democracy PublicPropCount (r:1 w:1) - // Storage: Democracy PublicProps (r:1 w:1) - // Storage: Democracy Blacklist (r:1 w:0) - // Storage: Democracy DepositOf (r:0 w:1) + // Storage: Democracy PublicPropCount (r:1 w:1) + // Storage: Democracy PublicProps (r:1 w:1) + // Storage: Democracy Blacklist (r:1 w:0) + // Storage: Democracy DepositOf (r:0 w:1) fn propose() -> Weight { - (42_560_000 as Weight) + (86_111_000 as Weight) .saturating_add(T::DbWeight::get().reads(3 as Weight)) .saturating_add(T::DbWeight::get().writes(3 as Weight)) } - // Storage: Democracy DepositOf (r:1 w:1) + // Storage: Democracy DepositOf (r:1 w:1) fn second(s: u32, ) -> Weight { - (25_603_000 as Weight) - // Standard Error: 1_000 - .saturating_add((167_000 as Weight).saturating_mul(s as Weight)) + (60_666_000 as Weight) + // Standard Error: 9_000 + + .saturating_add((251_000 as Weight).saturating_mul(s as Weight)) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } - // Storage: Democracy ReferendumInfoOf (r:1 w:1) - // Storage: Democracy VotingOf (r:1 w:1) - // Storage: Balances Locks (r:1 w:1) + // Storage: Democracy ReferendumInfoOf (r:1 w:1) + // Storage: Democracy VotingOf (r:1 w:1) + // Storage: Balances Locks (r:1 w:1) fn vote_new(r: u32, ) -> Weight { - (34_248_000 as Weight) - // Standard Error: 2_000 - .saturating_add((135_000 as Weight).saturating_mul(r as Weight)) + (74_596_000 as Weight) + // Standard Error: 8_000 + + .saturating_add((270_000 as Weight).saturating_mul(r as Weight)) .saturating_add(T::DbWeight::get().reads(3 as Weight)) .saturating_add(T::DbWeight::get().writes(3 as Weight)) } - // Storage: Democracy ReferendumInfoOf (r:1 w:1) - // Storage: Democracy VotingOf (r:1 w:1) - // Storage: Balances Locks (r:1 w:1) + // Storage: Democracy ReferendumInfoOf (r:1 w:1) + // Storage: Democracy VotingOf (r:1 w:1) + // Storage: Balances Locks (r:1 w:1) fn vote_existing(r: u32, ) -> Weight { - (33_927_000 as Weight) - // Standard Error: 2_000 - .saturating_add((138_000 as Weight).saturating_mul(r as Weight)) + (77_477_000 as Weight) + // Standard Error: 8_000 + + .saturating_add((210_000 as Weight).saturating_mul(r as Weight)) .saturating_add(T::DbWeight::get().reads(3 as Weight)) .saturating_add(T::DbWeight::get().writes(3 as Weight)) } - // Storage: Democracy ReferendumInfoOf (r:1 w:1) - // Storage: Democracy Cancellations (r:1 w:1) + // Storage: Democracy ReferendumInfoOf (r:1 w:1) + // Storage: Democracy Cancellations (r:1 w:1) fn emergency_cancel() -> Weight { - (14_714_000 as Weight) + (38_750_000 as Weight) .saturating_add(T::DbWeight::get().reads(2 as Weight)) .saturating_add(T::DbWeight::get().writes(2 as Weight)) } - // Storage: Democracy PublicProps (r:1 w:1) - // Storage: Democracy NextExternal (r:1 w:1) - // Storage: Democracy ReferendumInfoOf (r:1 w:1) - // Storage: Democracy Blacklist (r:0 w:1) - // Storage: Democracy DepositOf (r:1 w:1) - // Storage: System Account (r:1 w:1) + // Storage: Democracy PublicProps (r:1 w:1) + // Storage: Democracy NextExternal (r:1 w:1) + // Storage: Democracy ReferendumInfoOf (r:1 w:1) + // Storage: Democracy Blacklist (r:0 w:1) + // Storage: Democracy DepositOf (r:1 w:1) + // Storage: System Account (r:2 w:2) fn blacklist(p: u32, ) -> Weight { - (49_423_000 as Weight) - // Standard Error: 3_000 - .saturating_add((275_000 as Weight).saturating_mul(p as Weight)) - .saturating_add(T::DbWeight::get().reads(5 as Weight)) - .saturating_add(T::DbWeight::get().writes(6 as Weight)) + (123_210_000 as Weight) + // Standard Error: 16_000 + + .saturating_add((537_000 as Weight).saturating_mul(p as Weight)) + .saturating_add(T::DbWeight::get().reads(6 as Weight)) + .saturating_add(T::DbWeight::get().writes(7 as Weight)) } - // Storage: Democracy NextExternal (r:1 w:1) - // Storage: Democracy Blacklist (r:1 w:0) + // Storage: Democracy NextExternal (r:1 w:1) + // Storage: Democracy Blacklist (r:1 w:0) fn external_propose(v: u32, ) -> Weight { - (7_321_000 as Weight) - // Standard Error: 0 - .saturating_add((75_000 as Weight).saturating_mul(v as Weight)) + (24_756_000 as Weight) + // Standard Error: 2_000 + + .saturating_add((117_000 as Weight).saturating_mul(v as Weight)) .saturating_add(T::DbWeight::get().reads(2 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } - // Storage: Democracy NextExternal (r:0 w:1) + // Storage: Democracy NextExternal (r:0 w:1) fn external_propose_majority() -> Weight { - (1_325_000 as Weight) + (4_280_000 as Weight) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } - // Storage: Democracy NextExternal (r:0 w:1) + // Storage: Democracy NextExternal (r:0 w:1) fn external_propose_default() -> Weight { - (1_283_000 as Weight) + (3_720_000 as Weight) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } - // Storage: Democracy NextExternal (r:1 w:1) - // Storage: Democracy ReferendumCount (r:1 w:1) - // Storage: Democracy ReferendumInfoOf (r:0 w:1) + // Storage: Democracy NextExternal (r:1 w:1) + // Storage: Democracy ReferendumCount (r:1 w:1) + // Storage: Democracy ReferendumInfoOf (r:0 w:1) fn fast_track() -> Weight { - (15_355_000 as Weight) + (39_540_000 as Weight) .saturating_add(T::DbWeight::get().reads(2 as Weight)) .saturating_add(T::DbWeight::get().writes(3 as Weight)) } - // Storage: Democracy NextExternal (r:1 w:1) - // Storage: Democracy Blacklist (r:1 w:1) + // Storage: Democracy NextExternal (r:1 w:1) + // Storage: Democracy Blacklist (r:1 w:1) fn veto_external(v: u32, ) -> Weight { - (16_597_000 as Weight) - // Standard Error: 0 - .saturating_add((90_000 as Weight).saturating_mul(v as Weight)) + (41_471_000 as Weight) + // Standard Error: 6_000 + + .saturating_add((170_000 as Weight).saturating_mul(v as Weight)) .saturating_add(T::DbWeight::get().reads(2 as Weight)) .saturating_add(T::DbWeight::get().writes(2 as Weight)) } - // Storage: Democracy PublicProps (r:1 w:1) - // Storage: Democracy DepositOf (r:1 w:1) - // Storage: System Account (r:1 w:1) + // Storage: Democracy PublicProps (r:1 w:1) + // Storage: Democracy DepositOf (r:1 w:1) + // Storage: System Account (r:2 w:2) fn cancel_proposal(p: u32, ) -> Weight { - (37_695_000 as Weight) - // Standard Error: 2_000 - .saturating_add((258_000 as Weight).saturating_mul(p as Weight)) - .saturating_add(T::DbWeight::get().reads(3 as Weight)) - .saturating_add(T::DbWeight::get().writes(3 as Weight)) + (89_197_000 as Weight) + // Standard Error: 11_000 + + .saturating_add((560_000 as Weight).saturating_mul(p as Weight)) + .saturating_add(T::DbWeight::get().reads(4 as Weight)) + .saturating_add(T::DbWeight::get().writes(4 as Weight)) } - // Storage: Democracy ReferendumInfoOf (r:0 w:1) + // Storage: Democracy ReferendumInfoOf (r:0 w:1) fn cancel_referendum() -> Weight { - (9_456_000 as Weight) + (30_050_000 as Weight) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } - // Storage: Scheduler Lookup (r:1 w:1) - // Storage: Scheduler Agenda (r:1 w:1) + // Storage: Scheduler Lookup (r:1 w:1) + // Storage: Scheduler Agenda (r:1 w:1) fn cancel_queued(r: u32, ) -> Weight { - (19_915_000 as Weight) - // Standard Error: 1_000 - .saturating_add((609_000 as Weight).saturating_mul(r as Weight)) + (44_474_000 as Weight) + // Standard Error: 12_000 + + .saturating_add((1_607_000 as Weight).saturating_mul(r as Weight)) .saturating_add(T::DbWeight::get().reads(2 as Weight)) .saturating_add(T::DbWeight::get().writes(2 as Weight)) } - // Storage: Democracy LowestUnbaked (r:1 w:1) - // Storage: Democracy ReferendumCount (r:1 w:0) - // Storage: Democracy ReferendumInfoOf (r:1 w:0) + // Storage: Democracy LowestUnbaked (r:1 w:1) + // Storage: Democracy ReferendumCount (r:1 w:0) + // Storage: Democracy ReferendumInfoOf (r:1 w:0) fn on_initialize_base(r: u32, ) -> Weight { - (3_787_000 as Weight) - // Standard Error: 2_000 - .saturating_add((2_852_000 as Weight).saturating_mul(r as Weight)) + (5_092_000 as Weight) + // Standard Error: 43_000 + + .saturating_add((8_565_000 as Weight).saturating_mul(r as Weight)) .saturating_add(T::DbWeight::get().reads(2 as Weight)) .saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(r as Weight))) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } - // Storage: Democracy LowestUnbaked (r:1 w:1) - // Storage: Democracy ReferendumCount (r:1 w:0) - // Storage: Democracy LastTabledWasExternal (r:1 w:0) - // Storage: Democracy NextExternal (r:1 w:0) - // Storage: Democracy PublicProps (r:1 w:0) - // Storage: Democracy ReferendumInfoOf (r:1 w:0) + // Storage: Democracy LowestUnbaked (r:1 w:1) + // Storage: Democracy ReferendumCount (r:1 w:0) + // Storage: Democracy LastTabledWasExternal (r:1 w:0) + // Storage: Democracy NextExternal (r:1 w:0) + // Storage: Democracy PublicProps (r:1 w:0) + // Storage: Democracy ReferendumInfoOf (r:1 w:0) fn on_initialize_base_with_launch_period(r: u32, ) -> Weight { - (7_890_000 as Weight) - // Standard Error: 2_000 - .saturating_add((2_856_000 as Weight).saturating_mul(r as Weight)) + (19_325_000 as Weight) + // Standard Error: 44_000 + + .saturating_add((8_669_000 as Weight).saturating_mul(r as Weight)) .saturating_add(T::DbWeight::get().reads(5 as Weight)) .saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(r as Weight))) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } - // Storage: Democracy VotingOf (r:3 w:3) - // Storage: Democracy ReferendumInfoOf (r:1 w:1) - // Storage: Balances Locks (r:1 w:1) + // Storage: Democracy VotingOf (r:3 w:3) + // Storage: Democracy ReferendumInfoOf (r:1 w:1) + // Storage: Balances Locks (r:1 w:1) fn delegate(r: u32, ) -> Weight { - (31_190_000 as Weight) - // Standard Error: 3_000 - .saturating_add((3_753_000 as Weight).saturating_mul(r as Weight)) + (79_393_000 as Weight) + // Standard Error: 58_000 + + .saturating_add((10_668_000 as Weight).saturating_mul(r as Weight)) .saturating_add(T::DbWeight::get().reads(4 as Weight)) .saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(r as Weight))) .saturating_add(T::DbWeight::get().writes(4 as Weight)) .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(r as Weight))) } - // Storage: Democracy VotingOf (r:2 w:2) - // Storage: Democracy ReferendumInfoOf (r:1 w:1) + // Storage: Democracy VotingOf (r:2 w:2) + // Storage: Democracy ReferendumInfoOf (r:1 w:1) fn undelegate(r: u32, ) -> Weight { - (15_121_000 as Weight) - // Standard Error: 3_000 - .saturating_add((3_852_000 as Weight).saturating_mul(r as Weight)) + (29_023_000 as Weight) + // Standard Error: 51_000 + + .saturating_add((10_778_000 as Weight).saturating_mul(r as Weight)) .saturating_add(T::DbWeight::get().reads(2 as Weight)) .saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(r as Weight))) .saturating_add(T::DbWeight::get().writes(2 as Weight)) .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(r as Weight))) } - // Storage: Democracy PublicProps (r:0 w:1) + // Storage: Democracy PublicProps (r:0 w:1) fn clear_public_proposals() -> Weight { - (1_583_000 as Weight) + (4_280_000 as Weight) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } - // Storage: Democracy Preimages (r:1 w:1) + // Storage: Democracy Preimages (r:1 w:1) fn note_preimage(b: u32, ) -> Weight { - (22_681_000 as Weight) - // Standard Error: 0 - .saturating_add((2_000 as Weight).saturating_mul(b as Weight)) + (65_302_000 as Weight) + // Standard Error: 0 + + .saturating_add((3_000 as Weight).saturating_mul(b as Weight)) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } - // Storage: Democracy Preimages (r:1 w:1) + // Storage: Democracy Preimages (r:1 w:1) fn note_imminent_preimage(b: u32, ) -> Weight { - (15_599_000 as Weight) - // Standard Error: 0 - .saturating_add((2_000 as Weight).saturating_mul(b as Weight)) + (43_078_000 as Weight) + // Standard Error: 0 + + .saturating_add((3_000 as Weight).saturating_mul(b as Weight)) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } - // Storage: Democracy Preimages (r:1 w:1) - // Storage: System Account (r:1 w:0) + // Storage: Democracy Preimages (r:1 w:1) + // Storage: System Account (r:1 w:0) fn reap_preimage(b: u32, ) -> Weight { - (23_663_000 as Weight) - // Standard Error: 0 + (58_136_000 as Weight) + // Standard Error: 0 + .saturating_add((1_000 as Weight).saturating_mul(b as Weight)) .saturating_add(T::DbWeight::get().reads(2 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } - // Storage: Democracy VotingOf (r:1 w:1) - // Storage: Balances Locks (r:1 w:1) - // Storage: System Account (r:1 w:1) + // Storage: Democracy VotingOf (r:1 w:1) + // Storage: Balances Locks (r:1 w:1) + // Storage: System Account (r:1 w:1) fn unlock_remove(r: u32, ) -> Weight { - (21_928_000 as Weight) - // Standard Error: 1_000 - .saturating_add((61_000 as Weight).saturating_mul(r as Weight)) + (46_774_000 as Weight) + // Standard Error: 5_000 + + .saturating_add((135_000 as Weight).saturating_mul(r as Weight)) .saturating_add(T::DbWeight::get().reads(3 as Weight)) .saturating_add(T::DbWeight::get().writes(3 as Weight)) } - // Storage: Democracy VotingOf (r:1 w:1) - // Storage: Balances Locks (r:1 w:1) - // Storage: System Account (r:1 w:1) + // Storage: Democracy VotingOf (r:1 w:1) + // Storage: Balances Locks (r:1 w:1) + // Storage: System Account (r:1 w:1) fn unlock_set(r: u32, ) -> Weight { - (21_548_000 as Weight) - // Standard Error: 1_000 - .saturating_add((123_000 as Weight).saturating_mul(r as Weight)) + (47_613_000 as Weight) + // Standard Error: 6_000 + + .saturating_add((248_000 as Weight).saturating_mul(r as Weight)) .saturating_add(T::DbWeight::get().reads(3 as Weight)) .saturating_add(T::DbWeight::get().writes(3 as Weight)) } - // Storage: Democracy ReferendumInfoOf (r:1 w:1) - // Storage: Democracy VotingOf (r:1 w:1) + // Storage: Democracy ReferendumInfoOf (r:1 w:1) + // Storage: Democracy VotingOf (r:1 w:1) fn remove_vote(r: u32, ) -> Weight { - (11_797_000 as Weight) - // Standard Error: 1_000 - .saturating_add((117_000 as Weight).saturating_mul(r as Weight)) + (27_105_000 as Weight) + // Standard Error: 4_000 + + .saturating_add((222_000 as Weight).saturating_mul(r as Weight)) .saturating_add(T::DbWeight::get().reads(2 as Weight)) .saturating_add(T::DbWeight::get().writes(2 as Weight)) } - // Storage: Democracy ReferendumInfoOf (r:1 w:1) - // Storage: Democracy VotingOf (r:1 w:1) + // Storage: Democracy ReferendumInfoOf (r:1 w:1) + // Storage: Democracy VotingOf (r:1 w:1) fn remove_other_vote(r: u32, ) -> Weight { - (11_930_000 as Weight) - // Standard Error: 1_000 - .saturating_add((122_000 as Weight).saturating_mul(r as Weight)) + (28_590_000 as Weight) + // Standard Error: 4_000 + + .saturating_add((212_000 as Weight).saturating_mul(r as Weight)) .saturating_add(T::DbWeight::get().reads(2 as Weight)) .saturating_add(T::DbWeight::get().writes(2 as Weight)) - } -} + }} diff --git a/runtime/src/weights/pallet_grandpa.rs b/runtime/src/weights/pallet_grandpa.rs index 72f82d1f1..12991fad0 100644 --- a/runtime/src/weights/pallet_grandpa.rs +++ b/runtime/src/weights/pallet_grandpa.rs @@ -30,14 +30,22 @@ pub struct WeightInfo(PhantomData); impl pallet_grandpa::weights::WeightInfo for WeightInfo { + fn check_equivocation_proof(x: u32, ) -> Weight { (206_093_000 as Weight) - // Standard Error: 82_000 + + // Standard Error: 82_000 + .saturating_add((33_636_000 as Weight).saturating_mul(x as Weight)) + } - // Storage: Grandpa Stalled (r:0 w:1) + + // Storage: Grandpa Stalled (r:0 w:1) + fn note_stalled() -> Weight { (6_440_000 as Weight) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + } } diff --git a/runtime/src/weights/pallet_identity.rs b/runtime/src/weights/pallet_identity.rs index c7cc89b1a..3f968fce4 100644 --- a/runtime/src/weights/pallet_identity.rs +++ b/runtime/src/weights/pallet_identity.rs @@ -1,23 +1,10 @@ //! Autogenerated weights for pallet_identity //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2022-01-14, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128 - -// Executed Command: -// ./target/release/zeitgeist -// benchmark -// --chain=dev -// --steps=50 -// --repeat=20 -// --pallet=pallet_identity -// --extrinsic=* -// --execution=wasm -// --wasm-execution=compiled -// --heap-pages=4096 -// --template=./misc/frame_weight_template.hbs -// --output=./runtime/src/weights/ +//! DATE: 2022-03-23, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +// Executed Command:// ./target/release/zeitgeist// benchmark// --chain=dev// --steps=50// --repeat=20// --pallet=pallet_identity// --extrinsic=*// --execution=wasm// --wasm-execution=compiled// --heap-pages=4096// --template=./misc/frame_weight_template.hbs// --output=./runtime/src/weights/ #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] @@ -28,165 +15,184 @@ use core::marker::PhantomData; /// Weight functions for pallet_identity (automatically generated) pub struct WeightInfo(PhantomData); impl pallet_identity::weights::WeightInfo for WeightInfo { - // Storage: Identity Registrars (r:1 w:1) - fn add_registrar(r: u32, ) -> Weight { - (45_763_000 as Weight) - // Standard Error: 85_000 - .saturating_add((701_000 as Weight).saturating_mul(r as Weight)) + // Storage: Identity Registrars (r:1 w:1) + fn add_registrar(_r: u32, ) -> Weight { + (30_715_000 as Weight) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } - // Storage: Identity IdentityOf (r:1 w:1) - fn set_identity(_r: u32, x: u32, ) -> Weight { - (126_287_000 as Weight) - // Standard Error: 23_000 - .saturating_add((2_041_000 as Weight).saturating_mul(x as Weight)) + // Storage: Identity IdentityOf (r:1 w:1) + fn set_identity(r: u32, x: u32, ) -> Weight { + (50_628_000 as Weight) + // Standard Error: 291_000 + + .saturating_add((1_775_000 as Weight).saturating_mul(r as Weight)) + // Standard Error: 19_000 + + .saturating_add((986_000 as Weight).saturating_mul(x as Weight)) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } - // Storage: Identity IdentityOf (r:1 w:0) - // Storage: Identity SubsOf (r:1 w:1) - // Storage: Identity SuperOf (r:1 w:1) + // Storage: Identity IdentityOf (r:1 w:0) + // Storage: Identity SubsOf (r:1 w:1) + // Storage: Identity SuperOf (r:1 w:1) fn set_subs_new(s: u32, ) -> Weight { - (107_394_000 as Weight) - // Standard Error: 84_000 - .saturating_add((14_275_000 as Weight).saturating_mul(s as Weight)) + (71_720_000 as Weight) + // Standard Error: 87_000 + + .saturating_add((8_398_000 as Weight).saturating_mul(s as Weight)) .saturating_add(T::DbWeight::get().reads(2 as Weight)) .saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(s as Weight))) .saturating_add(T::DbWeight::get().writes(1 as Weight)) .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight))) } - // Storage: Identity IdentityOf (r:1 w:0) - // Storage: Identity SubsOf (r:1 w:1) - // Storage: Identity SuperOf (r:0 w:1) + // Storage: Identity IdentityOf (r:1 w:0) + // Storage: Identity SubsOf (r:1 w:1) + // Storage: Identity SuperOf (r:0 w:1) fn set_subs_old(p: u32, ) -> Weight { - (92_162_000 as Weight) - // Standard Error: 27_000 - .saturating_add((4_619_000 as Weight).saturating_mul(p as Weight)) + (64_149_000 as Weight) + // Standard Error: 26_000 + + .saturating_add((2_457_000 as Weight).saturating_mul(p as Weight)) .saturating_add(T::DbWeight::get().reads(2 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(p as Weight))) } - // Storage: Identity SubsOf (r:1 w:1) - // Storage: Identity IdentityOf (r:1 w:1) - // Storage: Identity SuperOf (r:0 w:64) + // Storage: Identity SubsOf (r:1 w:1) + // Storage: Identity IdentityOf (r:1 w:1) + // Storage: Identity SuperOf (r:0 w:64) fn clear_identity(r: u32, s: u32, x: u32, ) -> Weight { - (96_441_000 as Weight) - // Standard Error: 231_000 - .saturating_add((597_000 as Weight).saturating_mul(r as Weight)) - // Standard Error: 13_000 - .saturating_add((4_606_000 as Weight).saturating_mul(s as Weight)) - // Standard Error: 13_000 - .saturating_add((1_056_000 as Weight).saturating_mul(x as Weight)) + (48_491_000 as Weight) + // Standard Error: 517_000 + + .saturating_add((3_536_000 as Weight).saturating_mul(r as Weight)) + // Standard Error: 29_000 + + .saturating_add((2_469_000 as Weight).saturating_mul(s as Weight)) + // Standard Error: 29_000 + + .saturating_add((485_000 as Weight).saturating_mul(x as Weight)) .saturating_add(T::DbWeight::get().reads(2 as Weight)) .saturating_add(T::DbWeight::get().writes(2 as Weight)) .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight))) } - // Storage: Identity Registrars (r:1 w:0) - // Storage: Identity IdentityOf (r:1 w:1) + // Storage: Identity Registrars (r:1 w:0) + // Storage: Identity IdentityOf (r:1 w:1) fn request_judgement(r: u32, x: u32, ) -> Weight { - (100_320_000 as Weight) - // Standard Error: 470_000 - .saturating_add((1_832_000 as Weight).saturating_mul(r as Weight)) - // Standard Error: 31_000 - .saturating_add((2_329_000 as Weight).saturating_mul(x as Weight)) + (58_494_000 as Weight) + // Standard Error: 299_000 + + .saturating_add((1_667_000 as Weight).saturating_mul(r as Weight)) + // Standard Error: 20_000 + + .saturating_add((1_018_000 as Weight).saturating_mul(x as Weight)) .saturating_add(T::DbWeight::get().reads(2 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } - // Storage: Identity IdentityOf (r:1 w:1) + // Storage: Identity IdentityOf (r:1 w:1) fn cancel_request(r: u32, x: u32, ) -> Weight { - (104_982_000 as Weight) - // Standard Error: 429_000 - .saturating_add((613_000 as Weight).saturating_mul(r as Weight)) - // Standard Error: 28_000 - .saturating_add((2_030_000 as Weight).saturating_mul(x as Weight)) + (56_688_000 as Weight) + // Standard Error: 322_000 + + .saturating_add((1_301_000 as Weight).saturating_mul(r as Weight)) + // Standard Error: 21_000 + + .saturating_add((1_168_000 as Weight).saturating_mul(x as Weight)) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } - // Storage: Identity Registrars (r:1 w:1) + // Storage: Identity Registrars (r:1 w:1) fn set_fee(r: u32, ) -> Weight { - (18_774_000 as Weight) - // Standard Error: 55_000 - .saturating_add((506_000 as Weight).saturating_mul(r as Weight)) + (12_393_000 as Weight) + // Standard Error: 71_000 + + .saturating_add((387_000 as Weight).saturating_mul(r as Weight)) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } - // Storage: Identity Registrars (r:1 w:1) + // Storage: Identity Registrars (r:1 w:1) fn set_account_id(r: u32, ) -> Weight { - (18_947_000 as Weight) - // Standard Error: 37_000 - .saturating_add((561_000 as Weight).saturating_mul(r as Weight)) + (13_178_000 as Weight) + // Standard Error: 62_000 + + .saturating_add((189_000 as Weight).saturating_mul(r as Weight)) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } - // Storage: Identity Registrars (r:1 w:1) + // Storage: Identity Registrars (r:1 w:1) fn set_fields(r: u32, ) -> Weight { - (18_269_000 as Weight) - // Standard Error: 44_000 - .saturating_add((620_000 as Weight).saturating_mul(r as Weight)) + (11_467_000 as Weight) + // Standard Error: 92_000 + + .saturating_add((252_000 as Weight).saturating_mul(r as Weight)) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } - // Storage: Identity Registrars (r:1 w:0) - // Storage: Identity IdentityOf (r:1 w:1) + // Storage: Identity Registrars (r:1 w:0) + // Storage: Identity IdentityOf (r:1 w:1) fn provide_judgement(_r: u32, x: u32, ) -> Weight { - (77_416_000 as Weight) - // Standard Error: 26_000 - .saturating_add((2_231_000 as Weight).saturating_mul(x as Weight)) + (62_815_000 as Weight) + // Standard Error: 18_000 + + .saturating_add((1_027_000 as Weight).saturating_mul(x as Weight)) .saturating_add(T::DbWeight::get().reads(2 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } - // Storage: Identity SubsOf (r:1 w:1) - // Storage: Identity IdentityOf (r:1 w:1) - // Storage: System Account (r:2 w:2) - // Storage: Identity SuperOf (r:0 w:64) - fn kill_identity(r: u32, s: u32, x: u32, ) -> Weight { - (147_008_000 as Weight) - // Standard Error: 279_000 - .saturating_add((107_000 as Weight).saturating_mul(r as Weight)) - // Standard Error: 16_000 - .saturating_add((4_683_000 as Weight).saturating_mul(s as Weight)) - // Standard Error: 16_000 - .saturating_add((60_000 as Weight).saturating_mul(x as Weight)) + // Storage: Identity SubsOf (r:1 w:1) + // Storage: Identity IdentityOf (r:1 w:1) + // Storage: System Account (r:2 w:2) + // Storage: Identity SuperOf (r:0 w:64) + fn kill_identity(r: u32, s: u32, _x: u32, ) -> Weight { + (57_458_000 as Weight) + // Standard Error: 473_000 + + .saturating_add((5_746_000 as Weight).saturating_mul(r as Weight)) + // Standard Error: 27_000 + + .saturating_add((2_536_000 as Weight).saturating_mul(s as Weight)) .saturating_add(T::DbWeight::get().reads(4 as Weight)) .saturating_add(T::DbWeight::get().writes(4 as Weight)) .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight))) } - // Storage: Identity IdentityOf (r:1 w:0) - // Storage: Identity SuperOf (r:1 w:1) - // Storage: Identity SubsOf (r:1 w:1) + // Storage: Identity IdentityOf (r:1 w:0) + // Storage: Identity SuperOf (r:1 w:1) + // Storage: Identity SubsOf (r:1 w:1) fn add_sub(s: u32, ) -> Weight { - (121_352_000 as Weight) - // Standard Error: 13_000 - .saturating_add((269_000 as Weight).saturating_mul(s as Weight)) + (79_034_000 as Weight) + // Standard Error: 14_000 + + .saturating_add((225_000 as Weight).saturating_mul(s as Weight)) .saturating_add(T::DbWeight::get().reads(3 as Weight)) .saturating_add(T::DbWeight::get().writes(2 as Weight)) } - // Storage: Identity IdentityOf (r:1 w:0) - // Storage: Identity SuperOf (r:1 w:1) + // Storage: Identity IdentityOf (r:1 w:0) + // Storage: Identity SuperOf (r:1 w:1) fn rename_sub(s: u32, ) -> Weight { - (36_851_000 as Weight) - // Standard Error: 3_000 - .saturating_add((24_000 as Weight).saturating_mul(s as Weight)) + (23_525_000 as Weight) + // Standard Error: 4_000 + + .saturating_add((83_000 as Weight).saturating_mul(s as Weight)) .saturating_add(T::DbWeight::get().reads(2 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } - // Storage: Identity IdentityOf (r:1 w:0) - // Storage: Identity SuperOf (r:1 w:1) - // Storage: Identity SubsOf (r:1 w:1) + // Storage: Identity IdentityOf (r:1 w:0) + // Storage: Identity SuperOf (r:1 w:1) + // Storage: Identity SubsOf (r:1 w:1) fn remove_sub(s: u32, ) -> Weight { - (119_571_000 as Weight) - // Standard Error: 13_000 - .saturating_add((147_000 as Weight).saturating_mul(s as Weight)) + (87_842_000 as Weight) + // Standard Error: 14_000 + + .saturating_add((91_000 as Weight).saturating_mul(s as Weight)) .saturating_add(T::DbWeight::get().reads(3 as Weight)) .saturating_add(T::DbWeight::get().writes(2 as Weight)) } - // Storage: Identity SuperOf (r:1 w:1) - // Storage: Identity SubsOf (r:1 w:1) + // Storage: Identity SuperOf (r:1 w:1) + // Storage: Identity SubsOf (r:1 w:1) fn quit_sub(s: u32, ) -> Weight { - (67_807_000 as Weight) - // Standard Error: 6_000 - .saturating_add((316_000 as Weight).saturating_mul(s as Weight)) + (55_002_000 as Weight) + // Standard Error: 11_000 + + .saturating_add((268_000 as Weight).saturating_mul(s as Weight)) .saturating_add(T::DbWeight::get().reads(2 as Weight)) .saturating_add(T::DbWeight::get().writes(2 as Weight)) } diff --git a/runtime/src/weights/pallet_membership.rs b/runtime/src/weights/pallet_membership.rs index 331151046..ad0cd5fe1 100644 --- a/runtime/src/weights/pallet_membership.rs +++ b/runtime/src/weights/pallet_membership.rs @@ -1,23 +1,10 @@ //! Autogenerated weights for pallet_membership //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2022-01-14, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128 - -// Executed Command: -// ./target/release/zeitgeist -// benchmark -// --chain=dev -// --steps=50 -// --repeat=20 -// --pallet=pallet_membership -// --extrinsic=* -// --execution=wasm -// --wasm-execution=compiled -// --heap-pages=4096 -// --template=./misc/frame_weight_template.hbs -// --output=./runtime/src/weights/ +//! DATE: 2022-03-23, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +// Executed Command:// ./target/release/zeitgeist// benchmark// --chain=dev// --steps=50// --repeat=20// --pallet=pallet_membership// --extrinsic=*// --execution=wasm// --wasm-execution=compiled// --heap-pages=4096// --template=./misc/frame_weight_template.hbs// --output=./runtime/src/weights/ #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] @@ -28,81 +15,85 @@ use core::marker::PhantomData; /// Weight functions for pallet_membership (automatically generated) pub struct WeightInfo(PhantomData); impl pallet_membership::weights::WeightInfo for WeightInfo { - // Storage: AdvisoryCommitteeMembership Members (r:1 w:1) - // Storage: AdvisoryCommitteeCollective Proposals (r:1 w:0) - // Storage: AdvisoryCommitteeCollective Members (r:0 w:1) - // Storage: AdvisoryCommitteeCollective Prime (r:0 w:1) + // Storage: AdvisoryCommitteeMembership Members (r:1 w:1) + // Storage: AdvisoryCommittee Proposals (r:1 w:0) + // Storage: AdvisoryCommittee Members (r:0 w:1) + // Storage: AdvisoryCommittee Prime (r:0 w:1) fn add_member(m: u32, ) -> Weight { - (51_845_000 as Weight) - // Standard Error: 12_000 - .saturating_add((297_000 as Weight).saturating_mul(m as Weight)) + (31_674_000 as Weight) + // Standard Error: 12_000 + + .saturating_add((258_000 as Weight).saturating_mul(m as Weight)) .saturating_add(T::DbWeight::get().reads(2 as Weight)) .saturating_add(T::DbWeight::get().writes(3 as Weight)) } - // Storage: AdvisoryCommitteeMembership Members (r:1 w:1) - // Storage: AdvisoryCommitteeCollective Proposals (r:1 w:0) - // Storage: AdvisoryCommitteeMembership Prime (r:1 w:0) - // Storage: AdvisoryCommitteeCollective Members (r:0 w:1) - // Storage: AdvisoryCommitteeCollective Prime (r:0 w:1) + // Storage: AdvisoryCommitteeMembership Members (r:1 w:1) + // Storage: AdvisoryCommittee Proposals (r:1 w:0) + // Storage: AdvisoryCommitteeMembership Prime (r:1 w:0) + // Storage: AdvisoryCommittee Members (r:0 w:1) + // Storage: AdvisoryCommittee Prime (r:0 w:1) fn remove_member(m: u32, ) -> Weight { - (64_142_000 as Weight) - // Standard Error: 4_000 - .saturating_add((195_000 as Weight).saturating_mul(m as Weight)) + (42_912_000 as Weight) + // Standard Error: 5_000 + + .saturating_add((149_000 as Weight).saturating_mul(m as Weight)) .saturating_add(T::DbWeight::get().reads(3 as Weight)) .saturating_add(T::DbWeight::get().writes(3 as Weight)) } - // Storage: AdvisoryCommitteeMembership Members (r:1 w:1) - // Storage: AdvisoryCommitteeCollective Proposals (r:1 w:0) - // Storage: AdvisoryCommitteeMembership Prime (r:1 w:0) - // Storage: AdvisoryCommitteeCollective Members (r:0 w:1) - // Storage: AdvisoryCommitteeCollective Prime (r:0 w:1) + // Storage: AdvisoryCommitteeMembership Members (r:1 w:1) + // Storage: AdvisoryCommittee Proposals (r:1 w:0) + // Storage: AdvisoryCommitteeMembership Prime (r:1 w:0) + // Storage: AdvisoryCommittee Members (r:0 w:1) + // Storage: AdvisoryCommittee Prime (r:0 w:1) fn swap_member(m: u32, ) -> Weight { - (63_303_000 as Weight) - // Standard Error: 3_000 - .saturating_add((273_000 as Weight).saturating_mul(m as Weight)) + (40_127_000 as Weight) + // Standard Error: 5_000 + + .saturating_add((196_000 as Weight).saturating_mul(m as Weight)) .saturating_add(T::DbWeight::get().reads(3 as Weight)) .saturating_add(T::DbWeight::get().writes(3 as Weight)) } - // Storage: AdvisoryCommitteeMembership Members (r:1 w:1) - // Storage: AdvisoryCommitteeCollective Proposals (r:1 w:0) - // Storage: AdvisoryCommitteeMembership Prime (r:1 w:0) - // Storage: AdvisoryCommitteeCollective Members (r:0 w:1) - // Storage: AdvisoryCommitteeCollective Prime (r:0 w:1) + // Storage: AdvisoryCommitteeMembership Members (r:1 w:1) + // Storage: AdvisoryCommittee Proposals (r:1 w:0) + // Storage: AdvisoryCommitteeMembership Prime (r:1 w:0) + // Storage: AdvisoryCommittee Members (r:0 w:1) + // Storage: AdvisoryCommittee Prime (r:0 w:1) fn reset_member(m: u32, ) -> Weight { - (68_221_000 as Weight) - // Standard Error: 3_000 - .saturating_add((513_000 as Weight).saturating_mul(m as Weight)) + (39_227_000 as Weight) + // Standard Error: 5_000 + + .saturating_add((415_000 as Weight).saturating_mul(m as Weight)) .saturating_add(T::DbWeight::get().reads(3 as Weight)) .saturating_add(T::DbWeight::get().writes(3 as Weight)) } - // Storage: AdvisoryCommitteeMembership Members (r:1 w:1) - // Storage: AdvisoryCommitteeCollective Proposals (r:1 w:0) - // Storage: AdvisoryCommitteeMembership Prime (r:1 w:1) - // Storage: AdvisoryCommitteeCollective Members (r:0 w:1) - // Storage: AdvisoryCommitteeCollective Prime (r:0 w:1) + // Storage: AdvisoryCommitteeMembership Members (r:1 w:1) + // Storage: AdvisoryCommittee Proposals (r:1 w:0) + // Storage: AdvisoryCommitteeMembership Prime (r:1 w:1) + // Storage: AdvisoryCommittee Members (r:0 w:1) + // Storage: AdvisoryCommittee Prime (r:0 w:1) fn change_key(m: u32, ) -> Weight { - (68_446_000 as Weight) - // Standard Error: 3_000 - .saturating_add((235_000 as Weight).saturating_mul(m as Weight)) + (43_082_000 as Weight) + // Standard Error: 5_000 + + .saturating_add((150_000 as Weight).saturating_mul(m as Weight)) .saturating_add(T::DbWeight::get().reads(3 as Weight)) .saturating_add(T::DbWeight::get().writes(4 as Weight)) } - // Storage: AdvisoryCommitteeMembership Members (r:1 w:0) - // Storage: AdvisoryCommitteeCollective Prime (r:0 w:1) - // Storage: AdvisoryCommitteeMembership Prime (r:0 w:1) + // Storage: AdvisoryCommitteeMembership Members (r:1 w:0) + // Storage: AdvisoryCommitteeMembership Prime (r:0 w:1) + // Storage: AdvisoryCommittee Prime (r:0 w:1) fn set_prime(m: u32, ) -> Weight { - (17_743_000 as Weight) - // Standard Error: 0 - .saturating_add((176_000 as Weight).saturating_mul(m as Weight)) + (11_096_000 as Weight) + // Standard Error: 2_000 + + .saturating_add((145_000 as Weight).saturating_mul(m as Weight)) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(2 as Weight)) } - // Storage: AdvisoryCommitteeCollective Prime (r:0 w:1) - // Storage: AdvisoryCommitteeMembership Prime (r:0 w:1) - fn clear_prime(m: u32, ) -> Weight { - (7_761_000 as Weight) - // Standard Error: 0 - .saturating_add((4_000 as Weight).saturating_mul(m as Weight)) + // Storage: AdvisoryCommitteeMembership Prime (r:0 w:1) + // Storage: AdvisoryCommittee Prime (r:0 w:1) + fn clear_prime(_m: u32, ) -> Weight { + (4_063_000 as Weight) .saturating_add(T::DbWeight::get().writes(2 as Weight)) } } diff --git a/runtime/src/weights/pallet_preimage.rs b/runtime/src/weights/pallet_preimage.rs index ea0d718db..143059398 100644 --- a/runtime/src/weights/pallet_preimage.rs +++ b/runtime/src/weights/pallet_preimage.rs @@ -1,42 +1,10 @@ -// This file is part of Substrate. - -// Copyright (C) 2022 Parity Technologies (UK) Ltd. -// SPDX-License-Identifier: Apache-2.0 - -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - //! Autogenerated weights for pallet_preimage //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2022-01-31, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2022-03-23, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 -// Executed Command: -// ./target/production/substrate -// benchmark -// --chain=dev -// --steps=50 -// --repeat=20 -// --pallet=pallet_preimage -// --extrinsic=* -// --execution=wasm -// --wasm-execution=compiled -// --heap-pages=4096 -// --output=./frame/preimage/src/weights.rs -// --template=.maintain/frame-weight-template.hbs -// --header=HEADER-APACHE2 -// --raw - +// Executed Command:// ./target/release/zeitgeist// benchmark// --chain=dev// --steps=50// --repeat=20// --pallet=pallet_preimage// --extrinsic=*// --execution=wasm// --wasm-execution=compiled// --heap-pages=4096// --template=./misc/frame_weight_template.hbs// --output=./runtime/src/weights/ #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] @@ -44,94 +12,95 @@ use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; use core::marker::PhantomData; - -/// Weights for pallet_preimage using the Substrate node and recommended hardware. +/// Weight functions for pallet_preimage (automatically generated) pub struct WeightInfo(PhantomData); impl pallet_preimage::weights::WeightInfo for WeightInfo { - // Storage: Preimage PreimageFor (r:1 w:1) - // Storage: Preimage StatusFor (r:1 w:1) + // Storage: Preimage PreimageFor (r:1 w:1) + // Storage: Preimage StatusFor (r:1 w:1) fn note_preimage(s: u32, ) -> Weight { - (0 as Weight) - // Standard Error: 0 - .saturating_add((2_000 as Weight).saturating_mul(s as Weight)) + (0 as Weight) + // Standard Error: 0 + + .saturating_add((3_000 as Weight).saturating_mul(s as Weight)) .saturating_add(T::DbWeight::get().reads(2 as Weight)) .saturating_add(T::DbWeight::get().writes(2 as Weight)) } - // Storage: Preimage PreimageFor (r:1 w:1) - // Storage: Preimage StatusFor (r:1 w:0) + // Storage: Preimage PreimageFor (r:1 w:1) + // Storage: Preimage StatusFor (r:1 w:0) fn note_requested_preimage(s: u32, ) -> Weight { - (0 as Weight) - // Standard Error: 0 - .saturating_add((2_000 as Weight).saturating_mul(s as Weight)) + (0 as Weight) + // Standard Error: 0 + + .saturating_add((3_000 as Weight).saturating_mul(s as Weight)) .saturating_add(T::DbWeight::get().reads(2 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } - // Storage: Preimage PreimageFor (r:1 w:1) - // Storage: Preimage StatusFor (r:1 w:0) + // Storage: Preimage PreimageFor (r:1 w:1) + // Storage: Preimage StatusFor (r:1 w:0) fn note_no_deposit_preimage(s: u32, ) -> Weight { - (0 as Weight) - // Standard Error: 0 - .saturating_add((2_000 as Weight).saturating_mul(s as Weight)) + (0 as Weight) + // Standard Error: 0 + + .saturating_add((3_000 as Weight).saturating_mul(s as Weight)) .saturating_add(T::DbWeight::get().reads(2 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } - // Storage: Preimage StatusFor (r:1 w:1) - // Storage: Preimage PreimageFor (r:0 w:1) + // Storage: Preimage StatusFor (r:1 w:1) + // Storage: Preimage PreimageFor (r:0 w:1) fn unnote_preimage() -> Weight { - (39_239_000 as Weight) + (96_850_000 as Weight) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(2 as Weight)) } - // Storage: Preimage StatusFor (r:1 w:1) - // Storage: Preimage PreimageFor (r:0 w:1) + // Storage: Preimage StatusFor (r:1 w:1) + // Storage: Preimage PreimageFor (r:0 w:1) fn unnote_no_deposit_preimage() -> Weight { - (24_905_000 as Weight) + (73_810_000 as Weight) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(2 as Weight)) } - // Storage: Preimage StatusFor (r:1 w:1) + // Storage: Preimage StatusFor (r:1 w:1) fn request_preimage() -> Weight { - (37_451_000 as Weight) + (102_940_000 as Weight) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } - // Storage: Preimage StatusFor (r:1 w:1) + // Storage: Preimage StatusFor (r:1 w:1) fn request_no_deposit_preimage() -> Weight { - (23_397_000 as Weight) + (68_450_000 as Weight) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } - // Storage: Preimage StatusFor (r:1 w:1) + // Storage: Preimage StatusFor (r:1 w:1) fn request_unnoted_preimage() -> Weight { - (13_407_000 as Weight) + (42_020_000 as Weight) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } - // Storage: Preimage StatusFor (r:1 w:1) + // Storage: Preimage StatusFor (r:1 w:1) fn request_requested_preimage() -> Weight { - (4_202_000 as Weight) + (12_740_000 as Weight) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } - // Storage: Preimage StatusFor (r:1 w:1) - // Storage: Preimage PreimageFor (r:0 w:1) + // Storage: Preimage StatusFor (r:1 w:1) + // Storage: Preimage PreimageFor (r:0 w:1) fn unrequest_preimage() -> Weight { - (24_858_000 as Weight) + (75_940_000 as Weight) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(2 as Weight)) } - // Storage: Preimage StatusFor (r:1 w:1) - // Storage: Preimage PreimageFor (r:0 w:1) + // Storage: Preimage StatusFor (r:1 w:1) + // Storage: Preimage PreimageFor (r:0 w:1) fn unrequest_unnoted_preimage() -> Weight { - (13_763_000 as Weight) + (41_310_000 as Weight) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(2 as Weight)) } - // Storage: Preimage StatusFor (r:1 w:1) + // Storage: Preimage StatusFor (r:1 w:1) fn unrequest_multi_referenced_preimage() -> Weight { - (4_262_000 as Weight) + (12_640_000 as Weight) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } } - diff --git a/runtime/src/weights/pallet_scheduler.rs b/runtime/src/weights/pallet_scheduler.rs index 60e40d9d3..239f66224 100644 --- a/runtime/src/weights/pallet_scheduler.rs +++ b/runtime/src/weights/pallet_scheduler.rs @@ -1,42 +1,10 @@ -// This file is part of Substrate. - -// Copyright (C) 2022 Parity Technologies (UK) Ltd. -// SPDX-License-Identifier: Apache-2.0 - -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - //! Autogenerated weights for pallet_scheduler //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2022-01-31, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2022-03-23, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 -// Executed Command: -// ./target/production/substrate -// benchmark -// --chain=dev -// --steps=50 -// --repeat=20 -// --pallet=pallet_scheduler -// --extrinsic=* -// --execution=wasm -// --wasm-execution=compiled -// --heap-pages=4096 -// --output=./frame/scheduler/src/weights.rs -// --template=.maintain/frame-weight-template.hbs -// --header=HEADER-APACHE2 -// --raw - +// Executed Command:// ./target/release/zeitgeist// benchmark// --chain=dev// --steps=50// --repeat=20// --pallet=pallet_scheduler// --extrinsic=*// --execution=wasm// --wasm-execution=compiled// --heap-pages=4096// --template=./misc/frame_weight_template.hbs// --output=./runtime/src/weights/ #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] @@ -44,154 +12,167 @@ use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; use core::marker::PhantomData; -/// Weights for pallet_scheduler using the Substrate node and recommended hardware. +/// Weight functions for pallet_scheduler (automatically generated) pub struct WeightInfo(PhantomData); impl pallet_scheduler::weights::WeightInfo for WeightInfo { - // Storage: Scheduler Agenda (r:2 w:2) - // Storage: Preimage PreimageFor (r:1 w:1) - // Storage: Preimage StatusFor (r:1 w:1) - // Storage: Scheduler Lookup (r:0 w:1) + // Storage: Scheduler Agenda (r:2 w:2) + // Storage: Preimage PreimageFor (r:1 w:1) + // Storage: Preimage StatusFor (r:1 w:1) + // Storage: Scheduler Lookup (r:0 w:1) fn on_initialize_periodic_named_resolved(s: u32, ) -> Weight { - (11_587_000 as Weight) - // Standard Error: 17_000 - .saturating_add((17_428_000 as Weight).saturating_mul(s as Weight)) + (11_933_000 as Weight) + // Standard Error: 302_000 + + .saturating_add((49_031_000 as Weight).saturating_mul(s as Weight)) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().reads((3 as Weight).saturating_mul(s as Weight))) .saturating_add(T::DbWeight::get().writes(1 as Weight)) .saturating_add(T::DbWeight::get().writes((4 as Weight).saturating_mul(s as Weight))) } - // Storage: Scheduler Agenda (r:1 w:1) - // Storage: Preimage PreimageFor (r:1 w:1) - // Storage: Preimage StatusFor (r:1 w:1) - // Storage: Scheduler Lookup (r:0 w:1) + // Storage: Scheduler Agenda (r:1 w:1) + // Storage: Preimage PreimageFor (r:1 w:1) + // Storage: Preimage StatusFor (r:1 w:1) + // Storage: Scheduler Lookup (r:0 w:1) fn on_initialize_named_resolved(s: u32, ) -> Weight { - (8_965_000 as Weight) - // Standard Error: 11_000 - .saturating_add((13_410_000 as Weight).saturating_mul(s as Weight)) + (50_224_000 as Weight) + // Standard Error: 228_000 + + .saturating_add((36_244_000 as Weight).saturating_mul(s as Weight)) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().reads((2 as Weight).saturating_mul(s as Weight))) .saturating_add(T::DbWeight::get().writes(1 as Weight)) .saturating_add(T::DbWeight::get().writes((3 as Weight).saturating_mul(s as Weight))) } - // Storage: Scheduler Agenda (r:2 w:2) - // Storage: Preimage PreimageFor (r:1 w:1) - // Storage: Preimage StatusFor (r:1 w:1) + // Storage: Scheduler Agenda (r:2 w:2) + // Storage: Preimage PreimageFor (r:1 w:1) + // Storage: Preimage StatusFor (r:1 w:1) fn on_initialize_periodic_resolved(s: u32, ) -> Weight { - (8_654_000 as Weight) - // Standard Error: 17_000 - .saturating_add((14_990_000 as Weight).saturating_mul(s as Weight)) + (21_595_000 as Weight) + // Standard Error: 270_000 + + .saturating_add((40_900_000 as Weight).saturating_mul(s as Weight)) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().reads((3 as Weight).saturating_mul(s as Weight))) .saturating_add(T::DbWeight::get().writes(1 as Weight)) .saturating_add(T::DbWeight::get().writes((3 as Weight).saturating_mul(s as Weight))) } - // Storage: Scheduler Agenda (r:1 w:1) - // Storage: Preimage PreimageFor (r:1 w:1) - // Storage: Preimage StatusFor (r:1 w:1) + // Storage: Scheduler Agenda (r:1 w:1) + // Storage: Preimage PreimageFor (r:1 w:1) + // Storage: Preimage StatusFor (r:1 w:1) fn on_initialize_resolved(s: u32, ) -> Weight { - (9_303_000 as Weight) - // Standard Error: 10_000 - .saturating_add((12_244_000 as Weight).saturating_mul(s as Weight)) + (0 as Weight) + // Standard Error: 199_000 + + .saturating_add((34_170_000 as Weight).saturating_mul(s as Weight)) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().reads((2 as Weight).saturating_mul(s as Weight))) .saturating_add(T::DbWeight::get().writes(1 as Weight)) .saturating_add(T::DbWeight::get().writes((2 as Weight).saturating_mul(s as Weight))) } - // Storage: Scheduler Agenda (r:2 w:2) - // Storage: Preimage PreimageFor (r:1 w:0) - // Storage: Scheduler Lookup (r:0 w:1) + // Storage: Scheduler Agenda (r:2 w:2) + // Storage: Preimage PreimageFor (r:1 w:0) + // Storage: Scheduler Lookup (r:0 w:1) fn on_initialize_named_aborted(s: u32, ) -> Weight { - (7_506_000 as Weight) - // Standard Error: 3_000 - .saturating_add((5_208_000 as Weight).saturating_mul(s as Weight)) + (13_019_000 as Weight) + // Standard Error: 105_000 + + .saturating_add((14_819_000 as Weight).saturating_mul(s as Weight)) .saturating_add(T::DbWeight::get().reads(2 as Weight)) .saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(s as Weight))) .saturating_add(T::DbWeight::get().writes(2 as Weight)) .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight))) } - // Storage: Scheduler Agenda (r:2 w:2) - // Storage: Preimage PreimageFor (r:1 w:0) + // Storage: Scheduler Agenda (r:2 w:2) + // Storage: Preimage PreimageFor (r:1 w:0) fn on_initialize_aborted(s: u32, ) -> Weight { - (8_046_000 as Weight) - // Standard Error: 3_000 - .saturating_add((2_914_000 as Weight).saturating_mul(s as Weight)) + (30_727_000 as Weight) + // Standard Error: 78_000 + + .saturating_add((8_428_000 as Weight).saturating_mul(s as Weight)) .saturating_add(T::DbWeight::get().reads(2 as Weight)) .saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(s as Weight))) .saturating_add(T::DbWeight::get().writes(2 as Weight)) } - // Storage: Scheduler Agenda (r:2 w:2) - // Storage: Scheduler Lookup (r:0 w:1) + // Storage: Scheduler Agenda (r:2 w:2) + // Storage: Scheduler Lookup (r:0 w:1) fn on_initialize_periodic_named(s: u32, ) -> Weight { - (13_704_000 as Weight) - // Standard Error: 4_000 - .saturating_add((8_186_000 as Weight).saturating_mul(s as Weight)) + (58_274_000 as Weight) + // Standard Error: 165_000 + + .saturating_add((21_684_000 as Weight).saturating_mul(s as Weight)) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(s as Weight))) .saturating_add(T::DbWeight::get().writes(1 as Weight)) .saturating_add(T::DbWeight::get().writes((2 as Weight).saturating_mul(s as Weight))) } - // Storage: Scheduler Agenda (r:2 w:2) + // Storage: Scheduler Agenda (r:2 w:2) fn on_initialize_periodic(s: u32, ) -> Weight { - (12_668_000 as Weight) - // Standard Error: 5_000 - .saturating_add((5_868_000 as Weight).saturating_mul(s as Weight)) + (25_536_000 as Weight) + // Standard Error: 123_000 + + .saturating_add((16_208_000 as Weight).saturating_mul(s as Weight)) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(s as Weight))) .saturating_add(T::DbWeight::get().writes(1 as Weight)) .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight))) } - // Storage: Scheduler Agenda (r:1 w:1) - // Storage: Scheduler Lookup (r:0 w:1) + // Storage: Scheduler Agenda (r:1 w:1) + // Storage: Scheduler Lookup (r:0 w:1) fn on_initialize_named(s: u32, ) -> Weight { - (13_946_000 as Weight) - // Standard Error: 4_000 - .saturating_add((4_367_000 as Weight).saturating_mul(s as Weight)) + (17_575_000 as Weight) + // Standard Error: 96_000 + + .saturating_add((12_349_000 as Weight).saturating_mul(s as Weight)) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight))) } - // Storage: Scheduler Agenda (r:1 w:1) + // Storage: Scheduler Agenda (r:1 w:1) fn on_initialize(s: u32, ) -> Weight { - (13_151_000 as Weight) - // Standard Error: 4_000 - .saturating_add((3_455_000 as Weight).saturating_mul(s as Weight)) + (51_493_000 as Weight) + // Standard Error: 94_000 + + .saturating_add((9_125_000 as Weight).saturating_mul(s as Weight)) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } - // Storage: Scheduler Agenda (r:1 w:1) + // Storage: Scheduler Agenda (r:1 w:1) fn schedule(s: u32, ) -> Weight { - (14_040_000 as Weight) - // Standard Error: 1_000 - .saturating_add((89_000 as Weight).saturating_mul(s as Weight)) + (37_154_000 as Weight) + // Standard Error: 10_000 + + .saturating_add((83_000 as Weight).saturating_mul(s as Weight)) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } - // Storage: Scheduler Agenda (r:1 w:1) - // Storage: Scheduler Lookup (r:0 w:1) + // Storage: Scheduler Agenda (r:1 w:1) + // Storage: Scheduler Lookup (r:0 w:1) fn cancel(s: u32, ) -> Weight { - (14_376_000 as Weight) - // Standard Error: 1_000 - .saturating_add((576_000 as Weight).saturating_mul(s as Weight)) + (38_347_000 as Weight) + // Standard Error: 16_000 + + .saturating_add((1_033_000 as Weight).saturating_mul(s as Weight)) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(2 as Weight)) } - // Storage: Scheduler Lookup (r:1 w:1) - // Storage: Scheduler Agenda (r:1 w:1) + // Storage: Scheduler Lookup (r:1 w:1) + // Storage: Scheduler Agenda (r:1 w:1) fn schedule_named(s: u32, ) -> Weight { - (16_806_000 as Weight) - // Standard Error: 1_000 - .saturating_add((102_000 as Weight).saturating_mul(s as Weight)) + (39_652_000 as Weight) + // Standard Error: 12_000 + + .saturating_add((136_000 as Weight).saturating_mul(s as Weight)) .saturating_add(T::DbWeight::get().reads(2 as Weight)) .saturating_add(T::DbWeight::get().writes(2 as Weight)) } - // Storage: Scheduler Lookup (r:1 w:1) - // Storage: Scheduler Agenda (r:1 w:1) + // Storage: Scheduler Lookup (r:1 w:1) + // Storage: Scheduler Agenda (r:1 w:1) fn cancel_named(s: u32, ) -> Weight { - (15_852_000 as Weight) - // Standard Error: 2_000 - .saturating_add((590_000 as Weight).saturating_mul(s as Weight)) + (38_445_000 as Weight) + // Standard Error: 17_000 + + .saturating_add((985_000 as Weight).saturating_mul(s as Weight)) .saturating_add(T::DbWeight::get().reads(2 as Weight)) .saturating_add(T::DbWeight::get().writes(2 as Weight)) } } - diff --git a/runtime/src/weights/pallet_timestamp.rs b/runtime/src/weights/pallet_timestamp.rs index 6bece4589..62ad395fe 100644 --- a/runtime/src/weights/pallet_timestamp.rs +++ b/runtime/src/weights/pallet_timestamp.rs @@ -1,23 +1,10 @@ //! Autogenerated weights for pallet_timestamp //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2022-01-14, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128 - -// Executed Command: -// ./target/release/zeitgeist -// benchmark -// --chain=dev -// --steps=50 -// --repeat=20 -// --pallet=pallet_timestamp -// --extrinsic=* -// --execution=wasm -// --wasm-execution=compiled -// --heap-pages=4096 -// --template=./misc/frame_weight_template.hbs -// --output=./runtime/src/weights/ +//! DATE: 2022-03-23, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +// Executed Command:// ./target/release/zeitgeist// benchmark// --chain=dev// --steps=50// --repeat=20// --pallet=pallet_timestamp// --extrinsic=*// --execution=wasm// --wasm-execution=compiled// --heap-pages=4096// --template=./misc/frame_weight_template.hbs// --output=./runtime/src/weights/ #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] @@ -28,14 +15,16 @@ use core::marker::PhantomData; /// Weight functions for pallet_timestamp (automatically generated) pub struct WeightInfo(PhantomData); impl pallet_timestamp::weights::WeightInfo for WeightInfo { - // Storage: Timestamp Now (r:1 w:1) - // Storage: Aura CurrentSlot (r:1 w:0) + // Storage: Timestamp Now (r:1 w:1) + // Storage: Aura CurrentSlot (r:1 w:0) fn set() -> Weight { - (21_730_000 as Weight) + (17_850_000 as Weight) .saturating_add(T::DbWeight::get().reads(2 as Weight)) - .saturating_add(T::DbWeight::get().writes(1 as Weight)) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + } + fn on_finalize() -> Weight { - (9_350_000 as Weight) + (6_390_000 as Weight) } } diff --git a/runtime/src/weights/pallet_treasury.rs b/runtime/src/weights/pallet_treasury.rs index a953603ed..5a38ba46c 100644 --- a/runtime/src/weights/pallet_treasury.rs +++ b/runtime/src/weights/pallet_treasury.rs @@ -1,23 +1,10 @@ //! Autogenerated weights for pallet_treasury //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2022-01-14, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128 - -// Executed Command: -// ./target/release/zeitgeist -// benchmark -// --chain=dev -// --steps=50 -// --repeat=20 -// --pallet=pallet_treasury -// --extrinsic=* -// --execution=wasm -// --wasm-execution=compiled -// --heap-pages=4096 -// --template=./misc/frame_weight_template.hbs -// --output=./runtime/src/weights/ +//! DATE: 2022-03-23, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +// Executed Command:// ./target/release/zeitgeist// benchmark// --chain=dev// --steps=50// --repeat=20// --pallet=pallet_treasury// --extrinsic=*// --execution=wasm// --wasm-execution=compiled// --heap-pages=4096// --template=./misc/frame_weight_template.hbs// --output=./runtime/src/weights/ #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] @@ -28,35 +15,37 @@ use core::marker::PhantomData; /// Weight functions for pallet_treasury (automatically generated) pub struct WeightInfo(PhantomData); impl pallet_treasury::weights::WeightInfo for WeightInfo { - // Storage: Treasury ProposalCount (r:1 w:1) - // Storage: Treasury Proposals (r:0 w:1) + // Storage: Treasury ProposalCount (r:1 w:1) + // Storage: Treasury Proposals (r:0 w:1) fn propose_spend() -> Weight { - (90_230_000 as Weight) + (47_980_000 as Weight) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(2 as Weight)) } - // Storage: Treasury Proposals (r:1 w:1) + // Storage: Treasury Proposals (r:1 w:1) fn reject_proposal() -> Weight { - (97_841_000 as Weight) + (64_560_000 as Weight) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } - // Storage: Treasury Proposals (r:1 w:0) - // Storage: Treasury Approvals (r:1 w:1) + // Storage: Treasury Proposals (r:1 w:0) + // Storage: Treasury Approvals (r:1 w:1) fn approve_proposal(p: u32, ) -> Weight { - (24_043_000 as Weight) - // Standard Error: 3_000 - .saturating_add((183_000 as Weight).saturating_mul(p as Weight)) + (19_969_000 as Weight) + // Standard Error: 3_000 + + .saturating_add((95_000 as Weight).saturating_mul(p as Weight)) .saturating_add(T::DbWeight::get().reads(2 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } - // Storage: System Account (r:1 w:1) - // Storage: Treasury Approvals (r:1 w:1) - // Storage: Treasury Proposals (r:2 w:2) + // Storage: System Account (r:1 w:1) + // Storage: Treasury Approvals (r:1 w:1) + // Storage: Treasury Proposals (r:2 w:2) fn on_initialize_proposals(p: u32, ) -> Weight { - (79_811_000 as Weight) - // Standard Error: 285_000 - .saturating_add((135_374_000 as Weight).saturating_mul(p as Weight)) + (0 as Weight) + // Standard Error: 339_000 + + .saturating_add((77_776_000 as Weight).saturating_mul(p as Weight)) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().reads((3 as Weight).saturating_mul(p as Weight))) .saturating_add(T::DbWeight::get().writes(1 as Weight)) diff --git a/runtime/src/weights/pallet_utility.rs b/runtime/src/weights/pallet_utility.rs index b2e06cb22..4781f5f32 100644 --- a/runtime/src/weights/pallet_utility.rs +++ b/runtime/src/weights/pallet_utility.rs @@ -1,10 +1,10 @@ //! Autogenerated weights for pallet_utility //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2022-02-10, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128 +//! DATE: 2022-03-23, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 -// Executed Command:// ./zeitgeist// benchmark// --chain=dev// --steps=50// --repeat=20// --pallet=pallet_utility// --extrinsic=*// --execution=wasm// --wasm-execution=compiled// --heap-pages=4096// --template=./misc/frame_weight_template.hbs// --output=./runtime/src/weights/ +// Executed Command:// ./target/release/zeitgeist// benchmark// --chain=dev// --steps=50// --repeat=20// --pallet=pallet_utility// --extrinsic=*// --execution=wasm// --wasm-execution=compiled// --heap-pages=4096// --template=./misc/frame_weight_template.hbs// --output=./runtime/src/weights/ #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] @@ -15,20 +15,29 @@ use core::marker::PhantomData; /// Weight functions for pallet_utility (automatically generated) pub struct WeightInfo(PhantomData); impl pallet_utility::weights::WeightInfo for WeightInfo { + fn batch(c: u32, ) -> Weight { - (369_998_000 as Weight) - // Standard Error: 54_000 - .saturating_add((11_070_000 as Weight).saturating_mul(c as Weight)) + (78_660_000 as Weight) + // Standard Error: 24_000 + + .saturating_add((6_253_000 as Weight).saturating_mul(c as Weight)) + } + fn as_derivative() -> Weight { - (7_560_000 as Weight) + (4_210_000 as Weight) + } + fn batch_all(c: u32, ) -> Weight { - (263_287_000 as Weight) - // Standard Error: 36_000 - .saturating_add((11_186_000 as Weight).saturating_mul(c as Weight)) - } + (95_725_000 as Weight) + // Standard Error: 26_000 + + .saturating_add((6_720_000 as Weight).saturating_mul(c as Weight)) + + } + fn dispatch_as() -> Weight { - (28_400_000 as Weight) + (25_780_000 as Weight) } } diff --git a/runtime/src/weights/pallet_vesting.rs b/runtime/src/weights/pallet_vesting.rs index d389d6dc6..d440b5e3b 100644 --- a/runtime/src/weights/pallet_vesting.rs +++ b/runtime/src/weights/pallet_vesting.rs @@ -1,23 +1,10 @@ //! Autogenerated weights for pallet_vesting //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2022-01-14, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128 - -// Executed Command: -// ./target/release/zeitgeist -// benchmark -// --chain=dev -// --steps=50 -// --repeat=20 -// --pallet=pallet_vesting -// --extrinsic=* -// --execution=wasm -// --wasm-execution=compiled -// --heap-pages=4096 -// --template=./misc/frame_weight_template.hbs -// --output=./runtime/src/weights/ +//! DATE: 2022-03-23, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +// Executed Command:// ./target/release/zeitgeist// benchmark// --chain=dev// --steps=50// --repeat=20// --pallet=pallet_vesting// --extrinsic=*// --execution=wasm// --wasm-execution=compiled// --heap-pages=4096// --template=./misc/frame_weight_template.hbs// --output=./runtime/src/weights/ #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] @@ -28,95 +15,105 @@ use core::marker::PhantomData; /// Weight functions for pallet_vesting (automatically generated) pub struct WeightInfo(PhantomData); impl pallet_vesting::weights::WeightInfo for WeightInfo { - // Storage: Vesting Vesting (r:1 w:1) - // Storage: Balances Locks (r:1 w:1) + // Storage: Vesting Vesting (r:1 w:1) + // Storage: Balances Locks (r:1 w:1) fn vest_locked(l: u32, s: u32, ) -> Weight { - (97_287_000 as Weight) - // Standard Error: 7_000 - .saturating_add((192_000 as Weight).saturating_mul(l as Weight)) - // Standard Error: 15_000 - .saturating_add((229_000 as Weight).saturating_mul(s as Weight)) + (48_358_000 as Weight) + // Standard Error: 17_000 + + .saturating_add((409_000 as Weight).saturating_mul(l as Weight)) + // Standard Error: 36_000 + + .saturating_add((462_000 as Weight).saturating_mul(s as Weight)) .saturating_add(T::DbWeight::get().reads(2 as Weight)) .saturating_add(T::DbWeight::get().writes(2 as Weight)) } - // Storage: Vesting Vesting (r:1 w:1) - // Storage: Balances Locks (r:1 w:1) + // Storage: Vesting Vesting (r:1 w:1) + // Storage: Balances Locks (r:1 w:1) fn vest_unlocked(l: u32, s: u32, ) -> Weight { - (90_638_000 as Weight) - // Standard Error: 8_000 - .saturating_add((228_000 as Weight).saturating_mul(l as Weight)) - // Standard Error: 17_000 - .saturating_add((267_000 as Weight).saturating_mul(s as Weight)) + (58_452_000 as Weight) + // Standard Error: 16_000 + + .saturating_add((233_000 as Weight).saturating_mul(l as Weight)) + // Standard Error: 33_000 + + .saturating_add((108_000 as Weight).saturating_mul(s as Weight)) .saturating_add(T::DbWeight::get().reads(2 as Weight)) .saturating_add(T::DbWeight::get().writes(2 as Weight)) } - // Storage: Vesting Vesting (r:1 w:1) - // Storage: Balances Locks (r:1 w:1) - // Storage: System Account (r:1 w:1) - fn vest_other_locked(l: u32, s: u32, ) -> Weight { - (94_076_000 as Weight) - // Standard Error: 9_000 - .saturating_add((249_000 as Weight).saturating_mul(l as Weight)) - // Standard Error: 18_000 - .saturating_add((304_000 as Weight).saturating_mul(s as Weight)) + // Storage: Vesting Vesting (r:1 w:1) + // Storage: Balances Locks (r:1 w:1) + // Storage: System Account (r:1 w:1) + fn vest_other_locked(l: u32, _s: u32, ) -> Weight { + (63_488_000 as Weight) + // Standard Error: 15_000 + + .saturating_add((285_000 as Weight).saturating_mul(l as Weight)) .saturating_add(T::DbWeight::get().reads(3 as Weight)) .saturating_add(T::DbWeight::get().writes(3 as Weight)) } - // Storage: Vesting Vesting (r:1 w:1) - // Storage: Balances Locks (r:1 w:1) - // Storage: System Account (r:1 w:1) + // Storage: Vesting Vesting (r:1 w:1) + // Storage: Balances Locks (r:1 w:1) + // Storage: System Account (r:1 w:1) fn vest_other_unlocked(l: u32, s: u32, ) -> Weight { - (92_856_000 as Weight) - // Standard Error: 9_000 - .saturating_add((229_000 as Weight).saturating_mul(l as Weight)) - // Standard Error: 20_000 - .saturating_add((240_000 as Weight).saturating_mul(s as Weight)) + (63_532_000 as Weight) + // Standard Error: 14_000 + + .saturating_add((133_000 as Weight).saturating_mul(l as Weight)) + // Standard Error: 29_000 + + .saturating_add((3_000 as Weight).saturating_mul(s as Weight)) .saturating_add(T::DbWeight::get().reads(3 as Weight)) .saturating_add(T::DbWeight::get().writes(3 as Weight)) } - // Storage: Vesting Vesting (r:1 w:1) - // Storage: System Account (r:1 w:1) - // Storage: Balances Locks (r:1 w:1) + // Storage: Vesting Vesting (r:1 w:1) + // Storage: System Account (r:1 w:1) + // Storage: Balances Locks (r:1 w:1) fn vested_transfer(l: u32, s: u32, ) -> Weight { - (166_846_000 as Weight) - // Standard Error: 21_000 - .saturating_add((209_000 as Weight).saturating_mul(l as Weight)) - // Standard Error: 43_000 - .saturating_add((112_000 as Weight).saturating_mul(s as Weight)) + (98_023_000 as Weight) + // Standard Error: 25_000 + + .saturating_add((194_000 as Weight).saturating_mul(l as Weight)) + // Standard Error: 52_000 + + .saturating_add((287_000 as Weight).saturating_mul(s as Weight)) .saturating_add(T::DbWeight::get().reads(3 as Weight)) .saturating_add(T::DbWeight::get().writes(3 as Weight)) } - // Storage: Vesting Vesting (r:1 w:1) - // Storage: System Account (r:2 w:2) - // Storage: Balances Locks (r:1 w:1) - fn force_vested_transfer(l: u32, s: u32, ) -> Weight { - (165_521_000 as Weight) - // Standard Error: 26_000 - .saturating_add((230_000 as Weight).saturating_mul(l as Weight)) - // Standard Error: 53_000 - .saturating_add((14_000 as Weight).saturating_mul(s as Weight)) + // Storage: Vesting Vesting (r:1 w:1) + // Storage: System Account (r:2 w:2) + // Storage: Balances Locks (r:1 w:1) + fn force_vested_transfer(l: u32, _s: u32, ) -> Weight { + (109_788_000 as Weight) + // Standard Error: 26_000 + + .saturating_add((28_000 as Weight).saturating_mul(l as Weight)) .saturating_add(T::DbWeight::get().reads(4 as Weight)) .saturating_add(T::DbWeight::get().writes(4 as Weight)) } - // Storage: Vesting Vesting (r:1 w:1) - // Storage: Balances Locks (r:1 w:1) + // Storage: Vesting Vesting (r:1 w:1) + // Storage: Balances Locks (r:1 w:1) fn not_unlocking_merge_schedules(l: u32, s: u32, ) -> Weight { - (96_777_000 as Weight) - // Standard Error: 10_000 - .saturating_add((271_000 as Weight).saturating_mul(l as Weight)) - // Standard Error: 21_000 - .saturating_add((313_000 as Weight).saturating_mul(s as Weight)) + (57_161_000 as Weight) + // Standard Error: 17_000 + + .saturating_add((208_000 as Weight).saturating_mul(l as Weight)) + // Standard Error: 38_000 + + .saturating_add((331_000 as Weight).saturating_mul(s as Weight)) .saturating_add(T::DbWeight::get().reads(2 as Weight)) .saturating_add(T::DbWeight::get().writes(2 as Weight)) } - // Storage: Vesting Vesting (r:1 w:1) - // Storage: Balances Locks (r:1 w:1) + // Storage: Vesting Vesting (r:1 w:1) + // Storage: Balances Locks (r:1 w:1) fn unlocking_merge_schedules(l: u32, s: u32, ) -> Weight { - (99_218_000 as Weight) - // Standard Error: 10_000 - .saturating_add((286_000 as Weight).saturating_mul(l as Weight)) - // Standard Error: 23_000 - .saturating_add((191_000 as Weight).saturating_mul(s as Weight)) + (59_704_000 as Weight) + // Standard Error: 15_000 + + .saturating_add((186_000 as Weight).saturating_mul(l as Weight)) + // Standard Error: 33_000 + + .saturating_add((207_000 as Weight).saturating_mul(s as Weight)) .saturating_add(T::DbWeight::get().reads(2 as Weight)) .saturating_add(T::DbWeight::get().writes(2 as Weight)) } diff --git a/zrml/authorized/src/weights.rs b/zrml/authorized/src/weights.rs index 69853e8c4..32de692d3 100644 --- a/zrml/authorized/src/weights.rs +++ b/zrml/authorized/src/weights.rs @@ -1,8 +1,8 @@ //! Autogenerated weights for zrml_authorized //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2022-01-14, STEPS: `10`, REPEAT: 1000, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128 +//! DATE: 2022-03-23, STEPS: `10`, REPEAT: 1000, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // ./target/release/zeitgeist @@ -34,7 +34,7 @@ pub trait WeightInfoZeitgeist { pub struct WeightInfo(PhantomData); impl WeightInfoZeitgeist for WeightInfo { fn authorize_market_outcome() -> Weight { - (53_501_000 as Weight) + (44_040_000 as Weight) .saturating_add(T::DbWeight::get().reads(4 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } diff --git a/zrml/court/src/weights.rs b/zrml/court/src/weights.rs index 2b10ef3d5..b7ea7ba0b 100644 --- a/zrml/court/src/weights.rs +++ b/zrml/court/src/weights.rs @@ -1,8 +1,8 @@ //! Autogenerated weights for zrml_court //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2022-01-14, STEPS: `10`, REPEAT: 1000, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128 +//! DATE: 2022-03-23, STEPS: `10`, REPEAT: 1000, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // ./target/release/zeitgeist @@ -36,17 +36,17 @@ pub trait WeightInfoZeitgeist { pub struct WeightInfo(PhantomData); impl WeightInfoZeitgeist for WeightInfo { fn exit_court() -> Weight { - (119_851_000 as Weight) + (73_290_000 as Weight) .saturating_add(T::DbWeight::get().reads(4 as Weight)) .saturating_add(T::DbWeight::get().writes(2 as Weight)) } fn join_court() -> Weight { - (100_001_000 as Weight) + (58_800_000 as Weight) .saturating_add(T::DbWeight::get().reads(3 as Weight)) .saturating_add(T::DbWeight::get().writes(2 as Weight)) } fn vote() -> Weight { - (25_920_000 as Weight) + (15_450_000 as Weight) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } diff --git a/zrml/liquidity-mining/src/weights.rs b/zrml/liquidity-mining/src/weights.rs index 3383b3f2d..70460e591 100644 --- a/zrml/liquidity-mining/src/weights.rs +++ b/zrml/liquidity-mining/src/weights.rs @@ -1,8 +1,8 @@ //! Autogenerated weights for zrml_liquidity_mining //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2022-01-14, STEPS: `10`, REPEAT: 1000, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128 +//! DATE: 2022-03-23, STEPS: `10`, REPEAT: 1000, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // ./target/release/zeitgeist @@ -34,6 +34,6 @@ pub trait WeightInfoZeitgeist { pub struct WeightInfo(PhantomData); impl WeightInfoZeitgeist for WeightInfo { fn set_per_block_distribution() -> Weight { - (4_400_000 as Weight).saturating_add(T::DbWeight::get().writes(1 as Weight)) + (2_070_000 as Weight).saturating_add(T::DbWeight::get().writes(1 as Weight)) } } diff --git a/zrml/prediction-markets/src/weights.rs b/zrml/prediction-markets/src/weights.rs index 0f4465f99..c03862eca 100644 --- a/zrml/prediction-markets/src/weights.rs +++ b/zrml/prediction-markets/src/weights.rs @@ -1,8 +1,8 @@ //! Autogenerated weights for zrml_prediction_markets //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2022-01-14, STEPS: `10`, REPEAT: 1000, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128 +//! DATE: 2022-03-23, STEPS: `10`, REPEAT: 1000, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // ./target/release/zeitgeist @@ -37,9 +37,9 @@ pub trait WeightInfoZeitgeist { fn create_categorical_market() -> Weight; fn create_scalar_market() -> Weight; fn deploy_swap_pool_for_market(a: u32) -> Weight; - fn dispute(_a: u32) -> Weight; + fn dispute(a: u32) -> Weight; fn internal_resolve_categorical_reported(a: u32, _b: u32, c: u32) -> Weight; - fn internal_resolve_categorical_disputed(a: u32, b: u32, c: u32, _d: u32) -> Weight; + fn internal_resolve_categorical_disputed(a: u32, _b: u32, c: u32, d: u32) -> Weight; fn internal_resolve_scalar_reported() -> Weight; fn internal_resolve_scalar_disputed(_d: u32) -> Weight; fn on_initialize_resolve_overhead() -> Weight; @@ -57,152 +57,177 @@ pub struct WeightInfo(PhantomData); impl WeightInfoZeitgeist for WeightInfo { fn admin_destroy_disputed_market(a: u32, b: u32, c: u32) -> Weight { (0 as Weight) - // Standard Error: 47_000 - .saturating_add((110_817_000 as Weight).saturating_mul(a as Weight)) - // Standard Error: 47_000 - .saturating_add((7_638_000 as Weight).saturating_mul(b as Weight)) - // Standard Error: 62_000 - .saturating_add((111_951_000 as Weight).saturating_mul(c as Weight)) + // Standard Error: 170_000 + .saturating_add((85_234_000 as Weight).saturating_mul(a as Weight)) + // Standard Error: 170_000 + .saturating_add((2_780_000 as Weight).saturating_mul(b as Weight)) + // Standard Error: 222_000 + .saturating_add((85_130_000 as Weight).saturating_mul(c as Weight)) .saturating_add(T::DbWeight::get().reads(3 as Weight)) .saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(a as Weight))) .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(a as Weight))) .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(b as Weight))) .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(c as Weight))) } + fn admin_destroy_reported_market(a: u32, b: u32, c: u32) -> Weight { (0 as Weight) - // Standard Error: 66_000 - .saturating_add((110_215_000 as Weight).saturating_mul(a as Weight)) - // Standard Error: 66_000 - .saturating_add((8_279_000 as Weight).saturating_mul(b as Weight)) - // Standard Error: 86_000 - .saturating_add((111_893_000 as Weight).saturating_mul(c as Weight)) + // Standard Error: 165_000 + .saturating_add((83_407_000 as Weight).saturating_mul(a as Weight)) + // Standard Error: 165_000 + .saturating_add((4_034_000 as Weight).saturating_mul(b as Weight)) + // Standard Error: 217_000 + .saturating_add((85_359_000 as Weight).saturating_mul(c as Weight)) .saturating_add(T::DbWeight::get().reads(3 as Weight)) .saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(a as Weight))) .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(a as Weight))) .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(b as Weight))) .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(c as Weight))) } + fn admin_move_market_to_closed() -> Weight { - (22_430_000 as Weight) + (14_730_000 as Weight) .saturating_add(T::DbWeight::get().reads(2 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } + fn admin_move_market_to_resolved_overhead() -> Weight { - (224_441_000 as Weight) + (150_830_000 as Weight) .saturating_add(T::DbWeight::get().reads(7 as Weight)) .saturating_add(T::DbWeight::get().writes(3 as Weight)) } + fn approve_market() -> Weight { - (94_370_000 as Weight) + (66_960_000 as Weight) .saturating_add(T::DbWeight::get().reads(2 as Weight)) .saturating_add(T::DbWeight::get().writes(2 as Weight)) } + fn buy_complete_set(a: u32) -> Weight { - (150_403_000 as Weight) - // Standard Error: 12_000 - .saturating_add((49_873_000 as Weight).saturating_mul(a as Weight)) + (110_973_000 as Weight) + // Standard Error: 113_000 + .saturating_add((24_566_000 as Weight).saturating_mul(a as Weight)) .saturating_add(T::DbWeight::get().reads(3 as Weight)) .saturating_add(T::DbWeight::get().reads((2 as Weight).saturating_mul(a as Weight))) .saturating_add(T::DbWeight::get().writes(1 as Weight)) .saturating_add(T::DbWeight::get().writes((2 as Weight).saturating_mul(a as Weight))) } + fn cancel_pending_market() -> Weight { - (101_370_000 as Weight) + (67_550_000 as Weight) .saturating_add(T::DbWeight::get().reads(2 as Weight)) .saturating_add(T::DbWeight::get().writes(2 as Weight)) } + fn create_categorical_market() -> Weight { - (102_550_000 as Weight) + (71_260_000 as Weight) .saturating_add(T::DbWeight::get().reads(3 as Weight)) .saturating_add(T::DbWeight::get().writes(3 as Weight)) } + fn create_scalar_market() -> Weight { - (103_530_000 as Weight) + (59_310_000 as Weight) .saturating_add(T::DbWeight::get().reads(3 as Weight)) .saturating_add(T::DbWeight::get().writes(3 as Weight)) } + fn deploy_swap_pool_for_market(a: u32) -> Weight { - (272_367_000 as Weight) - // Standard Error: 28_000 - .saturating_add((97_513_000 as Weight).saturating_mul(a as Weight)) + (172_134_000 as Weight) + // Standard Error: 207_000 + .saturating_add((50_832_000 as Weight).saturating_mul(a as Weight)) .saturating_add(T::DbWeight::get().reads(7 as Weight)) .saturating_add(T::DbWeight::get().reads((2 as Weight).saturating_mul(a as Weight))) .saturating_add(T::DbWeight::get().writes(6 as Weight)) .saturating_add(T::DbWeight::get().writes((2 as Weight).saturating_mul(a as Weight))) } - fn dispute(_a: u32) -> Weight { - (20_460_000 as Weight).saturating_add(T::DbWeight::get().reads(2 as Weight)) + + fn dispute(a: u32) -> Weight { + (13_898_000 as Weight) + // Standard Error: 10_000 + .saturating_add((91_000 as Weight).saturating_mul(a as Weight)) + .saturating_add(T::DbWeight::get().reads(2 as Weight)) } + fn internal_resolve_categorical_reported(a: u32, _b: u32, c: u32) -> Weight { - (20_792_000 as Weight) - // Standard Error: 0 - .saturating_add((82_000 as Weight).saturating_mul(a as Weight)) - // Standard Error: 0 + (14_632_000 as Weight) + // Standard Error: 3_000 + .saturating_add((35_000 as Weight).saturating_mul(a as Weight)) + // Standard Error: 4_000 .saturating_add((6_000 as Weight).saturating_mul(c as Weight)) .saturating_add(T::DbWeight::get().reads(2 as Weight)) } - fn internal_resolve_categorical_disputed(a: u32, b: u32, c: u32, _d: u32) -> Weight { - (20_216_000 as Weight) - // Standard Error: 0 - .saturating_add((96_000 as Weight).saturating_mul(a as Weight)) - // Standard Error: 0 - .saturating_add((17_000 as Weight).saturating_mul(b as Weight)) - // Standard Error: 1_000 - .saturating_add((6_000 as Weight).saturating_mul(c as Weight)) + + fn internal_resolve_categorical_disputed(a: u32, _b: u32, c: u32, d: u32) -> Weight { + (13_941_000 as Weight) + // Standard Error: 3_000 + .saturating_add((12_000 as Weight).saturating_mul(a as Weight)) + // Standard Error: 4_000 + .saturating_add((32_000 as Weight).saturating_mul(c as Weight)) + // Standard Error: 6_000 + .saturating_add((86_000 as Weight).saturating_mul(d as Weight)) .saturating_add(T::DbWeight::get().reads(2 as Weight)) } + fn internal_resolve_scalar_reported() -> Weight { - (22_170_000 as Weight).saturating_add(T::DbWeight::get().reads(2 as Weight)) + (16_260_000 as Weight).saturating_add(T::DbWeight::get().reads(2 as Weight)) } + fn internal_resolve_scalar_disputed(_d: u32) -> Weight { - (21_786_000 as Weight).saturating_add(T::DbWeight::get().reads(2 as Weight)) + (15_604_000 as Weight).saturating_add(T::DbWeight::get().reads(2 as Weight)) } + fn on_initialize_resolve_overhead() -> Weight { - (26_890_000 as Weight) + (20_280_000 as Weight) .saturating_add(T::DbWeight::get().reads(4 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } + fn process_subsidy_collecting_markets_raw(a: u32) -> Weight { - (11_507_000 as Weight) - // Standard Error: 2_000 - .saturating_add((555_000 as Weight).saturating_mul(a as Weight)) + (7_950_000 as Weight) + // Standard Error: 3_000 + .saturating_add((419_000 as Weight).saturating_mul(a as Weight)) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } + fn redeem_shares_categorical() -> Weight { - (160_810_000 as Weight) + (89_910_000 as Weight) .saturating_add(T::DbWeight::get().reads(4 as Weight)) .saturating_add(T::DbWeight::get().writes(3 as Weight)) } + fn redeem_shares_scalar() -> Weight { - (206_061_000 as Weight) + (112_720_000 as Weight) .saturating_add(T::DbWeight::get().reads(6 as Weight)) .saturating_add(T::DbWeight::get().writes(5 as Weight)) } + fn reject_market() -> Weight { - (123_910_000 as Weight) + (76_380_000 as Weight) .saturating_add(T::DbWeight::get().reads(2 as Weight)) .saturating_add(T::DbWeight::get().writes(2 as Weight)) } + fn report() -> Weight { - (65_611_000 as Weight) + (51_120_000 as Weight) .saturating_add(T::DbWeight::get().reads(3 as Weight)) .saturating_add(T::DbWeight::get().writes(2 as Weight)) } + fn sell_complete_set(a: u32) -> Weight { - (130_023_000 as Weight) - // Standard Error: 16_000 - .saturating_add((41_291_000 as Weight).saturating_mul(a as Weight)) + (78_421_000 as Weight) + // Standard Error: 109_000 + .saturating_add((23_828_000 as Weight).saturating_mul(a as Weight)) .saturating_add(T::DbWeight::get().reads(3 as Weight)) .saturating_add(T::DbWeight::get().reads((2 as Weight).saturating_mul(a as Weight))) .saturating_add(T::DbWeight::get().writes(1 as Weight)) .saturating_add(T::DbWeight::get().writes((2 as Weight).saturating_mul(a as Weight))) } + fn start_subsidy(a: u32) -> Weight { - (87_949_000 as Weight) - // Standard Error: 4_000 - .saturating_add((308_000 as Weight).saturating_mul(a as Weight)) + (53_377_000 as Weight) + // Standard Error: 27_000 + .saturating_add((925_000 as Weight).saturating_mul(a as Weight)) .saturating_add(T::DbWeight::get().reads(4 as Weight)) .saturating_add(T::DbWeight::get().writes(5 as Weight)) } diff --git a/zrml/swaps/src/weights.rs b/zrml/swaps/src/weights.rs index 959fed376..a95647bc0 100644 --- a/zrml/swaps/src/weights.rs +++ b/zrml/swaps/src/weights.rs @@ -1,8 +1,8 @@ //! Autogenerated weights for zrml_swaps //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2022-01-14, STEPS: `10`, REPEAT: 1000, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128 +//! DATE: 2022-03-23, STEPS: `10`, REPEAT: 1000, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // ./target/release/zeitgeist @@ -50,119 +50,135 @@ pub trait WeightInfoZeitgeist { pub struct WeightInfo(PhantomData); impl WeightInfoZeitgeist for WeightInfo { fn admin_set_pool_as_stale() -> Weight { - (32_150_000 as Weight) + (21_240_000 as Weight) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } + fn end_subsidy_phase(a: u32, b: u32) -> Weight { (0 as Weight) - // Standard Error: 597_000 - .saturating_add((83_669_000 as Weight).saturating_mul(a as Weight)) - // Standard Error: 529_000 - .saturating_add((182_880_000 as Weight).saturating_mul(b as Weight)) + // Standard Error: 430_000 + .saturating_add((48_219_000 as Weight).saturating_mul(a as Weight)) + // Standard Error: 380_000 + .saturating_add((107_705_000 as Weight).saturating_mul(b as Weight)) .saturating_add(T::DbWeight::get().reads((2 as Weight).saturating_mul(a as Weight))) .saturating_add(T::DbWeight::get().reads((5 as Weight).saturating_mul(b as Weight))) .saturating_add(T::DbWeight::get().writes((2 as Weight).saturating_mul(a as Weight))) .saturating_add(T::DbWeight::get().writes((5 as Weight).saturating_mul(b as Weight))) } + fn destroy_pool_in_subsidy_phase(a: u32) -> Weight { - (51_773_000 as Weight) - // Standard Error: 15_000 - .saturating_add((47_781_000 as Weight).saturating_mul(a as Weight)) + (44_010_000 as Weight) + // Standard Error: 61_000 + .saturating_add((33_410_000 as Weight).saturating_mul(a as Weight)) .saturating_add(T::DbWeight::get().reads(3 as Weight)) .saturating_add(T::DbWeight::get().reads((2 as Weight).saturating_mul(a as Weight))) .saturating_add(T::DbWeight::get().writes(2 as Weight)) .saturating_add(T::DbWeight::get().writes((2 as Weight).saturating_mul(a as Weight))) } + fn distribute_pool_share_rewards(a: u32, b: u32) -> Weight { - (85_604_000 as Weight) - // Standard Error: 136_000 - .saturating_add((57_124_000 as Weight).saturating_mul(a as Weight)) - // Standard Error: 136_000 - .saturating_add((123_122_000 as Weight).saturating_mul(b as Weight)) + (99_972_000 as Weight) + // Standard Error: 299_000 + .saturating_add((47_026_000 as Weight).saturating_mul(a as Weight)) + // Standard Error: 299_000 + .saturating_add((71_265_000 as Weight).saturating_mul(b as Weight)) .saturating_add(T::DbWeight::get().reads(8 as Weight)) .saturating_add(T::DbWeight::get().reads((3 as Weight).saturating_mul(a as Weight))) .saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(b as Weight))) .saturating_add(T::DbWeight::get().writes(2 as Weight)) .saturating_add(T::DbWeight::get().writes((2 as Weight).saturating_mul(b as Weight))) } + fn pool_exit(a: u32) -> Weight { - (96_070_000 as Weight) - // Standard Error: 20_000 - .saturating_add((84_571_000 as Weight).saturating_mul(a as Weight)) + (74_401_000 as Weight) + // Standard Error: 139_000 + .saturating_add((48_871_000 as Weight).saturating_mul(a as Weight)) .saturating_add(T::DbWeight::get().reads(5 as Weight)) .saturating_add(T::DbWeight::get().reads((2 as Weight).saturating_mul(a as Weight))) .saturating_add(T::DbWeight::get().writes(3 as Weight)) .saturating_add(T::DbWeight::get().writes((2 as Weight).saturating_mul(a as Weight))) } + fn pool_exit_subsidy() -> Weight { - (97_550_000 as Weight) + (67_780_000 as Weight) .saturating_add(T::DbWeight::get().reads(3 as Weight)) .saturating_add(T::DbWeight::get().writes(3 as Weight)) } + fn pool_exit_with_exact_asset_amount() -> Weight { - (188_491_000 as Weight) + (132_860_000 as Weight) .saturating_add(T::DbWeight::get().reads(7 as Weight)) .saturating_add(T::DbWeight::get().writes(5 as Weight)) } + fn pool_exit_with_exact_pool_amount() -> Weight { - (188_271_000 as Weight) + (133_220_000 as Weight) .saturating_add(T::DbWeight::get().reads(7 as Weight)) .saturating_add(T::DbWeight::get().writes(5 as Weight)) } + fn pool_join(a: u32) -> Weight { - (107_393_000 as Weight) - // Standard Error: 37_000 - .saturating_add((84_476_000 as Weight).saturating_mul(a as Weight)) + (81_037_000 as Weight) + // Standard Error: 139_000 + .saturating_add((48_606_000 as Weight).saturating_mul(a as Weight)) .saturating_add(T::DbWeight::get().reads(4 as Weight)) .saturating_add(T::DbWeight::get().reads((2 as Weight).saturating_mul(a as Weight))) .saturating_add(T::DbWeight::get().writes(3 as Weight)) .saturating_add(T::DbWeight::get().writes((2 as Weight).saturating_mul(a as Weight))) } + fn pool_join_subsidy() -> Weight { - (104_201_000 as Weight) + (71_210_000 as Weight) .saturating_add(T::DbWeight::get().reads(3 as Weight)) .saturating_add(T::DbWeight::get().writes(3 as Weight)) } + fn pool_join_with_exact_asset_amount() -> Weight { - (203_321_000 as Weight) + (140_740_000 as Weight) .saturating_add(T::DbWeight::get().reads(6 as Weight)) .saturating_add(T::DbWeight::get().writes(5 as Weight)) } + fn pool_join_with_exact_pool_amount() -> Weight { - (204_260_000 as Weight) + (141_090_000 as Weight) .saturating_add(T::DbWeight::get().reads(6 as Weight)) .saturating_add(T::DbWeight::get().writes(5 as Weight)) } + fn set_pool_as_stale_without_reward_distribution(a: u32) -> Weight { - (21_306_000 as Weight) - // Standard Error: 2_000 - .saturating_add((771_000 as Weight).saturating_mul(a as Weight)) + (15_871_000 as Weight) + // Standard Error: 9_000 + .saturating_add((683_000 as Weight).saturating_mul(a as Weight)) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } + fn swap_exact_amount_in_cpmm() -> Weight { - (280_341_000 as Weight) + (164_250_000 as Weight) .saturating_add(T::DbWeight::get().reads(6 as Weight)) .saturating_add(T::DbWeight::get().writes(4 as Weight)) } + fn swap_exact_amount_in_rikiddo(a: u32) -> Weight { - (278_117_000 as Weight) - // Standard Error: 26_000 - .saturating_add((43_376_000 as Weight).saturating_mul(a as Weight)) + (194_744_000 as Weight) + // Standard Error: 172_000 + .saturating_add((27_511_000 as Weight).saturating_mul(a as Weight)) .saturating_add(T::DbWeight::get().reads(6 as Weight)) .saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(a as Weight))) .saturating_add(T::DbWeight::get().writes(5 as Weight)) } + fn swap_exact_amount_out_cpmm() -> Weight { - (271_670_000 as Weight) + (177_010_000 as Weight) .saturating_add(T::DbWeight::get().reads(6 as Weight)) .saturating_add(T::DbWeight::get().writes(4 as Weight)) } + fn swap_exact_amount_out_rikiddo(a: u32) -> Weight { - (188_282_000 as Weight) - // Standard Error: 26_000 - .saturating_add((68_342_000 as Weight).saturating_mul(a as Weight)) + (111_684_000 as Weight) + // Standard Error: 171_000 + .saturating_add((53_943_000 as Weight).saturating_mul(a as Weight)) .saturating_add(T::DbWeight::get().reads(6 as Weight)) .saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(a as Weight))) .saturating_add(T::DbWeight::get().writes(5 as Weight))