diff --git a/custom-pallets/positive-externality/src/benchmarking.rs b/custom-pallets/positive-externality/src/benchmarking.rs index 0130bf8..a5c5237 100644 --- a/custom-pallets/positive-externality/src/benchmarking.rs +++ b/custom-pallets/positive-externality/src/benchmarking.rs @@ -19,6 +19,155 @@ mod benchmarks { ) { frame_system::Pallet::::assert_last_event(generic_event.into()); } + fn full_schelling_game( + user_to_calculate: T::AccountId, + start_block_number: u64, + accounts: Vec, + ) { + let start_block_number = + PositiveExternality::::u64_to_block_saturated(start_block_number); + assert_ok!(PositiveExternality::::set_validate_positive_externality( + RawOrigin::Signed(user_to_calculate.clone()).into(), + true + )); + let account2 = account::("stake-account", 2, SEED); + + let balance = PositiveExternality::::u64_to_balance_saturated(100000000000000); + + let _ = ::Currency::deposit_creating(&account2, balance); + assert_ok!(PositiveExternality::::apply_staking_period( + RawOrigin::Signed(account2.clone()).into(), + user_to_calculate.clone() + )); + + let account3 = account::("apply-juror-account", 3, SEED); + + let _ = ::Currency::deposit_creating(&account3, balance); + + let stake = PositiveExternality::::u64_to_balance_saturated(100); + + for j in 4..30 { + let stake = PositiveExternality::::u64_to_balance_saturated(j * 100); + assert_ok!(PositiveExternality::::apply_jurors( + RawOrigin::Signed(accounts[(j) as usize].clone()).into(), + user_to_calculate.clone(), + stake + )); + } + + let phase_data = PositiveExternality::::get_phase_data(); + + >::set_block_number(start_block_number + phase_data.staking_length); + + assert_ok!(PositiveExternality::::pass_period( + RawOrigin::Signed(accounts[0].clone()).into(), + user_to_calculate.clone() + )); + + assert_ok!(PositiveExternality::::draw_jurors( + RawOrigin::Signed(accounts[1].clone()).into(), + user_to_calculate.clone(), + 5 + )); + + assert_ok!(PositiveExternality::::pass_period( + RawOrigin::Signed(accounts[0].clone()).into(), + user_to_calculate.clone() + )); + + let hash = sp_io::hashing::keccak_256("1salt2".as_bytes()); + assert_ok!(PositiveExternality::::commit_vote( + RawOrigin::Signed(accounts[4].clone()).into(), + user_to_calculate.clone(), + hash + )); + + let hash = sp_io::hashing::keccak_256("1salt3".as_bytes()); + assert_ok!(PositiveExternality::::commit_vote( + RawOrigin::Signed(accounts[7].clone()).into(), + user_to_calculate.clone(), + hash + )); + + let hash = sp_io::hashing::keccak_256("1salt4".as_bytes()); + assert_ok!(PositiveExternality::::commit_vote( + RawOrigin::Signed(accounts[13].clone()).into(), + user_to_calculate.clone(), + hash + )); + + let hash = sp_io::hashing::keccak_256("1salt5".as_bytes()); + assert_ok!(PositiveExternality::::commit_vote( + RawOrigin::Signed(accounts[14].clone()).into(), + user_to_calculate.clone(), + hash + )); + + let hash = sp_io::hashing::keccak_256("3salt6".as_bytes()); + assert_ok!(PositiveExternality::::commit_vote( + RawOrigin::Signed(accounts[15].clone()).into(), + user_to_calculate.clone(), + hash + )); + + >::set_block_number( + phase_data.evidence_length + + start_block_number + + phase_data.staking_length + + phase_data.commit_length, + ); + + assert_ok!(PositiveExternality::::pass_period( + RawOrigin::Signed(accounts[0].clone()).into(), + user_to_calculate.clone() + )); + + assert_ok!(PositiveExternality::::reveal_vote( + RawOrigin::Signed(accounts[4].clone()).into(), + user_to_calculate.clone(), + 1, + "salt2".as_bytes().to_vec() + )); + + assert_ok!(PositiveExternality::::reveal_vote( + RawOrigin::Signed(accounts[7].clone()).into(), + user_to_calculate.clone(), + 1, + "salt3".as_bytes().to_vec() + )); + + assert_ok!(PositiveExternality::::reveal_vote( + RawOrigin::Signed(accounts[14].clone()).into(), + user_to_calculate.clone(), + 1, + "salt5".as_bytes().to_vec() + )); + + assert_ok!(PositiveExternality::::reveal_vote( + RawOrigin::Signed(accounts[15].clone()).into(), + user_to_calculate.clone(), + 3, + "salt6".as_bytes().to_vec() + )); + + >::set_block_number( + phase_data.evidence_length + + start_block_number + + phase_data.staking_length + + phase_data.commit_length + + phase_data.vote_length, + ); + + assert_ok!(PositiveExternality::::pass_period( + RawOrigin::Signed(accounts[0].clone()).into(), + user_to_calculate.clone() + )); + + assert_ok!(PositiveExternality::::set_new_mean_value( + RawOrigin::Signed(accounts[13].clone()).into(), + user_to_calculate.clone() + )); + } #[benchmark] fn create_positive_externality_post() { @@ -376,5 +525,25 @@ mod benchmarks { ) } + #[benchmark] + fn add_incentive_count() { + let mut accounts = vec![]; + let balance = PositiveExternality::::u64_to_balance_saturated(100000000000000); + + for j in 4..50 { + let account_number = account::("apply-juror-account", j, SEED); + let _ = ::Currency::deposit_creating(&account_number, balance); + accounts.push(account_number); + } + + let block_number = PositiveExternality::::u64_to_block_saturated(1000); + >::set_block_number(block_number); + + full_schelling_game::(accounts[1].clone(), 1000, accounts.clone()); + + #[extrinsic_call] + add_incentive_count(RawOrigin::Signed(accounts[14].clone()), accounts[1].clone()) + } + impl_benchmark_test_suite!(PositiveExternality, crate::mock::new_test_ext(), crate::mock::Test); } diff --git a/custom-pallets/positive-externality/src/weights.rs b/custom-pallets/positive-externality/src/weights.rs index f404f22..343f5be 100644 --- a/custom-pallets/positive-externality/src/weights.rs +++ b/custom-pallets/positive-externality/src/weights.rs @@ -2,7 +2,7 @@ //! Autogenerated weights for `pallet_positive_externality` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-10-02, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-10-03, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `amiya`, CPU: `12th Gen Intel(R) Core(TM) i7-12650H` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024` @@ -45,6 +45,7 @@ pub trait WeightInfo { fn draw_jurors() -> Weight; fn commit_vote() -> Weight; fn reveal_vote() -> Weight; + fn add_incentive_count() -> Weight; } /// Weights for `pallet_positive_externality` using the Substrate node and recommended hardware. @@ -62,8 +63,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `12` // Estimated: `3477` - // Minimum execution time: 7_933_000 picoseconds. - Weight::from_parts(8_272_000, 3477) + // Minimum execution time: 8_766_000 picoseconds. + Weight::from_parts(9_335_000, 3477) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -73,8 +74,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_971_000 picoseconds. - Weight::from_parts(3_122_000, 0) + // Minimum execution time: 2_998_000 picoseconds. + Weight::from_parts(3_050_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: `PositiveExternality::Validate` (r:1 w:0) @@ -95,8 +96,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `220` // Estimated: `3685` - // Minimum execution time: 35_837_000 picoseconds. - Weight::from_parts(37_373_000, 3685) + // Minimum execution time: 35_061_000 picoseconds. + Weight::from_parts(36_650_000, 3685) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(6_u64)) } @@ -116,8 +117,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `584` // Estimated: `4049` - // Minimum execution time: 41_060_000 picoseconds. - Weight::from_parts(41_994_000, 4049) + // Minimum execution time: 43_066_000 picoseconds. + Weight::from_parts(45_135_000, 4049) .saturating_add(T::DbWeight::get().reads(6_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -131,8 +132,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `351` // Estimated: `3816` - // Minimum execution time: 20_177_000 picoseconds. - Weight::from_parts(21_520_000, 3816) + // Minimum execution time: 20_911_000 picoseconds. + Weight::from_parts(22_268_000, 3816) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -154,8 +155,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `184048` // Estimated: `187513` - // Minimum execution time: 3_428_601_000 picoseconds. - Weight::from_parts(3_510_068_000, 187513) + // Minimum execution time: 3_367_289_000 picoseconds. + Weight::from_parts(3_474_402_000, 187513) .saturating_add(T::DbWeight::get().reads(7_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } @@ -171,8 +172,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `682` // Estimated: `4147` - // Minimum execution time: 21_751_000 picoseconds. - Weight::from_parts(22_981_000, 4147) + // Minimum execution time: 22_471_000 picoseconds. + Weight::from_parts(23_631_000, 4147) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -188,11 +189,36 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `789` // Estimated: `4254` - // Minimum execution time: 31_114_000 picoseconds. - Weight::from_parts(32_007_000, 4254) + // Minimum execution time: 31_535_000 picoseconds. + Weight::from_parts(32_502_000, 4254) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } + /// Storage: `PositiveExternality::ValidationBlock` (r:1 w:0) + /// Proof: `PositiveExternality::ValidationBlock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SchellingGameShared::PeriodName` (r:1 w:0) + /// Proof: `SchellingGameShared::PeriodName` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SchellingGameShared::IncentiveMeanRevealScore` (r:1 w:0) + /// Proof: `SchellingGameShared::IncentiveMeanRevealScore` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SchellingGameShared::DrawnJurors` (r:1 w:0) + /// Proof: `SchellingGameShared::DrawnJurors` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SchellingGameShared::ScoreVoteCommits` (r:1 w:0) + /// Proof: `SchellingGameShared::ScoreVoteCommits` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SchellingGameShared::IncentiveAddedToCount` (r:1 w:1) + /// Proof: `SchellingGameShared::IncentiveAddedToCount` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PositiveExternality::IncentiveCount` (r:1 w:1) + /// Proof: `PositiveExternality::IncentiveCount` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Timestamp::Now` (r:1 w:0) + /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) + fn add_incentive_count() -> Weight { + // Proof Size summary in bytes: + // Measured: `1081` + // Estimated: `4546` + // Minimum execution time: 39_797_000 picoseconds. + Weight::from_parts(41_242_000, 4546) + .saturating_add(T::DbWeight::get().reads(8_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) + } } // For backwards compatibility and tests. @@ -209,8 +235,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `12` // Estimated: `3477` - // Minimum execution time: 7_933_000 picoseconds. - Weight::from_parts(8_272_000, 3477) + // Minimum execution time: 8_766_000 picoseconds. + Weight::from_parts(9_335_000, 3477) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -220,8 +246,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_971_000 picoseconds. - Weight::from_parts(3_122_000, 0) + // Minimum execution time: 2_998_000 picoseconds. + Weight::from_parts(3_050_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: `PositiveExternality::Validate` (r:1 w:0) @@ -242,8 +268,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `220` // Estimated: `3685` - // Minimum execution time: 35_837_000 picoseconds. - Weight::from_parts(37_373_000, 3685) + // Minimum execution time: 35_061_000 picoseconds. + Weight::from_parts(36_650_000, 3685) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(6_u64)) } @@ -263,8 +289,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `584` // Estimated: `4049` - // Minimum execution time: 41_060_000 picoseconds. - Weight::from_parts(41_994_000, 4049) + // Minimum execution time: 43_066_000 picoseconds. + Weight::from_parts(45_135_000, 4049) .saturating_add(RocksDbWeight::get().reads(6_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -278,8 +304,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `351` // Estimated: `3816` - // Minimum execution time: 20_177_000 picoseconds. - Weight::from_parts(21_520_000, 3816) + // Minimum execution time: 20_911_000 picoseconds. + Weight::from_parts(22_268_000, 3816) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -301,8 +327,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `184048` // Estimated: `187513` - // Minimum execution time: 3_428_601_000 picoseconds. - Weight::from_parts(3_510_068_000, 187513) + // Minimum execution time: 3_367_289_000 picoseconds. + Weight::from_parts(3_474_402_000, 187513) .saturating_add(RocksDbWeight::get().reads(7_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } @@ -318,8 +344,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `682` // Estimated: `4147` - // Minimum execution time: 21_751_000 picoseconds. - Weight::from_parts(22_981_000, 4147) + // Minimum execution time: 22_471_000 picoseconds. + Weight::from_parts(23_631_000, 4147) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -335,9 +361,34 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `789` // Estimated: `4254` - // Minimum execution time: 31_114_000 picoseconds. - Weight::from_parts(32_007_000, 4254) + // Minimum execution time: 31_535_000 picoseconds. + Weight::from_parts(32_502_000, 4254) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } + /// Storage: `PositiveExternality::ValidationBlock` (r:1 w:0) + /// Proof: `PositiveExternality::ValidationBlock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SchellingGameShared::PeriodName` (r:1 w:0) + /// Proof: `SchellingGameShared::PeriodName` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SchellingGameShared::IncentiveMeanRevealScore` (r:1 w:0) + /// Proof: `SchellingGameShared::IncentiveMeanRevealScore` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SchellingGameShared::DrawnJurors` (r:1 w:0) + /// Proof: `SchellingGameShared::DrawnJurors` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SchellingGameShared::ScoreVoteCommits` (r:1 w:0) + /// Proof: `SchellingGameShared::ScoreVoteCommits` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SchellingGameShared::IncentiveAddedToCount` (r:1 w:1) + /// Proof: `SchellingGameShared::IncentiveAddedToCount` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PositiveExternality::IncentiveCount` (r:1 w:1) + /// Proof: `PositiveExternality::IncentiveCount` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Timestamp::Now` (r:1 w:0) + /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) + fn add_incentive_count() -> Weight { + // Proof Size summary in bytes: + // Measured: `1081` + // Estimated: `4546` + // Minimum execution time: 39_797_000 picoseconds. + Weight::from_parts(41_242_000, 4546) + .saturating_add(RocksDbWeight::get().reads(8_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) + } } diff --git a/custom-pallets/project-tips/src/weights.rs b/custom-pallets/project-tips/src/weights.rs index cf374ea..e8b9eb3 100644 --- a/custom-pallets/project-tips/src/weights.rs +++ b/custom-pallets/project-tips/src/weights.rs @@ -2,30 +2,28 @@ //! Autogenerated weights for `pallet_project_tips` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-09-30, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-10-03, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `amiya`, CPU: `12th Gen Intel(R) Core(TM) i7-12650H` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024` // Executed Command: -// target/release/node-template +// ./target/release/node-template // benchmark // pallet // --chain // dev -// --wasm-execution -// compiled // --pallet // pallet-project-tips // --extrinsic // * -// --steps -// 50 -// --repeat -// 20 +// --steps=50 +// --repeat=20 +// --wasm-execution=compiled // --output // custom-pallets/project-tips/src/weights.rs -// --template=./.maintain/frame-weight-template.hbs +// --template +// ./.maintain/frame-weight-template.hbs #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] @@ -63,8 +61,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `10` // Estimated: `3475` - // Minimum execution time: 11_376_000 picoseconds. - Weight::from_parts(11_962_000, 3475) + // Minimum execution time: 10_652_000 picoseconds. + Weight::from_parts(11_363_000, 3475) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -84,8 +82,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `439` // Estimated: `3904` - // Minimum execution time: 38_369_000 picoseconds. - Weight::from_parts(39_089_000, 3904) + // Minimum execution time: 32_245_000 picoseconds. + Weight::from_parts(33_794_000, 3904) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } @@ -101,8 +99,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `465` // Estimated: `3930` - // Minimum execution time: 37_481_000 picoseconds. - Weight::from_parts(38_924_000, 3930) + // Minimum execution time: 32_625_000 picoseconds. + Weight::from_parts(34_033_000, 3930) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -116,8 +114,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `302` // Estimated: `3767` - // Minimum execution time: 19_949_000 picoseconds. - Weight::from_parts(20_881_000, 3767) + // Minimum execution time: 17_398_000 picoseconds. + Weight::from_parts(18_222_000, 3767) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -139,8 +137,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `2754` // Estimated: `6219` - // Minimum execution time: 164_610_000 picoseconds. - Weight::from_parts(170_674_000, 6219) + // Minimum execution time: 145_399_000 picoseconds. + Weight::from_parts(149_486_000, 6219) .saturating_add(T::DbWeight::get().reads(7_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } @@ -156,8 +154,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `633` // Estimated: `4098` - // Minimum execution time: 21_369_000 picoseconds. - Weight::from_parts(22_184_000, 4098) + // Minimum execution time: 18_984_000 picoseconds. + Weight::from_parts(19_805_000, 4098) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -173,8 +171,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `658` // Estimated: `4123` - // Minimum execution time: 29_232_000 picoseconds. - Weight::from_parts(29_784_000, 4123) + // Minimum execution time: 25_492_000 picoseconds. + Weight::from_parts(26_271_000, 4123) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -198,8 +196,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `986` // Estimated: `4451` - // Minimum execution time: 38_346_000 picoseconds. - Weight::from_parts(39_316_000, 4451) + // Minimum execution time: 33_389_000 picoseconds. + Weight::from_parts(34_445_000, 4451) .saturating_add(T::DbWeight::get().reads(8_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -215,8 +213,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `536` // Estimated: `4001` - // Minimum execution time: 38_336_000 picoseconds. - Weight::from_parts(39_300_000, 4001) + // Minimum execution time: 33_995_000 picoseconds. + Weight::from_parts(36_024_000, 4001) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -236,8 +234,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `10` // Estimated: `3475` - // Minimum execution time: 11_376_000 picoseconds. - Weight::from_parts(11_962_000, 3475) + // Minimum execution time: 10_652_000 picoseconds. + Weight::from_parts(11_363_000, 3475) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -257,8 +255,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `439` // Estimated: `3904` - // Minimum execution time: 38_369_000 picoseconds. - Weight::from_parts(39_089_000, 3904) + // Minimum execution time: 32_245_000 picoseconds. + Weight::from_parts(33_794_000, 3904) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(5_u64)) } @@ -274,8 +272,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `465` // Estimated: `3930` - // Minimum execution time: 37_481_000 picoseconds. - Weight::from_parts(38_924_000, 3930) + // Minimum execution time: 32_625_000 picoseconds. + Weight::from_parts(34_033_000, 3930) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -289,8 +287,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `302` // Estimated: `3767` - // Minimum execution time: 19_949_000 picoseconds. - Weight::from_parts(20_881_000, 3767) + // Minimum execution time: 17_398_000 picoseconds. + Weight::from_parts(18_222_000, 3767) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -312,8 +310,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `2754` // Estimated: `6219` - // Minimum execution time: 164_610_000 picoseconds. - Weight::from_parts(170_674_000, 6219) + // Minimum execution time: 145_399_000 picoseconds. + Weight::from_parts(149_486_000, 6219) .saturating_add(RocksDbWeight::get().reads(7_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } @@ -329,8 +327,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `633` // Estimated: `4098` - // Minimum execution time: 21_369_000 picoseconds. - Weight::from_parts(22_184_000, 4098) + // Minimum execution time: 18_984_000 picoseconds. + Weight::from_parts(19_805_000, 4098) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -346,8 +344,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `658` // Estimated: `4123` - // Minimum execution time: 29_232_000 picoseconds. - Weight::from_parts(29_784_000, 4123) + // Minimum execution time: 25_492_000 picoseconds. + Weight::from_parts(26_271_000, 4123) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -371,8 +369,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `986` // Estimated: `4451` - // Minimum execution time: 38_346_000 picoseconds. - Weight::from_parts(39_316_000, 4451) + // Minimum execution time: 33_389_000 picoseconds. + Weight::from_parts(34_445_000, 4451) .saturating_add(RocksDbWeight::get().reads(8_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -388,8 +386,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `536` // Estimated: `4001` - // Minimum execution time: 38_336_000 picoseconds. - Weight::from_parts(39_300_000, 4001) + // Minimum execution time: 33_995_000 picoseconds. + Weight::from_parts(36_024_000, 4001) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) }