diff --git a/Cargo.lock b/Cargo.lock index 73377fdfdf..de2da4587f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -871,7 +871,7 @@ dependencies = [ [[package]] name = "basilisk-runtime" -version = "109.0.0" +version = "110.0.0" dependencies = [ "cumulus-pallet-aura-ext", "cumulus-pallet-dmp-queue", diff --git a/runtime/basilisk/Cargo.toml b/runtime/basilisk/Cargo.toml index 7263249c7a..82c4cdc93a 100644 --- a/runtime/basilisk/Cargo.toml +++ b/runtime/basilisk/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "basilisk-runtime" -version = "109.0.0" +version = "110.0.0" authors = ["GalacticCouncil"] edition = "2021" homepage = "https://github.com/galacticcouncil/Basilisk-node" diff --git a/runtime/basilisk/src/governance.rs b/runtime/basilisk/src/governance.rs index 856a8fa27b..be48ba6014 100644 --- a/runtime/basilisk/src/governance.rs +++ b/runtime/basilisk/src/governance.rs @@ -134,8 +134,8 @@ impl pallet_elections_phragmen::Config for Runtime { type TermDuration = TermDuration; type MaxCandidates = MaxElectionCandidates; type MaxVoters = MaxElectionVoters; - type WeightInfo = (); type MaxVotesPerVoter = MaxVotesPerVoter; + type WeightInfo = weights::elections::BasiliskWeight; } parameter_types! { @@ -196,7 +196,7 @@ impl pallet_tips::Config for Runtime { type TipFindersFee = TipFindersFee; type TipReportDepositBase = TipReportDepositBase; type Tippers = Elections; - type WeightInfo = (); + type WeightInfo = weights::tips::BasiliskWeight; } parameter_types! { diff --git a/runtime/basilisk/src/lib.rs b/runtime/basilisk/src/lib.rs index 91515b5cfb..6656fe443f 100644 --- a/runtime/basilisk/src/lib.rs +++ b/runtime/basilisk/src/lib.rs @@ -102,7 +102,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("basilisk"), impl_name: create_runtime_str!("basilisk"), authoring_version: 1, - spec_version: 109, + spec_version: 110, impl_version: 0, apis: RUNTIME_API_VERSIONS, transaction_version: 1, @@ -438,6 +438,7 @@ impl_runtime_apis! { list_benchmark!(list, extra, pallet_collator_selection, CollatorSelection); list_benchmark!(list, extra, pallet_timestamp, Timestamp); list_benchmark!(list, extra, pallet_democracy, Democracy); + list_benchmark!(list, extra, pallet_elections_phragmen, Elections); list_benchmark!(list, extra, pallet_treasury, Treasury); list_benchmark!(list, extra, pallet_scheduler, Scheduler); list_benchmark!(list, extra, pallet_utility, Utility); @@ -516,6 +517,7 @@ impl_runtime_apis! { add_benchmark!(params, batches, pallet_collator_selection, CollatorSelection); add_benchmark!(params, batches, pallet_timestamp, Timestamp); add_benchmark!(params, batches, pallet_democracy, Democracy); + add_benchmark!(params, batches, pallet_elections_phragmen, Elections); add_benchmark!(params, batches, pallet_treasury, Treasury); add_benchmark!(params, batches, pallet_scheduler, Scheduler); add_benchmark!(params, batches, pallet_utility, Utility); diff --git a/runtime/basilisk/src/weights/elections.rs b/runtime/basilisk/src/weights/elections.rs new file mode 100644 index 0000000000..eecdd6e216 --- /dev/null +++ b/runtime/basilisk/src/weights/elections.rs @@ -0,0 +1,306 @@ +// This file is part of Basilisk. + +// Copyright (C) 2020-2023 Intergalactic, Limited (GIB). +// 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_elections_phragmen` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2024-02-26, STEPS: `10`, REPEAT: `30`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `bench-bot`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz` +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024` + +// Executed Command: +// target/release/basilisk +// benchmark +// pallet +// --chain=dev +// --steps=10 +// --repeat=30 +// --wasm-execution=compiled +// --heap-pages=4096 +// --template=.maintain/pallet-weight-template-no-back.hbs +// --pallet=pallet-elections-phragmen +// --output=weights-1.1.0/elections.rs +// --extrinsic=* + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::Weight}; +use core::marker::PhantomData; +use pallet_elections_phragmen::WeightInfo; + +/// Weights for `pallet_elections_phragmen` using the Basilisk node and recommended hardware. +pub struct BasiliskWeight(PhantomData); +impl WeightInfo for BasiliskWeight { + /// Storage: `Elections::Candidates` (r:1 w:0) + /// Proof: `Elections::Candidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Elections::Members` (r:1 w:0) + /// Proof: `Elections::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Elections::RunnersUp` (r:1 w:0) + /// Proof: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Elections::Voting` (r:1 w:1) + /// Proof: `Elections::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Balances::Locks` (r:1 w:1) + /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`) + /// Storage: `Balances::Freezes` (r:1 w:0) + /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) + /// The range of component `v` is `[1, 10]`. + fn vote_equal(v: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `472 + v * (80 ±0)` + // Estimated: `4764 + v * (80 ±0)` + // Minimum execution time: 43_136_000 picoseconds. + Weight::from_parts(43_696_491, 4764) + // Standard Error: 4_226 + .saturating_add(Weight::from_parts(64_143, 0).saturating_mul(v.into())) + .saturating_add(T::DbWeight::get().reads(6_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) + .saturating_add(Weight::from_parts(0, 80).saturating_mul(v.into())) + } + /// Storage: `Elections::Candidates` (r:1 w:0) + /// Proof: `Elections::Candidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Elections::Members` (r:1 w:0) + /// Proof: `Elections::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Elections::RunnersUp` (r:1 w:0) + /// Proof: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Elections::Voting` (r:1 w:1) + /// Proof: `Elections::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Balances::Locks` (r:1 w:1) + /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`) + /// Storage: `Balances::Freezes` (r:1 w:0) + /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) + /// The range of component `v` is `[2, 10]`. + fn vote_more(v: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `441 + v * (80 ±0)` + // Estimated: `4764 + v * (80 ±0)` + // Minimum execution time: 59_040_000 picoseconds. + Weight::from_parts(59_382_598, 4764) + // Standard Error: 4_622 + .saturating_add(Weight::from_parts(102_861, 0).saturating_mul(v.into())) + .saturating_add(T::DbWeight::get().reads(6_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) + .saturating_add(Weight::from_parts(0, 80).saturating_mul(v.into())) + } + /// Storage: `Elections::Candidates` (r:1 w:0) + /// Proof: `Elections::Candidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Elections::Members` (r:1 w:0) + /// Proof: `Elections::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Elections::RunnersUp` (r:1 w:0) + /// Proof: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Elections::Voting` (r:1 w:1) + /// Proof: `Elections::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Balances::Locks` (r:1 w:1) + /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`) + /// Storage: `Balances::Freezes` (r:1 w:0) + /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) + /// The range of component `v` is `[2, 10]`. + fn vote_less(v: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `473 + v * (80 ±0)` + // Estimated: `4764 + v * (80 ±0)` + // Minimum execution time: 58_817_000 picoseconds. + Weight::from_parts(59_624_831, 4764) + // Standard Error: 5_672 + .saturating_add(Weight::from_parts(67_682, 0).saturating_mul(v.into())) + .saturating_add(T::DbWeight::get().reads(6_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) + .saturating_add(Weight::from_parts(0, 80).saturating_mul(v.into())) + } + /// Storage: `Elections::Voting` (r:1 w:1) + /// Proof: `Elections::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Balances::Locks` (r:1 w:1) + /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`) + /// Storage: `Balances::Freezes` (r:1 w:0) + /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) + fn remove_voter() -> Weight { + // Proof Size summary in bytes: + // Measured: `803` + // Estimated: `4764` + // Minimum execution time: 61_277_000 picoseconds. + Weight::from_parts(62_036_000, 4764) + .saturating_add(T::DbWeight::get().reads(3_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) + } + /// Storage: `Elections::Candidates` (r:1 w:1) + /// Proof: `Elections::Candidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Elections::Members` (r:1 w:0) + /// Proof: `Elections::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Elections::RunnersUp` (r:1 w:0) + /// Proof: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// The range of component `c` is `[1, 100]`. + fn submit_candidacy(c: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `1346 + c * (48 ±0)` + // Estimated: `2831 + c * (48 ±0)` + // Minimum execution time: 42_509_000 picoseconds. + Weight::from_parts(43_368_729, 2831) + // Standard Error: 719 + .saturating_add(Weight::from_parts(56_486, 0).saturating_mul(c.into())) + .saturating_add(T::DbWeight::get().reads(3_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + .saturating_add(Weight::from_parts(0, 48).saturating_mul(c.into())) + } + /// Storage: `Elections::Candidates` (r:1 w:1) + /// Proof: `Elections::Candidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// The range of component `c` is `[1, 100]`. + fn renounce_candidacy_candidate(c: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `317 + c * (48 ±0)` + // Estimated: `1795 + c * (48 ±0)` + // Minimum execution time: 38_867_000 picoseconds. + Weight::from_parts(39_751_572, 1795) + // Standard Error: 1_016 + .saturating_add(Weight::from_parts(26_999, 0).saturating_mul(c.into())) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + .saturating_add(Weight::from_parts(0, 48).saturating_mul(c.into())) + } + /// Storage: `Elections::Members` (r:1 w:1) + /// Proof: `Elections::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Elections::RunnersUp` (r:1 w:1) + /// Proof: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Council::Prime` (r:1 w:1) + /// Proof: `Council::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Council::Proposals` (r:1 w:0) + /// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Council::Members` (r:0 w:1) + /// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + fn renounce_candidacy_members() -> Weight { + // Proof Size summary in bytes: + // Measured: `1494` + // Estimated: `2979` + // Minimum execution time: 55_052_000 picoseconds. + Weight::from_parts(55_529_000, 2979) + .saturating_add(T::DbWeight::get().reads(4_u64)) + .saturating_add(T::DbWeight::get().writes(4_u64)) + } + /// Storage: `Elections::RunnersUp` (r:1 w:1) + /// Proof: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + fn renounce_candidacy_runners_up() -> Weight { + // Proof Size summary in bytes: + // Measured: `957` + // Estimated: `2442` + // Minimum execution time: 38_957_000 picoseconds. + Weight::from_parts(39_432_000, 2442) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: `Benchmark::Override` (r:0 w:0) + /// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn remove_member_without_replacement() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 500_000_000_000 picoseconds. + Weight::from_parts(500_000_000_000, 0) + } + /// Storage: `Elections::Members` (r:1 w:1) + /// Proof: `Elections::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `Elections::RunnersUp` (r:1 w:1) + /// Proof: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Council::Prime` (r:1 w:1) + /// Proof: `Council::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Council::Proposals` (r:1 w:0) + /// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Council::Members` (r:0 w:1) + /// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + fn remove_member_with_replacement() -> Weight { + // Proof Size summary in bytes: + // Measured: `1494` + // Estimated: `3593` + // Minimum execution time: 78_532_000 picoseconds. + Weight::from_parts(79_151_000, 3593) + .saturating_add(T::DbWeight::get().reads(5_u64)) + .saturating_add(T::DbWeight::get().writes(5_u64)) + } + /// Storage: `Elections::Voting` (r:769 w:768) + /// Proof: `Elections::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Elections::Members` (r:1 w:0) + /// Proof: `Elections::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Elections::RunnersUp` (r:1 w:0) + /// Proof: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Elections::Candidates` (r:1 w:0) + /// Proof: `Elections::Candidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Balances::Locks` (r:768 w:768) + /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`) + /// Storage: `Balances::Freezes` (r:768 w:0) + /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:768 w:768) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// The range of component `v` is `[384, 768]`. + /// The range of component `d` is `[0, 384]`. + fn clean_defunct_voters(v: u32, _d: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `2801 + v * (618 ±0)` + // Estimated: `6203 + v * (3774 ±0)` + // Minimum execution time: 30_165_011_000 picoseconds. + Weight::from_parts(30_322_012_000, 6203) + // Standard Error: 624_076 + .saturating_add(Weight::from_parts(47_261_830, 0).saturating_mul(v.into())) + .saturating_add(T::DbWeight::get().reads(4_u64)) + .saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(v.into()))) + .saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(v.into()))) + .saturating_add(Weight::from_parts(0, 3774).saturating_mul(v.into())) + } + /// Storage: `Elections::Candidates` (r:1 w:1) + /// Proof: `Elections::Candidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Elections::Members` (r:1 w:1) + /// Proof: `Elections::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Elections::RunnersUp` (r:1 w:1) + /// Proof: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Elections::Voting` (r:769 w:0) + /// Proof: `Elections::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Council::Proposals` (r:1 w:0) + /// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `System::Account` (r:84 w:84) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `Elections::ElectionRounds` (r:1 w:1) + /// Proof: `Elections::ElectionRounds` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Council::Members` (r:0 w:1) + /// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Council::Prime` (r:0 w:1) + /// Proof: `Council::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// The range of component `c` is `[1, 100]`. + /// The range of component `v` is `[1, 768]`. + /// The range of component `e` is `[768, 7680]`. + fn election_phragmen(c: u32, v: u32, e: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0 + e * (27 ±0) + v * (412 ±0)` + // Estimated: `278823 + c * (2317 ±9) + e * (11 ±0) + v * (2543 ±7)` + // Minimum execution time: 3_796_278_000 picoseconds. + Weight::from_parts(3_800_497_000, 278823) + // Standard Error: 520_739 + .saturating_add(Weight::from_parts(12_240_585, 0).saturating_mul(v.into())) + // Standard Error: 54_339 + .saturating_add(Weight::from_parts(616_870, 0).saturating_mul(e.into())) + .saturating_add(T::DbWeight::get().reads(48_u64)) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(c.into()))) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(v.into()))) + .saturating_add(T::DbWeight::get().writes(6_u64)) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(c.into()))) + .saturating_add(Weight::from_parts(0, 2317).saturating_mul(c.into())) + .saturating_add(Weight::from_parts(0, 11).saturating_mul(e.into())) + .saturating_add(Weight::from_parts(0, 2543).saturating_mul(v.into())) + } +} \ No newline at end of file diff --git a/runtime/basilisk/src/weights/mod.rs b/runtime/basilisk/src/weights/mod.rs index 4b7e7e9fe9..7a7a4bac46 100644 --- a/runtime/basilisk/src/weights/mod.rs +++ b/runtime/basilisk/src/weights/mod.rs @@ -5,6 +5,7 @@ pub mod collective; pub mod currencies; pub mod democracy; pub mod duster; +pub mod elections; pub mod ema_oracle; pub mod lbp; pub mod marketplace; diff --git a/runtime/basilisk/src/weights/tips.rs b/runtime/basilisk/src/weights/tips.rs index 6609a9bd1b..ba5009ec66 100644 --- a/runtime/basilisk/src/weights/tips.rs +++ b/runtime/basilisk/src/weights/tips.rs @@ -15,10 +15,11 @@ // See the License for the specific language governing permissions and // limitations under the License. + //! Autogenerated weights for `pallet_tips` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-12-06, STEPS: `10`, REPEAT: `30`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-02-26, STEPS: `10`, REPEAT: `30`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `bench-bot`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024` @@ -37,34 +38,31 @@ // --output=weights-1.1.0/tips.rs // --extrinsic=* +#![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] -#![allow(clippy::unnecessary_cast)] - -use frame_support::{ - traits::Get, - weights::{constants::RocksDbWeight, Weight}, -}; -use sp_std::marker::PhantomData; +#![allow(missing_docs)] -use pallet_tips::weights::WeightInfo; +use frame_support::{traits::Get, weights::Weight}; +use core::marker::PhantomData; +use pallet_tips::WeightInfo; +/// Weights for `pallet_tips` using the Basilisk node and recommended hardware. pub struct BasiliskWeight(PhantomData); - impl WeightInfo for BasiliskWeight { /// Storage: `Tips::Reasons` (r:1 w:1) /// Proof: `Tips::Reasons` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `Tips::Tips` (r:1 w:1) /// Proof: `Tips::Tips` (`max_values`: None, `max_size`: None, mode: `Measured`) /// The range of component `r` is `[0, 1024]`. - fn report_awesome(r: u32) -> Weight { + fn report_awesome(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `3` // Estimated: `3468` - // Minimum execution time: 40_703_000 picoseconds. - Weight::from_parts(41_096_004, 3468) - // Standard Error: 38 - .saturating_add(Weight::from_parts(1_443, 0).saturating_mul(r.into())) + // Minimum execution time: 39_914_000 picoseconds. + Weight::from_parts(40_759_457, 3468) + // Standard Error: 51 + .saturating_add(Weight::from_parts(1_534, 0).saturating_mul(r.into())) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -76,8 +74,8 @@ impl WeightInfo for BasiliskWeight { // Proof Size summary in bytes: // Measured: `220` // Estimated: `3685` - // Minimum execution time: 38_411_000 picoseconds. - Weight::from_parts(38_741_000, 3685) + // Minimum execution time: 37_195_000 picoseconds. + Weight::from_parts(37_632_000, 3685) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -89,16 +87,16 @@ impl WeightInfo for BasiliskWeight { /// Proof: `Tips::Tips` (`max_values`: None, `max_size`: None, mode: `Measured`) /// The range of component `r` is `[0, 1024]`. /// The range of component `t` is `[1, 7]`. - fn tip_new(r: u32, t: u32) -> Weight { + fn tip_new(r: u32, t: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `238 + t * (64 ±0)` // Estimated: `3703 + t * (64 ±0)` - // Minimum execution time: 26_815_000 picoseconds. - Weight::from_parts(26_762_157, 3703) - // Standard Error: 30 - .saturating_add(Weight::from_parts(1_830, 0).saturating_mul(r.into())) - // Standard Error: 4_954 - .saturating_add(Weight::from_parts(77_114, 0).saturating_mul(t.into())) + // Minimum execution time: 26_974_000 picoseconds. + Weight::from_parts(26_937_982, 3703) + // Standard Error: 37 + .saturating_add(Weight::from_parts(1_790, 0).saturating_mul(r.into())) + // Standard Error: 6_024 + .saturating_add(Weight::from_parts(97_556, 0).saturating_mul(t.into())) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) .saturating_add(Weight::from_parts(0, 64).saturating_mul(t.into())) @@ -108,14 +106,14 @@ impl WeightInfo for BasiliskWeight { /// Storage: `Tips::Tips` (r:1 w:1) /// Proof: `Tips::Tips` (`max_values`: None, `max_size`: None, mode: `Measured`) /// The range of component `t` is `[1, 7]`. - fn tip(t: u32) -> Weight { + fn tip(t: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `459 + t * (112 ±0)` // Estimated: `3924 + t * (112 ±0)` - // Minimum execution time: 20_822_000 picoseconds. - Weight::from_parts(21_042_093, 3924) - // Standard Error: 5_344 - .saturating_add(Weight::from_parts(158_511, 0).saturating_mul(t.into())) + // Minimum execution time: 21_124_000 picoseconds. + Weight::from_parts(21_367_368, 3924) + // Standard Error: 5_283 + .saturating_add(Weight::from_parts(197_604, 0).saturating_mul(t.into())) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) .saturating_add(Weight::from_parts(0, 112).saturating_mul(t.into())) @@ -129,14 +127,14 @@ impl WeightInfo for BasiliskWeight { /// Storage: `Tips::Reasons` (r:0 w:1) /// Proof: `Tips::Reasons` (`max_values`: None, `max_size`: None, mode: `Measured`) /// The range of component `t` is `[1, 7]`. - fn close_tip(t: u32) -> Weight { + fn close_tip(t: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `459 + t * (112 ±0)` // Estimated: `3956 + t * (108 ±0)` - // Minimum execution time: 81_401_000 picoseconds. - Weight::from_parts(82_522_678, 3956) - // Standard Error: 17_050 - .saturating_add(Weight::from_parts(47_685, 0).saturating_mul(t.into())) + // Minimum execution time: 80_021_000 picoseconds. + Weight::from_parts(81_286_488, 3956) + // Standard Error: 19_506 + .saturating_add(Weight::from_parts(63_273, 0).saturating_mul(t.into())) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) .saturating_add(Weight::from_parts(0, 108).saturating_mul(t.into())) @@ -146,15 +144,13 @@ impl WeightInfo for BasiliskWeight { /// Storage: `Tips::Reasons` (r:0 w:1) /// Proof: `Tips::Reasons` (`max_values`: None, `max_size`: None, mode: `Measured`) /// The range of component `t` is `[1, 7]`. - fn slash_tip(t: u32) -> Weight { + fn slash_tip(_t: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `268` // Estimated: `3733` - // Minimum execution time: 20_060_000 picoseconds. - Weight::from_parts(20_472_625, 3733) - // Standard Error: 3_824 - .saturating_add(Weight::from_parts(2_274, 0).saturating_mul(t.into())) + // Minimum execution time: 20_188_000 picoseconds. + Weight::from_parts(20_632_387, 3733) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } -} +} \ No newline at end of file