From 8f0f02676fc51e043aa15223790142856c352fa3 Mon Sep 17 00:00:00 2001 From: mertwole Date: Wed, 21 Jan 2026 10:32:42 +0100 Subject: [PATCH 01/11] Implement --- .../src/weights/pallet_broker.rs | 3 ++ substrate/frame/broker/src/benchmarking.rs | 35 +++++++++++++++++++ substrate/frame/broker/src/lib.rs | 16 +++++++++ substrate/frame/broker/src/tests.rs | 10 ++++++ substrate/frame/broker/src/weights.rs | 7 ++++ 5 files changed, 71 insertions(+) diff --git a/cumulus/parachains/runtimes/coretime/coretime-westend/src/weights/pallet_broker.rs b/cumulus/parachains/runtimes/coretime/coretime-westend/src/weights/pallet_broker.rs index 7d3cff7a2f747..561d0a4586947 100644 --- a/cumulus/parachains/runtimes/coretime/coretime-westend/src/weights/pallet_broker.rs +++ b/cumulus/parachains/runtimes/coretime/coretime-westend/src/weights/pallet_broker.rs @@ -640,4 +640,7 @@ impl pallet_broker::WeightInfo for WeightInfo { .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } + fn force_transfer() -> Weight { + Weight::zero() + } } diff --git a/substrate/frame/broker/src/benchmarking.rs b/substrate/frame/broker/src/benchmarking.rs index dc4f26c90cab9..a966d5f87a75d 100644 --- a/substrate/frame/broker/src/benchmarking.rs +++ b/substrate/frame/broker/src/benchmarking.rs @@ -1312,6 +1312,41 @@ mod benches { Ok(()) } + #[benchmark] + fn force_transfer() -> Result<(), BenchmarkError> { + let sale_data = setup_and_start_sale::()?; + advance_to::(2); + + let caller: T::AccountId = whitelisted_caller(); + T::Currency::set_balance( + &caller.clone(), + T::Currency::minimum_balance().saturating_add(sale_data.start_price), + ); + + let region = Broker::::do_purchase(caller.clone(), sale_data.start_price) + .expect("Offer not high enough for configuration."); + + let recipient: T::AccountId = account("recipient", 0, SEED); + + let origin = + T::AdminOrigin::try_successful_origin().map_err(|_| BenchmarkError::Weightless)?; + + #[extrinsic_call] + _(origin, region, recipient.clone()); + + assert_last_event::( + Event::Transferred { + region_id: region, + old_owner: Some(caller), + owner: Some(recipient), + duration: 3u32.into(), + } + .into(), + ); + + Ok(()) + } + // Implements a test for each benchmark. Execute with: // `cargo test -p pallet-broker --features runtime-benchmarks`. impl_benchmark_test_suite!(Pallet, crate::mock::new_test_ext(), crate::mock::Test); diff --git a/substrate/frame/broker/src/lib.rs b/substrate/frame/broker/src/lib.rs index 699c61a883904..abf81ef70589b 100644 --- a/substrate/frame/broker/src/lib.rs +++ b/substrate/frame/broker/src/lib.rs @@ -1033,6 +1033,22 @@ pub mod pallet { Self::do_remove_assignment(region_id) } + /// Transfer a Bulk Coretime Region to a new owner, ignoring the previous owner. + /// + /// - `origin`: Must be Root or pass `AdminOrigin`. + /// - `region_id`: The Region whose ownership should change. + /// - `new_owner`: The new owner for the Region. + #[pallet::call_index(28)] + pub fn force_transfer( + origin: OriginFor, + region_id: RegionId, + new_owner: T::AccountId, + ) -> DispatchResult { + T::AdminOrigin::ensure_origin_or_root(origin)?; + Self::do_transfer(region_id, None, new_owner)?; + Ok(()) + } + #[pallet::call_index(99)] #[pallet::weight(T::WeightInfo::swap_leases())] pub fn swap_leases(origin: OriginFor, id: TaskId, other: TaskId) -> DispatchResult { diff --git a/substrate/frame/broker/src/tests.rs b/substrate/frame/broker/src/tests.rs index 120e328522be7..1a9627fd6d966 100644 --- a/substrate/frame/broker/src/tests.rs +++ b/substrate/frame/broker/src/tests.rs @@ -2800,3 +2800,13 @@ fn force_reserve_works() { ); }); } + +#[test] +fn force_transfer_works() { + TestExt::new().endow(1, 1000).execute_with(|| { + assert_ok!(Broker::do_start_sales(100, 4)); + advance_to(2); + + // TODO + }); +} diff --git a/substrate/frame/broker/src/weights.rs b/substrate/frame/broker/src/weights.rs index c3d74216324e7..01878b235d5dc 100644 --- a/substrate/frame/broker/src/weights.rs +++ b/substrate/frame/broker/src/weights.rs @@ -107,6 +107,7 @@ pub trait WeightInfo { fn disable_auto_renew() -> Weight; fn on_new_timeslice() -> Weight; fn remove_assignment() -> Weight; + fn force_transfer() -> Weight; } /// Weights for `pallet_broker` using the Substrate node and recommended hardware. @@ -606,6 +607,9 @@ impl WeightInfo for SubstrateWeight { .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } + fn force_transfer() -> Weight { + Weight::zero() + } } // For backwards compatibility and tests. @@ -1104,4 +1108,7 @@ impl WeightInfo for () { .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } + fn force_transfer() -> Weight { + Weight::zero() + } } From 18a5be409feb5a14b89327ab9201270802cc27ec Mon Sep 17 00:00:00 2001 From: mertwole Date: Wed, 21 Jan 2026 11:21:19 +0100 Subject: [PATCH 02/11] Add tests --- substrate/frame/broker/src/tests.rs | 48 ++++++++++++++++++++++++++++- 1 file changed, 47 insertions(+), 1 deletion(-) diff --git a/substrate/frame/broker/src/tests.rs b/substrate/frame/broker/src/tests.rs index 1a9627fd6d966..555445a754beb 100644 --- a/substrate/frame/broker/src/tests.rs +++ b/substrate/frame/broker/src/tests.rs @@ -2807,6 +2807,52 @@ fn force_transfer_works() { assert_ok!(Broker::do_start_sales(100, 4)); advance_to(2); - // TODO + const OLD_OWNER: u64 = 1; + const NEW_OWNER: u64 = 222; + + let region_id = Broker::do_purchase(OLD_OWNER, u64::max_value()).unwrap(); + let region = Regions::::get(region_id).unwrap(); + + assert_noop!( + Broker::force_transfer( + RuntimeOrigin::root(), + RegionId { + begin: u32::max_value(), + core: u16::max_value(), + mask: CoreMask::void() + }, + NEW_OWNER + ), + Error::::UnknownRegion + ); + + assert_noop!( + Broker::force_transfer(RuntimeOrigin::signed(1001), region_id, NEW_OWNER), + BadOrigin + ); + + assert_ok!(Broker::force_transfer(RuntimeOrigin::root(), region_id, NEW_OWNER)); + + System::assert_last_event( + Event::Transferred { + region_id, + duration: region.end - region_id.begin, + old_owner: Some(OLD_OWNER), + owner: Some(NEW_OWNER), + } + .into(), + ); + + assert_noop!( + Broker::assign(RuntimeOrigin::signed(OLD_OWNER), region_id, 10, Finality::Final), + Error::::NotOwner + ); + + assert_ok!(Broker::assign( + RuntimeOrigin::signed(NEW_OWNER), + region_id, + 10, + Finality::Final + )); }); } From 5b52b34ca9365533d3c686a759132e71e1a6035b Mon Sep 17 00:00:00 2001 From: mertwole Date: Wed, 21 Jan 2026 11:26:12 +0100 Subject: [PATCH 03/11] Add prdoc --- prdoc/pr_10856.prdoc | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 prdoc/pr_10856.prdoc diff --git a/prdoc/pr_10856.prdoc b/prdoc/pr_10856.prdoc new file mode 100644 index 0000000000000..1290b447c6976 --- /dev/null +++ b/prdoc/pr_10856.prdoc @@ -0,0 +1,10 @@ +title: '[pallet-broker] add extrinsic to force transfer a region' +doc: +- audience: Runtime User + description: |- + Add an extrinsic to the pallet-broker allowing to forcefully transfer a region, ignoring the owner. +crates: +- name: pallet-broker + bump: major +- name: coretime-westend-runtime + bump: major \ No newline at end of file From db40ed9e3c4cfc821db89ac087c937701dd8876f Mon Sep 17 00:00:00 2001 From: "cmd[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 21 Jan 2026 12:03:32 +0000 Subject: [PATCH 04/11] Update from github-actions[bot] running command 'bench --pallet pallet_broker' --- .../src/weights/pallet_broker.rs | 672 +++------- substrate/frame/broker/src/weights.rs | 1115 +++++------------ 2 files changed, 515 insertions(+), 1272 deletions(-) diff --git a/cumulus/parachains/runtimes/coretime/coretime-westend/src/weights/pallet_broker.rs b/cumulus/parachains/runtimes/coretime/coretime-westend/src/weights/pallet_broker.rs index 561d0a4586947..cc362f324f15c 100644 --- a/cumulus/parachains/runtimes/coretime/coretime-westend/src/weights/pallet_broker.rs +++ b/cumulus/parachains/runtimes/coretime/coretime-westend/src/weights/pallet_broker.rs @@ -16,9 +16,9 @@ //! Autogenerated weights for `pallet_broker` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2026-01-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `050e4dc4313a`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` +//! HOSTNAME: `ad2969b35e68`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` //! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024 // Executed Command: @@ -50,597 +50,305 @@ use core::marker::PhantomData; /// Weight functions for `pallet_broker`. pub struct WeightInfo(PhantomData); impl pallet_broker::WeightInfo for WeightInfo { - /// Storage: `Broker::Configuration` (r:0 w:1) - /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) fn configure() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_566_000 picoseconds. - Weight::from_parts(2_786_000, 0) + // Minimum execution time: 3_388_000 picoseconds. + Weight::from_parts(3_624_000, 0) .saturating_add(Weight::from_parts(0, 0)) - .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: `Broker::Reservations` (r:1 w:1) - /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(12021), added: 12516, mode: `MaxEncodedLen`) fn reserve() -> Weight { // Proof Size summary in bytes: // Measured: `10888` - // Estimated: `13506` - // Minimum execution time: 24_733_000 picoseconds. - Weight::from_parts(25_268_000, 0) - .saturating_add(Weight::from_parts(0, 13506)) - .saturating_add(T::DbWeight::get().reads(1)) - .saturating_add(T::DbWeight::get().writes(1)) - } - /// Storage: `Broker::Reservations` (r:1 w:1) - /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(12021), added: 12516, mode: `MaxEncodedLen`) + // Estimated: `0` + // Minimum execution time: 28_879_000 picoseconds. + Weight::from_parts(30_033_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } fn unreserve() -> Weight { // Proof Size summary in bytes: // Measured: `12090` - // Estimated: `13506` - // Minimum execution time: 23_819_000 picoseconds. - Weight::from_parts(24_701_000, 0) - .saturating_add(Weight::from_parts(0, 13506)) - .saturating_add(T::DbWeight::get().reads(1)) - .saturating_add(T::DbWeight::get().writes(1)) - } - /// Storage: `Broker::Leases` (r:1 w:1) - /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(81), added: 576, mode: `MaxEncodedLen`) - /// Storage: `ParachainSystem::ValidationData` (r:1 w:0) - /// Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `ParachainSystem::LastRelayChainBlockNumber` (r:1 w:0) - /// Proof: `ParachainSystem::LastRelayChainBlockNumber` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Estimated: `0` + // Minimum execution time: 27_864_000 picoseconds. + Weight::from_parts(28_273_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } fn set_lease() -> Weight { // Proof Size summary in bytes: // Measured: `146` - // Estimated: `1631` - // Minimum execution time: 12_897_000 picoseconds. - Weight::from_parts(13_446_000, 0) - .saturating_add(Weight::from_parts(0, 1631)) - .saturating_add(T::DbWeight::get().reads(3)) - .saturating_add(T::DbWeight::get().writes(1)) - } - /// Storage: `Broker::Leases` (r:1 w:1) - /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(81), added: 576, mode: `MaxEncodedLen`) + // Estimated: `0` + // Minimum execution time: 14_738_000 picoseconds. + Weight::from_parts(15_513_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } fn remove_lease() -> Weight { // Proof Size summary in bytes: // Measured: `150` - // Estimated: `1566` - // Minimum execution time: 10_319_000 picoseconds. - Weight::from_parts(10_718_000, 0) - .saturating_add(Weight::from_parts(0, 1566)) - .saturating_add(T::DbWeight::get().reads(1)) - .saturating_add(T::DbWeight::get().writes(1)) - } - /// Storage: `Broker::Configuration` (r:1 w:0) - /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) - /// Storage: `Broker::Leases` (r:1 w:1) - /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(81), added: 576, mode: `MaxEncodedLen`) - /// Storage: `Broker::Reservations` (r:1 w:0) - /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(12021), added: 12516, mode: `MaxEncodedLen`) - /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) - /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) - /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `ParachainSystem::ValidationData` (r:1 w:0) - /// Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `ParachainSystem::LastRelayChainBlockNumber` (r:1 w:0) - /// Proof: `ParachainSystem::LastRelayChainBlockNumber` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `Broker::InstaPoolIo` (r:3 w:3) - /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) - /// Storage: `Broker::AutoRenewals` (r:1 w:1) - /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(201), added: 696, mode: `MaxEncodedLen`) - /// Storage: `Broker::SaleInfo` (r:0 w:1) - /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`) - /// Storage: `Broker::Status` (r:0 w:1) - /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) - /// Storage: `Broker::Workplan` (r:0 w:20) - /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) + // Estimated: `0` + // Minimum execution time: 11_628_000 picoseconds. + Weight::from_parts(12_177_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } /// The range of component `n` is `[0, 1000]`. fn start_sales(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `12247` - // Estimated: `14773 + n * (1 ±0)` - // Minimum execution time: 50_462_000 picoseconds. - Weight::from_parts(95_701_761, 0) - .saturating_add(Weight::from_parts(0, 14773)) - // Standard Error: 1_017 - .saturating_add(Weight::from_parts(4_668, 0).saturating_mul(n.into())) - .saturating_add(T::DbWeight::get().reads(12)) - .saturating_add(T::DbWeight::get().writes(26)) - .saturating_add(Weight::from_parts(0, 1).saturating_mul(n.into())) - } - /// Storage: `Broker::Status` (r:1 w:0) - /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) - /// Storage: `Broker::SaleInfo` (r:1 w:1) - /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`) - /// Storage: `ParachainSystem::ValidationData` (r:1 w:0) - /// Proof: `ParachainSystem::ValidationData` (`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: `Broker::Regions` (r:0 w:1) - /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) + // Estimated: `0` + // Minimum execution time: 70_510_000 picoseconds. + Weight::from_parts(134_682_118, 0) + .saturating_add(Weight::from_parts(0, 0)) + // Standard Error: 1_439 + .saturating_add(Weight::from_parts(6_424, 0).saturating_mul(n.into())) + } fn purchase() -> Weight { // Proof Size summary in bytes: - // Measured: `437` - // Estimated: `3593` - // Minimum execution time: 55_310_000 picoseconds. - Weight::from_parts(56_779_000, 0) - .saturating_add(Weight::from_parts(0, 3593)) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(3)) - } - /// Storage: `Broker::Configuration` (r:1 w:0) - /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) - /// Storage: `Broker::Status` (r:1 w:0) - /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) - /// Storage: `Broker::SaleInfo` (r:1 w:1) - /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`) - /// Storage: `Broker::PotentialRenewals` (r:1 w:2) - /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`) - /// Storage: `System::Account` (r:1 w:0) - /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) - /// Storage: `ParachainSystem::ValidationData` (r:1 w:0) - /// Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `Broker::Workplan` (r:0 w:1) - /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) + // Measured: `403` + // Estimated: `0` + // Minimum execution time: 73_129_000 picoseconds. + Weight::from_parts(75_263_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } fn renew() -> Weight { // Proof Size summary in bytes: - // Measured: `658` - // Estimated: `4698` - // Minimum execution time: 96_952_000 picoseconds. - Weight::from_parts(103_889_000, 0) - .saturating_add(Weight::from_parts(0, 4698)) - .saturating_add(T::DbWeight::get().reads(6)) - .saturating_add(T::DbWeight::get().writes(4)) + // Measured: `624` + // Estimated: `0` + // Minimum execution time: 106_180_000 picoseconds. + Weight::from_parts(111_205_000, 0) + .saturating_add(Weight::from_parts(0, 0)) } - /// Storage: `Broker::Regions` (r:1 w:1) - /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) fn transfer() -> Weight { // Proof Size summary in bytes: // Measured: `358` - // Estimated: `3551` - // Minimum execution time: 20_830_000 picoseconds. - Weight::from_parts(21_754_000, 0) - .saturating_add(Weight::from_parts(0, 3551)) - .saturating_add(T::DbWeight::get().reads(1)) - .saturating_add(T::DbWeight::get().writes(1)) - } - /// Storage: `Broker::Regions` (r:1 w:2) - /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) + // Estimated: `0` + // Minimum execution time: 23_529_000 picoseconds. + Weight::from_parts(24_388_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } fn partition() -> Weight { // Proof Size summary in bytes: - // Measured: `358` - // Estimated: `3551` - // Minimum execution time: 22_556_000 picoseconds. - Weight::from_parts(23_385_000, 0) - .saturating_add(Weight::from_parts(0, 3551)) - .saturating_add(T::DbWeight::get().reads(1)) - .saturating_add(T::DbWeight::get().writes(2)) - } - /// Storage: `Broker::Regions` (r:1 w:3) - /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) + // Measured: `577` + // Estimated: `0` + // Minimum execution time: 45_779_000 picoseconds. + Weight::from_parts(48_008_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } fn interlace() -> Weight { // Proof Size summary in bytes: - // Measured: `358` - // Estimated: `3551` - // Minimum execution time: 24_183_000 picoseconds. - Weight::from_parts(24_668_000, 0) - .saturating_add(Weight::from_parts(0, 3551)) - .saturating_add(T::DbWeight::get().reads(1)) - .saturating_add(T::DbWeight::get().writes(3)) - } - /// Storage: `Broker::Configuration` (r:1 w:0) - /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) - /// Storage: `Broker::Status` (r:1 w:0) - /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) - /// Storage: `Broker::Regions` (r:1 w:1) - /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) - /// Storage: `Broker::Workplan` (r:1 w:1) - /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) + // Measured: `577` + // Estimated: `0` + // Minimum execution time: 47_456_000 picoseconds. + Weight::from_parts(49_976_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } fn assign() -> Weight { // Proof Size summary in bytes: - // Measured: `736` - // Estimated: `4681` - // Minimum execution time: 35_180_000 picoseconds. - Weight::from_parts(36_474_000, 0) - .saturating_add(Weight::from_parts(0, 4681)) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(2)) - } - /// Storage: `Broker::Status` (r:1 w:0) - /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) - /// Storage: `Broker::Regions` (r:1 w:1) - /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) - /// Storage: `Broker::Workplan` (r:1 w:1) - /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) - /// Storage: `Broker::InstaPoolIo` (r:2 w:2) - /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) - /// Storage: `Broker::InstaPoolContribution` (r:0 w:1) - /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`) + // Measured: `945` + // Estimated: `0` + // Minimum execution time: 59_583_000 picoseconds. + Weight::from_parts(61_750_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } fn pool() -> Weight { // Proof Size summary in bytes: // Measured: `802` - // Estimated: `5996` - // Minimum execution time: 41_629_000 picoseconds. - Weight::from_parts(43_178_000, 0) - .saturating_add(Weight::from_parts(0, 5996)) - .saturating_add(T::DbWeight::get().reads(5)) - .saturating_add(T::DbWeight::get().writes(5)) - } - /// Storage: `Broker::InstaPoolContribution` (r:1 w:1) - /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`) - /// Storage: `Broker::InstaPoolHistory` (r:3 w:1) - /// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`) - /// Storage: `System::Account` (r:2 w:2) - /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Estimated: `0` + // Minimum execution time: 46_164_000 picoseconds. + Weight::from_parts(48_467_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } /// The range of component `m` is `[1, 3]`. fn claim_revenue(m: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `671` - // Estimated: `6196 + m * (2520 ±0)` - // Minimum execution time: 71_315_000 picoseconds. - Weight::from_parts(72_531_865, 0) - .saturating_add(Weight::from_parts(0, 6196)) - // Standard Error: 46_998 - .saturating_add(Weight::from_parts(1_837_283, 0).saturating_mul(m.into())) - .saturating_add(T::DbWeight::get().reads(3)) - .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(m.into()))) - .saturating_add(T::DbWeight::get().writes(5)) - .saturating_add(Weight::from_parts(0, 2520).saturating_mul(m.into())) - } - /// Storage: `System::Account` (r:1 w:1) - /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) - /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) - /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) - /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Estimated: `0` + // Minimum execution time: 81_490_000 picoseconds. + Weight::from_parts(82_741_014, 0) + .saturating_add(Weight::from_parts(0, 0)) + // Standard Error: 66_697 + .saturating_add(Weight::from_parts(2_114_652, 0).saturating_mul(m.into())) + } fn purchase_credit() -> Weight { // Proof Size summary in bytes: - // Measured: `259` - // Estimated: `3724` - // Minimum execution time: 69_827_000 picoseconds. - Weight::from_parts(71_536_000, 0) - .saturating_add(Weight::from_parts(0, 3724)) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(2)) - } - /// Storage: `Broker::Status` (r:1 w:0) - /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) - /// Storage: `Broker::Regions` (r:1 w:1) - /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) + // Measured: `183` + // Estimated: `0` + // Minimum execution time: 87_859_000 picoseconds. + Weight::from_parts(90_027_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } fn drop_region() -> Weight { // Proof Size summary in bytes: // Measured: `466` - // Estimated: `3551` - // Minimum execution time: 48_292_000 picoseconds. - Weight::from_parts(68_226_000, 0) - .saturating_add(Weight::from_parts(0, 3551)) - .saturating_add(T::DbWeight::get().reads(2)) - .saturating_add(T::DbWeight::get().writes(1)) - } - /// Storage: `Broker::Configuration` (r:1 w:0) - /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) - /// Storage: `Broker::Status` (r:1 w:0) - /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) - /// Storage: `Broker::InstaPoolContribution` (r:1 w:1) - /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`) + // Estimated: `0` + // Minimum execution time: 44_626_000 picoseconds. + Weight::from_parts(47_745_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } fn drop_contribution() -> Weight { // Proof Size summary in bytes: // Measured: `463` - // Estimated: `3533` - // Minimum execution time: 92_377_000 picoseconds. - Weight::from_parts(136_256_000, 0) - .saturating_add(Weight::from_parts(0, 3533)) - .saturating_add(T::DbWeight::get().reads(3)) - .saturating_add(T::DbWeight::get().writes(1)) - } - /// Storage: `Broker::Configuration` (r:1 w:0) - /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) - /// Storage: `Broker::Status` (r:1 w:0) - /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) - /// Storage: `Broker::InstaPoolHistory` (r:1 w:1) - /// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`) - /// Storage: `System::Account` (r:1 w:0) - /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Estimated: `0` + // Minimum execution time: 61_670_000 picoseconds. + Weight::from_parts(68_093_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } fn drop_history() -> Weight { // Proof Size summary in bytes: // Measured: `979` - // Estimated: `3593` - // Minimum execution time: 111_597_000 picoseconds. - Weight::from_parts(128_005_000, 0) - .saturating_add(Weight::from_parts(0, 3593)) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(1)) - } - /// Storage: `Broker::Status` (r:1 w:0) - /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) - /// Storage: `Broker::PotentialRenewals` (r:1 w:1) - /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`) + // Estimated: `0` + // Minimum execution time: 77_776_000 picoseconds. + Weight::from_parts(83_105_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } fn drop_renewal() -> Weight { // Proof Size summary in bytes: // Measured: `556` - // Estimated: `4698` - // Minimum execution time: 47_734_000 picoseconds. - Weight::from_parts(55_112_000, 0) - .saturating_add(Weight::from_parts(0, 4698)) - .saturating_add(T::DbWeight::get().reads(2)) - .saturating_add(T::DbWeight::get().writes(1)) - } - /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) - /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) - /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Estimated: `0` + // Minimum execution time: 46_290_000 picoseconds. + Weight::from_parts(49_214_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } /// The range of component `n` is `[0, 1000]`. fn request_core_count(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `42` - // Estimated: `3507` - // Minimum execution time: 20_333_000 picoseconds. - Weight::from_parts(21_440_973, 0) - .saturating_add(Weight::from_parts(0, 3507)) - // Standard Error: 54 - .saturating_add(Weight::from_parts(49, 0).saturating_mul(n.into())) - .saturating_add(T::DbWeight::get().reads(3)) - .saturating_add(T::DbWeight::get().writes(1)) - } - /// Storage: `Broker::CoreCountInbox` (r:1 w:1) - /// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) + // Estimated: `0` + // Minimum execution time: 28_562_000 picoseconds. + Weight::from_parts(32_985_850, 0) + .saturating_add(Weight::from_parts(0, 0)) + // Standard Error: 127 + .saturating_add(Weight::from_parts(350, 0).saturating_mul(n.into())) + } /// The range of component `n` is `[0, 1000]`. fn process_core_count(_n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `266` - // Estimated: `1487` - // Minimum execution time: 7_821_000 picoseconds. - Weight::from_parts(8_450_013, 0) - .saturating_add(Weight::from_parts(0, 1487)) - .saturating_add(T::DbWeight::get().reads(1)) - .saturating_add(T::DbWeight::get().writes(1)) - } - /// Storage: `Broker::RevenueInbox` (r:1 w:1) - /// Proof: `Broker::RevenueInbox` (`max_values`: Some(1), `max_size`: Some(20), added: 515, mode: `MaxEncodedLen`) - /// Storage: `Broker::InstaPoolHistory` (r:1 w:1) - /// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`) - /// Storage: `System::Account` (r:2 w:2) - /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Estimated: `0` + // Minimum execution time: 9_194_000 picoseconds. + Weight::from_parts(9_926_916, 0) + .saturating_add(Weight::from_parts(0, 0)) + } fn process_revenue() -> Weight { // Proof Size summary in bytes: // Measured: `461` - // Estimated: `6196` - // Minimum execution time: 49_283_000 picoseconds. - Weight::from_parts(50_624_000, 0) - .saturating_add(Weight::from_parts(0, 6196)) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(4)) - } - /// Storage: `ParachainSystem::ValidationData` (r:1 w:0) - /// Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `Broker::InstaPoolIo` (r:3 w:3) - /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) - /// Storage: `Broker::Reservations` (r:1 w:0) - /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(12021), added: 12516, mode: `MaxEncodedLen`) - /// Storage: `Broker::Leases` (r:1 w:1) - /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(81), added: 576, mode: `MaxEncodedLen`) - /// Storage: `Broker::AutoRenewals` (r:1 w:1) - /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(201), added: 696, mode: `MaxEncodedLen`) - /// Storage: `Broker::Configuration` (r:1 w:0) - /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) - /// Storage: `Broker::Status` (r:1 w:0) - /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) - /// Storage: `Broker::PotentialRenewals` (r:20 w:40) - /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`) - /// Storage: `System::Account` (r:21 w:20) - /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) - /// Storage: `Broker::SaleInfo` (r:0 w:1) - /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`) - /// Storage: `Broker::Workplan` (r:0 w:1000) - /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) + // Estimated: `0` + // Minimum execution time: 65_438_000 picoseconds. + Weight::from_parts(69_989_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } /// The range of component `n` is `[0, 1000]`. fn rotate_sale(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `16480` - // Estimated: `69404 + n * (8 ±1)` - // Minimum execution time: 32_855_000 picoseconds. - Weight::from_parts(698_275_537, 0) - .saturating_add(Weight::from_parts(0, 69404)) - // Standard Error: 20_874 - .saturating_add(Weight::from_parts(1_398_903, 0).saturating_mul(n.into())) - .saturating_add(T::DbWeight::get().reads(44)) - .saturating_add(T::DbWeight::get().writes(57)) - .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into()))) - .saturating_add(Weight::from_parts(0, 8).saturating_mul(n.into())) - } - /// Storage: `Broker::InstaPoolIo` (r:1 w:0) - /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) - /// Storage: `Broker::InstaPoolHistory` (r:0 w:1) - /// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`) + // Measured: `16446` + // Estimated: `0` + // Minimum execution time: 38_884_000 picoseconds. + Weight::from_parts(987_044_732, 0) + .saturating_add(Weight::from_parts(0, 0)) + // Standard Error: 29_953 + .saturating_add(Weight::from_parts(1_916_795, 0).saturating_mul(n.into())) + } fn process_pool() -> Weight { // Proof Size summary in bytes: // Measured: `42` - // Estimated: `3493` - // Minimum execution time: 7_801_000 picoseconds. - Weight::from_parts(8_153_000, 0) - .saturating_add(Weight::from_parts(0, 3493)) - .saturating_add(T::DbWeight::get().reads(1)) - .saturating_add(T::DbWeight::get().writes(1)) - } - /// Storage: `Broker::Workplan` (r:1 w:1) - /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) - /// Storage: `Broker::Workload` (r:1 w:1) - /// Proof: `Broker::Workload` (`max_values`: None, `max_size`: Some(1212), added: 3687, mode: `MaxEncodedLen`) - /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) - /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) - /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Estimated: `0` + // Minimum execution time: 8_818_000 picoseconds. + Weight::from_parts(9_241_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } fn process_core_schedule() -> Weight { // Proof Size summary in bytes: // Measured: `1289` - // Estimated: `4754` - // Minimum execution time: 31_074_000 picoseconds. - Weight::from_parts(32_112_000, 0) - .saturating_add(Weight::from_parts(0, 4754)) - .saturating_add(T::DbWeight::get().reads(5)) - .saturating_add(T::DbWeight::get().writes(3)) - } - /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) - /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) - /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Estimated: `0` + // Minimum execution time: 44_412_000 picoseconds. + Weight::from_parts(47_628_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } fn request_revenue_info_at() -> Weight { // Proof Size summary in bytes: // Measured: `42` - // Estimated: `3507` - // Minimum execution time: 15_680_000 picoseconds. - Weight::from_parts(16_391_000, 0) - .saturating_add(Weight::from_parts(0, 3507)) - .saturating_add(T::DbWeight::get().reads(3)) - .saturating_add(T::DbWeight::get().writes(1)) - } - /// Storage: `Broker::CoreCountInbox` (r:0 w:1) - /// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) + // Estimated: `0` + // Minimum execution time: 23_250_000 picoseconds. + Weight::from_parts(23_925_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } fn notify_core_count() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_309_000 picoseconds. - Weight::from_parts(2_572_000, 0) + // Minimum execution time: 3_057_000 picoseconds. + Weight::from_parts(3_201_000, 0) .saturating_add(Weight::from_parts(0, 0)) - .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: `Broker::RevenueInbox` (r:0 w:1) - /// Proof: `Broker::RevenueInbox` (`max_values`: Some(1), `max_size`: Some(20), added: 515, mode: `MaxEncodedLen`) fn notify_revenue() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_524_000 picoseconds. - Weight::from_parts(2_678_000, 0) - .saturating_add(Weight::from_parts(0, 0)) - .saturating_add(T::DbWeight::get().writes(1)) - } - /// Storage: `Broker::Status` (r:1 w:1) - /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) - /// Storage: `Broker::Configuration` (r:1 w:0) - /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) - /// Storage: `Broker::CoreCountInbox` (r:1 w:0) - /// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) - /// Storage: `Broker::RevenueInbox` (r:1 w:0) - /// Proof: `Broker::RevenueInbox` (`max_values`: Some(1), `max_size`: Some(20), added: 515, mode: `MaxEncodedLen`) - /// Storage: `ParachainSystem::ValidationData` (r:1 w:0) - /// Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Minimum execution time: 3_275_000 picoseconds. + Weight::from_parts(3_385_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } fn do_tick_base() -> Weight { // Proof Size summary in bytes: - // Measured: `408` - // Estimated: `1893` - // Minimum execution time: 14_125_000 picoseconds. - Weight::from_parts(14_511_000, 0) - .saturating_add(Weight::from_parts(0, 1893)) - .saturating_add(T::DbWeight::get().reads(5)) - .saturating_add(T::DbWeight::get().writes(1)) - } - /// Storage: `Broker::SaleInfo` (r:1 w:0) - /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`) - /// Storage: `Broker::Reservations` (r:1 w:1) - /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(12021), added: 12516, mode: `MaxEncodedLen`) - /// Storage: `Broker::Status` (r:1 w:0) - /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) - /// Storage: `Broker::Workplan` (r:0 w:2) - /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) + // Measured: `374` + // Estimated: `0` + // Minimum execution time: 15_320_000 picoseconds. + Weight::from_parts(15_990_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } fn force_reserve() -> Weight { // Proof Size summary in bytes: - // Measured: `11141` - // Estimated: `13506` - // Minimum execution time: 41_171_000 picoseconds. - Weight::from_parts(42_826_000, 0) - .saturating_add(Weight::from_parts(0, 13506)) - .saturating_add(T::DbWeight::get().reads(3)) - .saturating_add(T::DbWeight::get().writes(3)) + // Measured: `11223` + // Estimated: `0` + // Minimum execution time: 53_815_000 picoseconds. + Weight::from_parts(54_860_000, 0) + .saturating_add(Weight::from_parts(0, 0)) } - /// Storage: `Broker::Leases` (r:1 w:1) - /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(81), added: 576, mode: `MaxEncodedLen`) fn swap_leases() -> Weight { // Proof Size summary in bytes: // Measured: `150` - // Estimated: `1566` - // Minimum execution time: 7_231_000 picoseconds. - Weight::from_parts(7_626_000, 0) - .saturating_add(Weight::from_parts(0, 1566)) - .saturating_add(T::DbWeight::get().reads(1)) - .saturating_add(T::DbWeight::get().writes(1)) - } - /// Storage: `Broker::SaleInfo` (r:1 w:1) - /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`) - /// Storage: `Broker::PotentialRenewals` (r:1 w:2) - /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`) - /// Storage: `Broker::Configuration` (r:1 w:0) - /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) - /// Storage: `Broker::Status` (r:1 w:0) - /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) - /// Storage: `System::Account` (r:2 w:1) - /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) - /// Storage: `ParachainSystem::ValidationData` (r:1 w:0) - /// Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `Broker::AutoRenewals` (r:1 w:1) - /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(201), added: 696, mode: `MaxEncodedLen`) - /// Storage: `Broker::Workplan` (r:0 w:1) - /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) + // Estimated: `0` + // Minimum execution time: 7_740_000 picoseconds. + Weight::from_parts(8_140_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } fn enable_auto_renew() -> Weight { // Proof Size summary in bytes: - // Measured: `1451` - // Estimated: `6196` - // Minimum execution time: 105_363_000 picoseconds. - Weight::from_parts(111_333_000, 0) - .saturating_add(Weight::from_parts(0, 6196)) - .saturating_add(T::DbWeight::get().reads(8)) - .saturating_add(T::DbWeight::get().writes(6)) + // Measured: `1417` + // Estimated: `0` + // Minimum execution time: 122_186_000 picoseconds. + Weight::from_parts(129_737_000, 0) + .saturating_add(Weight::from_parts(0, 0)) } - /// Storage: `Broker::AutoRenewals` (r:1 w:1) - /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(201), added: 696, mode: `MaxEncodedLen`) fn disable_auto_renew() -> Weight { // Proof Size summary in bytes: // Measured: `506` - // Estimated: `1686` - // Minimum execution time: 17_752_000 picoseconds. - Weight::from_parts(18_777_000, 0) - .saturating_add(Weight::from_parts(0, 1686)) - .saturating_add(T::DbWeight::get().reads(1)) - .saturating_add(T::DbWeight::get().writes(1)) - } - /// Storage: `System::Account` (r:1 w:0) - /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Estimated: `0` + // Minimum execution time: 21_206_000 picoseconds. + Weight::from_parts(21_522_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } fn on_new_timeslice() -> Weight { // Proof Size summary in bytes: - // Measured: `103` - // Estimated: `3593` - // Minimum execution time: 5_009_000 picoseconds. - Weight::from_parts(5_245_000, 0) - .saturating_add(Weight::from_parts(0, 3593)) - .saturating_add(T::DbWeight::get().reads(1)) + // Measured: `183` + // Estimated: `0` + // Minimum execution time: 74_109_000 picoseconds. + Weight::from_parts(76_613_000, 0) + .saturating_add(Weight::from_parts(0, 0)) } - /// Storage: `Broker::Workplan` (r:1 w:1) - /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) fn remove_assignment() -> Weight { // Proof Size summary in bytes: // Measured: `602` - // Estimated: `4681` - // Minimum execution time: 21_397_000 picoseconds. - Weight::from_parts(21_865_000, 0) - .saturating_add(Weight::from_parts(0, 4681)) - .saturating_add(T::DbWeight::get().reads(1)) - .saturating_add(T::DbWeight::get().writes(1)) + // Estimated: `0` + // Minimum execution time: 23_137_000 picoseconds. + Weight::from_parts(23_964_000, 0) + .saturating_add(Weight::from_parts(0, 0)) } fn force_transfer() -> Weight { - Weight::zero() + // Proof Size summary in bytes: + // Measured: `358` + // Estimated: `0` + // Minimum execution time: 22_758_000 picoseconds. + Weight::from_parts(23_502_000, 0) + .saturating_add(Weight::from_parts(0, 0)) } } diff --git a/substrate/frame/broker/src/weights.rs b/substrate/frame/broker/src/weights.rs index 01878b235d5dc..9432b1aa9fd6e 100644 --- a/substrate/frame/broker/src/weights.rs +++ b/substrate/frame/broker/src/weights.rs @@ -35,9 +35,9 @@ //! Autogenerated weights for `pallet_broker` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2026-01-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `4563561839a5`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` +//! HOSTNAME: `ad2969b35e68`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` //! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: `1024` // Executed Command: @@ -58,8 +58,7 @@ // --no-storage-info // --no-min-squares // --no-median-slopes -// --genesis-builder-policy=none -// --exclude-pallets=pallet_xcm,pallet_xcm_benchmarks::fungible,pallet_xcm_benchmarks::generic,pallet_nomination_pools,pallet_remark,pallet_transaction_storage,pallet_election_provider_multi_block,pallet_election_provider_multi_block::signed,pallet_election_provider_multi_block::unsigned,pallet_election_provider_multi_block::verifier +// --exclude-pallets=pallet_xcm,pallet_xcm_benchmarks::fungible,pallet_xcm_benchmarks::generic,pallet_nomination_pools,pallet_remark,pallet_transaction_storage #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] @@ -113,1002 +112,538 @@ pub trait WeightInfo { /// Weights for `pallet_broker` using the Substrate node and recommended hardware. pub struct SubstrateWeight(PhantomData); impl WeightInfo for SubstrateWeight { - /// Storage: `Broker::Configuration` (r:0 w:1) - /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) fn configure() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_989_000 picoseconds. - Weight::from_parts(2_154_000, 0) - .saturating_add(T::DbWeight::get().writes(1_u64)) + // Minimum execution time: 3_333_000 picoseconds. + Weight::from_parts(3_610_000, 0) } - /// Storage: `Broker::Reservations` (r:1 w:1) - /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`) fn reserve() -> Weight { // Proof Size summary in bytes: - // Measured: `4816` - // Estimated: `7496` - // Minimum execution time: 14_828_000 picoseconds. - Weight::from_parts(15_421_000, 7496) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)) + // Measured: `5016` + // Estimated: `0` + // Minimum execution time: 26_122_000 picoseconds. + Weight::from_parts(27_167_000, 0) } - /// Storage: `Broker::Reservations` (r:1 w:1) - /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`) fn unreserve() -> Weight { // Proof Size summary in bytes: - // Measured: `6018` - // Estimated: `7496` - // Minimum execution time: 14_330_000 picoseconds. - Weight::from_parts(14_621_000, 7496) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)) + // Measured: `6218` + // Estimated: `0` + // Minimum execution time: 24_871_000 picoseconds. + Weight::from_parts(25_676_000, 0) } - /// Storage: `Broker::Leases` (r:1 w:1) - /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`) fn set_lease() -> Weight { // Proof Size summary in bytes: - // Measured: `39` - // Estimated: `1526` - // Minimum execution time: 7_456_000 picoseconds. - Weight::from_parts(7_707_000, 1526) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)) + // Measured: `239` + // Estimated: `0` + // Minimum execution time: 16_384_000 picoseconds. + Weight::from_parts(17_178_000, 0) } - /// Storage: `Broker::Leases` (r:1 w:1) - /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`) fn remove_lease() -> Weight { // Proof Size summary in bytes: - // Measured: `47` - // Estimated: `1526` - // Minimum execution time: 7_047_000 picoseconds. - Weight::from_parts(7_339_000, 1526) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)) - } - /// Storage: `Broker::Configuration` (r:1 w:0) - /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) - /// Storage: `Broker::Leases` (r:1 w:1) - /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`) - /// Storage: `Broker::Reservations` (r:1 w:0) - /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`) - /// Storage: `Broker::InstaPoolIo` (r:3 w:3) - /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) - /// Storage: `Broker::AutoRenewals` (r:1 w:1) - /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(101), added: 596, mode: `MaxEncodedLen`) - /// Storage: `Broker::SaleInfo` (r:0 w:1) - /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`) - /// Storage: `Broker::Status` (r:0 w:1) - /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) - /// Storage: `Broker::Workplan` (r:0 w:10) - /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) + // Measured: `247` + // Estimated: `0` + // Minimum execution time: 15_587_000 picoseconds. + Weight::from_parts(16_296_000, 0) + } /// The range of component `n` is `[0, 1000]`. fn start_sales(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `6134` - // Estimated: `8499` - // Minimum execution time: 27_984_000 picoseconds. - Weight::from_parts(50_193_074, 8499) - // Standard Error: 487 - .saturating_add(Weight::from_parts(2_516, 0).saturating_mul(n.into())) - .saturating_add(T::DbWeight::get().reads(7_u64)) - .saturating_add(T::DbWeight::get().writes(16_u64)) - } - /// Storage: `Broker::Status` (r:1 w:0) - /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) - /// Storage: `Broker::SaleInfo` (r:1 w:1) - /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`) - /// Storage: `Broker::Regions` (r:0 w:1) - /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) + // Measured: `6330` + // Estimated: `0` + // Minimum execution time: 40_841_000 picoseconds. + Weight::from_parts(75_190_945, 0) + // Standard Error: 765 + .saturating_add(Weight::from_parts(3_965, 0).saturating_mul(n.into())) + } fn purchase() -> Weight { // Proof Size summary in bytes: - // Measured: `274` - // Estimated: `1542` - // Minimum execution time: 36_368_000 picoseconds. - Weight::from_parts(37_544_000, 1542) - .saturating_add(T::DbWeight::get().reads(2_u64)) - .saturating_add(T::DbWeight::get().writes(2_u64)) - } - /// Storage: `Broker::Configuration` (r:1 w:0) - /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) - /// Storage: `Broker::Status` (r:1 w:0) - /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) - /// Storage: `Broker::SaleInfo` (r:1 w:1) - /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`) - /// Storage: `Broker::PotentialRenewals` (r:1 w:2) - /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`) - /// Storage: `Broker::Workplan` (r:0 w:1) - /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) + // Measured: `470` + // Estimated: `0` + // Minimum execution time: 50_141_000 picoseconds. + Weight::from_parts(51_815_000, 0) + } fn renew() -> Weight { // Proof Size summary in bytes: - // Measured: `392` - // Estimated: `4698` - // Minimum execution time: 63_735_000 picoseconds. - Weight::from_parts(72_328_000, 4698) - .saturating_add(T::DbWeight::get().reads(4_u64)) - .saturating_add(T::DbWeight::get().writes(4_u64)) + // Measured: `588` + // Estimated: `0` + // Minimum execution time: 72_374_000 picoseconds. + Weight::from_parts(74_579_000, 0) } - /// Storage: `Broker::Regions` (r:1 w:1) - /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) fn transfer() -> Weight { // Proof Size summary in bytes: - // Measured: `300` - // Estimated: `3551` - // Minimum execution time: 15_308_000 picoseconds. - Weight::from_parts(16_395_000, 3551) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)) + // Measured: `496` + // Estimated: `0` + // Minimum execution time: 22_490_000 picoseconds. + Weight::from_parts(23_199_000, 0) } - /// Storage: `Broker::Regions` (r:1 w:2) - /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) fn partition() -> Weight { // Proof Size summary in bytes: - // Measured: `300` - // Estimated: `3551` - // Minimum execution time: 17_210_000 picoseconds. - Weight::from_parts(17_926_000, 3551) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(2_u64)) + // Measured: `684` + // Estimated: `0` + // Minimum execution time: 45_446_000 picoseconds. + Weight::from_parts(47_268_000, 0) } - /// Storage: `Broker::Regions` (r:1 w:3) - /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) fn interlace() -> Weight { // Proof Size summary in bytes: - // Measured: `300` - // Estimated: `3551` - // Minimum execution time: 18_489_000 picoseconds. - Weight::from_parts(19_209_000, 3551) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(3_u64)) - } - /// Storage: `Broker::Configuration` (r:1 w:0) - /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) - /// Storage: `Broker::Status` (r:1 w:0) - /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) - /// Storage: `Broker::Regions` (r:1 w:1) - /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) - /// Storage: `Broker::Workplan` (r:1 w:1) - /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) + // Measured: `684` + // Estimated: `0` + // Minimum execution time: 46_999_000 picoseconds. + Weight::from_parts(48_688_000, 0) + } fn assign() -> Weight { // Proof Size summary in bytes: - // Measured: `545` - // Estimated: `4681` - // Minimum execution time: 30_336_000 picoseconds. - Weight::from_parts(32_040_000, 4681) - .saturating_add(T::DbWeight::get().reads(4_u64)) - .saturating_add(T::DbWeight::get().writes(2_u64)) - } - /// Storage: `Broker::Status` (r:1 w:0) - /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) - /// Storage: `Broker::Regions` (r:1 w:1) - /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) - /// Storage: `Broker::Workplan` (r:1 w:1) - /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) - /// Storage: `Broker::InstaPoolIo` (r:2 w:2) - /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) - /// Storage: `Broker::InstaPoolContribution` (r:0 w:1) - /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`) + // Measured: `915` + // Estimated: `0` + // Minimum execution time: 58_435_000 picoseconds. + Weight::from_parts(60_151_000, 0) + } fn pool() -> Weight { // Proof Size summary in bytes: - // Measured: `580` - // Estimated: `5996` - // Minimum execution time: 37_417_000 picoseconds. - Weight::from_parts(39_629_000, 5996) - .saturating_add(T::DbWeight::get().reads(5_u64)) - .saturating_add(T::DbWeight::get().writes(5_u64)) - } - /// Storage: `Broker::InstaPoolContribution` (r:1 w:1) - /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`) - /// Storage: `Broker::InstaPoolHistory` (r:3 w:1) - /// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`) - /// Storage: `System::Account` (r:2 w:2) - /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Measured: `776` + // Estimated: `0` + // Minimum execution time: 45_019_000 picoseconds. + Weight::from_parts(46_560_000, 0) + } /// The range of component `m` is `[1, 3]`. fn claim_revenue(m: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `682` - // Estimated: `6196 + m * (2520 ±0)` - // Minimum execution time: 68_403_000 picoseconds. - Weight::from_parts(71_259_395, 6196) - // Standard Error: 70_171 - .saturating_add(Weight::from_parts(1_324_469, 0).saturating_mul(m.into())) - .saturating_add(T::DbWeight::get().reads(3_u64)) - .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(m.into()))) - .saturating_add(T::DbWeight::get().writes(5_u64)) - .saturating_add(Weight::from_parts(0, 2520).saturating_mul(m.into())) - } - /// Storage: `System::Account` (r:1 w:1) - /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Measured: `878` + // Estimated: `0` + // Minimum execution time: 85_300_000 picoseconds. + Weight::from_parts(86_359_776, 0) + // Standard Error: 65_197 + .saturating_add(Weight::from_parts(2_466_448, 0).saturating_mul(m.into())) + } fn purchase_credit() -> Weight { // Proof Size summary in bytes: // Measured: `103` - // Estimated: `3593` - // Minimum execution time: 43_427_000 picoseconds. - Weight::from_parts(46_449_000, 3593) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)) - } - /// Storage: `Broker::Status` (r:1 w:0) - /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) - /// Storage: `Broker::Regions` (r:1 w:1) - /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) + // Estimated: `0` + // Minimum execution time: 53_906_000 picoseconds. + Weight::from_parts(55_200_000, 0) + } fn drop_region() -> Weight { // Proof Size summary in bytes: - // Measured: `408` - // Estimated: `3551` - // Minimum execution time: 33_171_000 picoseconds. - Weight::from_parts(36_281_000, 3551) - .saturating_add(T::DbWeight::get().reads(2_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)) - } - /// Storage: `Broker::Configuration` (r:1 w:0) - /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) - /// Storage: `Broker::Status` (r:1 w:0) - /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) - /// Storage: `Broker::InstaPoolContribution` (r:1 w:1) - /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`) + // Measured: `604` + // Estimated: `0` + // Minimum execution time: 44_746_000 picoseconds. + Weight::from_parts(46_324_000, 0) + } fn drop_contribution() -> Weight { // Proof Size summary in bytes: - // Measured: `405` - // Estimated: `3533` - // Minimum execution time: 44_610_000 picoseconds. - Weight::from_parts(51_348_000, 3533) - .saturating_add(T::DbWeight::get().reads(3_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)) - } - /// Storage: `Broker::Configuration` (r:1 w:0) - /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) - /// Storage: `Broker::Status` (r:1 w:0) - /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) - /// Storage: `Broker::InstaPoolHistory` (r:1 w:1) - /// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`) - /// Storage: `System::Account` (r:1 w:0) - /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Measured: `601` + // Estimated: `0` + // Minimum execution time: 56_802_000 picoseconds. + Weight::from_parts(59_318_000, 0) + } fn drop_history() -> Weight { // Proof Size summary in bytes: - // Measured: `818` - // Estimated: `3593` - // Minimum execution time: 53_872_000 picoseconds. - Weight::from_parts(61_465_000, 3593) - .saturating_add(T::DbWeight::get().reads(4_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)) - } - /// Storage: `Broker::Status` (r:1 w:0) - /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) - /// Storage: `Broker::PotentialRenewals` (r:1 w:1) - /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`) + // Measured: `1117` + // Estimated: `0` + // Minimum execution time: 76_033_000 picoseconds. + Weight::from_parts(79_730_000, 0) + } fn drop_renewal() -> Weight { // Proof Size summary in bytes: - // Measured: `465` - // Estimated: `4698` - // Minimum execution time: 36_358_000 picoseconds. - Weight::from_parts(41_672_000, 4698) - .saturating_add(T::DbWeight::get().reads(2_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)) + // Measured: `661` + // Estimated: `0` + // Minimum execution time: 42_923_000 picoseconds. + Weight::from_parts(47_189_000, 0) } /// The range of component `n` is `[0, 1000]`. - fn request_core_count(_n: u32, ) -> Weight { + fn request_core_count(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_748_000 picoseconds. - Weight::from_parts(3_989_484, 0) + // Minimum execution time: 5_809_000 picoseconds. + Weight::from_parts(6_234_232, 0) + // Standard Error: 20 + .saturating_add(Weight::from_parts(83, 0).saturating_mul(n.into())) } - /// Storage: `Broker::CoreCountInbox` (r:1 w:1) - /// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) /// The range of component `n` is `[0, 1000]`. - fn process_core_count(n: u32, ) -> Weight { - // Proof Size summary in bytes: - // Measured: `208` - // Estimated: `1487` - // Minimum execution time: 5_733_000 picoseconds. - Weight::from_parts(6_067_265, 1487) - // Standard Error: 9 - .saturating_add(Weight::from_parts(16, 0).saturating_mul(n.into())) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)) - } - /// Storage: `Broker::RevenueInbox` (r:1 w:1) - /// Proof: `Broker::RevenueInbox` (`max_values`: Some(1), `max_size`: Some(20), added: 515, mode: `MaxEncodedLen`) - /// Storage: `Broker::InstaPoolHistory` (r:1 w:1) - /// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`) - /// Storage: `System::Account` (r:1 w:1) - /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + fn process_core_count(_n: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `404` + // Estimated: `0` + // Minimum execution time: 9_376_000 picoseconds. + Weight::from_parts(10_382_423, 0) + } fn process_revenue() -> Weight { // Proof Size summary in bytes: - // Measured: `471` - // Estimated: `3593` - // Minimum execution time: 38_503_000 picoseconds. - Weight::from_parts(39_956_000, 3593) - .saturating_add(T::DbWeight::get().reads(3_u64)) - .saturating_add(T::DbWeight::get().writes(3_u64)) - } - /// Storage: `Broker::InstaPoolIo` (r:3 w:3) - /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) - /// Storage: `Broker::Reservations` (r:1 w:0) - /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`) - /// Storage: `Broker::Leases` (r:1 w:1) - /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`) - /// Storage: `Broker::AutoRenewals` (r:1 w:1) - /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(101), added: 596, mode: `MaxEncodedLen`) - /// Storage: `Broker::Configuration` (r:1 w:0) - /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) - /// Storage: `Broker::Status` (r:1 w:0) - /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) - /// Storage: `Broker::PotentialRenewals` (r:10 w:20) - /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`) - /// Storage: `System::Account` (r:10 w:10) - /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) - /// Storage: `Broker::SaleInfo` (r:0 w:1) - /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`) - /// Storage: `Broker::Workplan` (r:0 w:1000) - /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) + // Measured: `667` + // Estimated: `0` + // Minimum execution time: 48_774_000 picoseconds. + Weight::from_parts(50_275_000, 0) + } /// The range of component `n` is `[0, 1000]`. fn rotate_sale(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `8126` - // Estimated: `38070` - // Minimum execution time: 21_763_000 picoseconds. - Weight::from_parts(325_729_398, 38070) - // Standard Error: 6_937 - .saturating_add(Weight::from_parts(1_323_585, 0).saturating_mul(n.into())) - .saturating_add(T::DbWeight::get().reads(26_u64)) - .saturating_add(T::DbWeight::get().writes(34_u64)) - .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into()))) - } - /// Storage: `Broker::InstaPoolIo` (r:1 w:0) - /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) - /// Storage: `Broker::InstaPoolHistory` (r:0 w:1) - /// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`) + // Measured: `8549` + // Estimated: `0` + // Minimum execution time: 33_697_000 picoseconds. + Weight::from_parts(442_982_586, 0) + // Standard Error: 9_638 + .saturating_add(Weight::from_parts(1_667_235, 0).saturating_mul(n.into())) + } fn process_pool() -> Weight { // Proof Size summary in bytes: - // Measured: `0` - // Estimated: `3493` - // Minimum execution time: 5_015_000 picoseconds. - Weight::from_parts(5_306_000, 3493) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)) - } - /// Storage: `Broker::Workplan` (r:1 w:1) - /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) - /// Storage: `Broker::Workload` (r:1 w:1) - /// Proof: `Broker::Workload` (`max_values`: None, `max_size`: Some(1212), added: 3687, mode: `MaxEncodedLen`) + // Measured: `180` + // Estimated: `0` + // Minimum execution time: 10_139_000 picoseconds. + Weight::from_parts(10_626_000, 0) + } fn process_core_schedule() -> Weight { // Proof Size summary in bytes: - // Measured: `1223` - // Estimated: `4681` - // Minimum execution time: 11_737_000 picoseconds. - Weight::from_parts(12_121_000, 4681) - .saturating_add(T::DbWeight::get().reads(2_u64)) - .saturating_add(T::DbWeight::get().writes(2_u64)) + // Measured: `1423` + // Estimated: `0` + // Minimum execution time: 22_134_000 picoseconds. + Weight::from_parts(23_518_000, 0) } fn request_revenue_info_at() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 130_000 picoseconds. - Weight::from_parts(184_000, 0) + // Minimum execution time: 193_000 picoseconds. + Weight::from_parts(219_000, 0) } - /// Storage: `Broker::CoreCountInbox` (r:0 w:1) - /// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) fn notify_core_count() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_823_000 picoseconds. - Weight::from_parts(1_907_000, 0) - .saturating_add(T::DbWeight::get().writes(1_u64)) + // Minimum execution time: 3_083_000 picoseconds. + Weight::from_parts(3_274_000, 0) } - /// Storage: `Broker::RevenueInbox` (r:0 w:1) - /// Proof: `Broker::RevenueInbox` (`max_values`: Some(1), `max_size`: Some(20), added: 515, mode: `MaxEncodedLen`) fn notify_revenue() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_986_000 picoseconds. - Weight::from_parts(2_067_000, 0) - .saturating_add(T::DbWeight::get().writes(1_u64)) - } - /// Storage: `Broker::Status` (r:1 w:1) - /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) - /// Storage: `Broker::Configuration` (r:1 w:0) - /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) - /// Storage: `Broker::CoreCountInbox` (r:1 w:0) - /// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) - /// Storage: `Broker::RevenueInbox` (r:1 w:0) - /// Proof: `Broker::RevenueInbox` (`max_values`: Some(1), `max_size`: Some(20), added: 515, mode: `MaxEncodedLen`) + // Minimum execution time: 3_273_000 picoseconds. + Weight::from_parts(3_475_000, 0) + } fn do_tick_base() -> Weight { // Proof Size summary in bytes: - // Measured: `245` - // Estimated: `1516` - // Minimum execution time: 10_211_000 picoseconds. - Weight::from_parts(10_652_000, 1516) - .saturating_add(T::DbWeight::get().reads(4_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)) - } - /// Storage: `Broker::SaleInfo` (r:1 w:0) - /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`) - /// Storage: `Broker::Reservations` (r:1 w:1) - /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`) - /// Storage: `Broker::Status` (r:1 w:0) - /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) - /// Storage: `Broker::Workplan` (r:0 w:2) - /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) + // Measured: `441` + // Estimated: `0` + // Minimum execution time: 17_111_000 picoseconds. + Weight::from_parts(18_014_000, 0) + } fn force_reserve() -> Weight { // Proof Size summary in bytes: - // Measured: `5073` - // Estimated: `7496` - // Minimum execution time: 27_298_000 picoseconds. - Weight::from_parts(28_072_000, 7496) - .saturating_add(T::DbWeight::get().reads(3_u64)) - .saturating_add(T::DbWeight::get().writes(3_u64)) + // Measured: `5320` + // Estimated: `0` + // Minimum execution time: 45_723_000 picoseconds. + Weight::from_parts(47_129_000, 0) } - /// Storage: `Broker::Leases` (r:1 w:1) - /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`) fn swap_leases() -> Weight { // Proof Size summary in bytes: - // Measured: `39` - // Estimated: `1526` - // Minimum execution time: 4_402_000 picoseconds. - Weight::from_parts(4_626_000, 1526) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)) - } - /// Storage: `Broker::SaleInfo` (r:1 w:1) - /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`) - /// Storage: `Broker::PotentialRenewals` (r:1 w:2) - /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`) - /// Storage: `Broker::Configuration` (r:1 w:0) - /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) - /// Storage: `Broker::Status` (r:1 w:0) - /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) - /// Storage: `System::Account` (r:1 w:1) - /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) - /// Storage: `Broker::AutoRenewals` (r:1 w:1) - /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(101), added: 596, mode: `MaxEncodedLen`) - /// Storage: `Broker::Workplan` (r:0 w:1) - /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) + // Measured: `239` + // Estimated: `0` + // Minimum execution time: 11_583_000 picoseconds. + Weight::from_parts(12_510_000, 0) + } fn enable_auto_renew() -> Weight { // Proof Size summary in bytes: - // Measured: `888` - // Estimated: `4698` - // Minimum execution time: 79_617_000 picoseconds. - Weight::from_parts(84_468_000, 4698) - .saturating_add(T::DbWeight::get().reads(6_u64)) - .saturating_add(T::DbWeight::get().writes(6_u64)) + // Measured: `1121` + // Estimated: `0` + // Minimum execution time: 95_813_000 picoseconds. + Weight::from_parts(97_314_000, 0) } - /// Storage: `Broker::AutoRenewals` (r:1 w:1) - /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(101), added: 596, mode: `MaxEncodedLen`) fn disable_auto_renew() -> Weight { // Proof Size summary in bytes: - // Measured: `382` - // Estimated: `1586` - // Minimum execution time: 14_582_000 picoseconds. - Weight::from_parts(15_206_000, 1586) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)) + // Measured: `578` + // Estimated: `0` + // Minimum execution time: 24_417_000 picoseconds. + Weight::from_parts(25_538_000, 0) } fn on_new_timeslice() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 227_000 picoseconds. - Weight::from_parts(251_000, 0) + // Minimum execution time: 311_000 picoseconds. + Weight::from_parts(364_000, 0) } - /// Storage: `Broker::Workplan` (r:1 w:1) - /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) fn remove_assignment() -> Weight { // Proof Size summary in bytes: - // Measured: `408` - // Estimated: `4681` - // Minimum execution time: 14_911_000 picoseconds. - Weight::from_parts(15_782_000, 4681) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)) + // Measured: `604` + // Estimated: `0` + // Minimum execution time: 21_082_000 picoseconds. + Weight::from_parts(22_367_000, 0) } fn force_transfer() -> Weight { - Weight::zero() + // Proof Size summary in bytes: + // Measured: `496` + // Estimated: `0` + // Minimum execution time: 22_033_000 picoseconds. + Weight::from_parts(22_996_000, 0) } } // For backwards compatibility and tests. impl WeightInfo for () { - /// Storage: `Broker::Configuration` (r:0 w:1) - /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) fn configure() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_989_000 picoseconds. - Weight::from_parts(2_154_000, 0) - .saturating_add(RocksDbWeight::get().writes(1_u64)) + // Minimum execution time: 3_333_000 picoseconds. + Weight::from_parts(3_610_000, 0) } - /// Storage: `Broker::Reservations` (r:1 w:1) - /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`) fn reserve() -> Weight { // Proof Size summary in bytes: - // Measured: `4816` - // Estimated: `7496` - // Minimum execution time: 14_828_000 picoseconds. - Weight::from_parts(15_421_000, 7496) - .saturating_add(RocksDbWeight::get().reads(1_u64)) - .saturating_add(RocksDbWeight::get().writes(1_u64)) + // Measured: `5016` + // Estimated: `0` + // Minimum execution time: 26_122_000 picoseconds. + Weight::from_parts(27_167_000, 0) } - /// Storage: `Broker::Reservations` (r:1 w:1) - /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`) fn unreserve() -> Weight { // Proof Size summary in bytes: - // Measured: `6018` - // Estimated: `7496` - // Minimum execution time: 14_330_000 picoseconds. - Weight::from_parts(14_621_000, 7496) - .saturating_add(RocksDbWeight::get().reads(1_u64)) - .saturating_add(RocksDbWeight::get().writes(1_u64)) + // Measured: `6218` + // Estimated: `0` + // Minimum execution time: 24_871_000 picoseconds. + Weight::from_parts(25_676_000, 0) } - /// Storage: `Broker::Leases` (r:1 w:1) - /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`) fn set_lease() -> Weight { // Proof Size summary in bytes: - // Measured: `39` - // Estimated: `1526` - // Minimum execution time: 7_456_000 picoseconds. - Weight::from_parts(7_707_000, 1526) - .saturating_add(RocksDbWeight::get().reads(1_u64)) - .saturating_add(RocksDbWeight::get().writes(1_u64)) + // Measured: `239` + // Estimated: `0` + // Minimum execution time: 16_384_000 picoseconds. + Weight::from_parts(17_178_000, 0) } - /// Storage: `Broker::Leases` (r:1 w:1) - /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`) fn remove_lease() -> Weight { // Proof Size summary in bytes: - // Measured: `47` - // Estimated: `1526` - // Minimum execution time: 7_047_000 picoseconds. - Weight::from_parts(7_339_000, 1526) - .saturating_add(RocksDbWeight::get().reads(1_u64)) - .saturating_add(RocksDbWeight::get().writes(1_u64)) - } - /// Storage: `Broker::Configuration` (r:1 w:0) - /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) - /// Storage: `Broker::Leases` (r:1 w:1) - /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`) - /// Storage: `Broker::Reservations` (r:1 w:0) - /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`) - /// Storage: `Broker::InstaPoolIo` (r:3 w:3) - /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) - /// Storage: `Broker::AutoRenewals` (r:1 w:1) - /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(101), added: 596, mode: `MaxEncodedLen`) - /// Storage: `Broker::SaleInfo` (r:0 w:1) - /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`) - /// Storage: `Broker::Status` (r:0 w:1) - /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) - /// Storage: `Broker::Workplan` (r:0 w:10) - /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) + // Measured: `247` + // Estimated: `0` + // Minimum execution time: 15_587_000 picoseconds. + Weight::from_parts(16_296_000, 0) + } /// The range of component `n` is `[0, 1000]`. fn start_sales(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `6134` - // Estimated: `8499` - // Minimum execution time: 27_984_000 picoseconds. - Weight::from_parts(50_193_074, 8499) - // Standard Error: 487 - .saturating_add(Weight::from_parts(2_516, 0).saturating_mul(n.into())) - .saturating_add(RocksDbWeight::get().reads(7_u64)) - .saturating_add(RocksDbWeight::get().writes(16_u64)) - } - /// Storage: `Broker::Status` (r:1 w:0) - /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) - /// Storage: `Broker::SaleInfo` (r:1 w:1) - /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`) - /// Storage: `Broker::Regions` (r:0 w:1) - /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) + // Measured: `6330` + // Estimated: `0` + // Minimum execution time: 40_841_000 picoseconds. + Weight::from_parts(75_190_945, 0) + // Standard Error: 765 + .saturating_add(Weight::from_parts(3_965, 0).saturating_mul(n.into())) + } fn purchase() -> Weight { // Proof Size summary in bytes: - // Measured: `274` - // Estimated: `1542` - // Minimum execution time: 36_368_000 picoseconds. - Weight::from_parts(37_544_000, 1542) - .saturating_add(RocksDbWeight::get().reads(2_u64)) - .saturating_add(RocksDbWeight::get().writes(2_u64)) - } - /// Storage: `Broker::Configuration` (r:1 w:0) - /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) - /// Storage: `Broker::Status` (r:1 w:0) - /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) - /// Storage: `Broker::SaleInfo` (r:1 w:1) - /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`) - /// Storage: `Broker::PotentialRenewals` (r:1 w:2) - /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`) - /// Storage: `Broker::Workplan` (r:0 w:1) - /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) + // Measured: `470` + // Estimated: `0` + // Minimum execution time: 50_141_000 picoseconds. + Weight::from_parts(51_815_000, 0) + } fn renew() -> Weight { // Proof Size summary in bytes: - // Measured: `392` - // Estimated: `4698` - // Minimum execution time: 63_735_000 picoseconds. - Weight::from_parts(72_328_000, 4698) - .saturating_add(RocksDbWeight::get().reads(4_u64)) - .saturating_add(RocksDbWeight::get().writes(4_u64)) + // Measured: `588` + // Estimated: `0` + // Minimum execution time: 72_374_000 picoseconds. + Weight::from_parts(74_579_000, 0) } - /// Storage: `Broker::Regions` (r:1 w:1) - /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) fn transfer() -> Weight { // Proof Size summary in bytes: - // Measured: `300` - // Estimated: `3551` - // Minimum execution time: 15_308_000 picoseconds. - Weight::from_parts(16_395_000, 3551) - .saturating_add(RocksDbWeight::get().reads(1_u64)) - .saturating_add(RocksDbWeight::get().writes(1_u64)) + // Measured: `496` + // Estimated: `0` + // Minimum execution time: 22_490_000 picoseconds. + Weight::from_parts(23_199_000, 0) } - /// Storage: `Broker::Regions` (r:1 w:2) - /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) fn partition() -> Weight { // Proof Size summary in bytes: - // Measured: `300` - // Estimated: `3551` - // Minimum execution time: 17_210_000 picoseconds. - Weight::from_parts(17_926_000, 3551) - .saturating_add(RocksDbWeight::get().reads(1_u64)) - .saturating_add(RocksDbWeight::get().writes(2_u64)) + // Measured: `684` + // Estimated: `0` + // Minimum execution time: 45_446_000 picoseconds. + Weight::from_parts(47_268_000, 0) } - /// Storage: `Broker::Regions` (r:1 w:3) - /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) fn interlace() -> Weight { // Proof Size summary in bytes: - // Measured: `300` - // Estimated: `3551` - // Minimum execution time: 18_489_000 picoseconds. - Weight::from_parts(19_209_000, 3551) - .saturating_add(RocksDbWeight::get().reads(1_u64)) - .saturating_add(RocksDbWeight::get().writes(3_u64)) - } - /// Storage: `Broker::Configuration` (r:1 w:0) - /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) - /// Storage: `Broker::Status` (r:1 w:0) - /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) - /// Storage: `Broker::Regions` (r:1 w:1) - /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) - /// Storage: `Broker::Workplan` (r:1 w:1) - /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) + // Measured: `684` + // Estimated: `0` + // Minimum execution time: 46_999_000 picoseconds. + Weight::from_parts(48_688_000, 0) + } fn assign() -> Weight { // Proof Size summary in bytes: - // Measured: `545` - // Estimated: `4681` - // Minimum execution time: 30_336_000 picoseconds. - Weight::from_parts(32_040_000, 4681) - .saturating_add(RocksDbWeight::get().reads(4_u64)) - .saturating_add(RocksDbWeight::get().writes(2_u64)) - } - /// Storage: `Broker::Status` (r:1 w:0) - /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) - /// Storage: `Broker::Regions` (r:1 w:1) - /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) - /// Storage: `Broker::Workplan` (r:1 w:1) - /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) - /// Storage: `Broker::InstaPoolIo` (r:2 w:2) - /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) - /// Storage: `Broker::InstaPoolContribution` (r:0 w:1) - /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`) + // Measured: `915` + // Estimated: `0` + // Minimum execution time: 58_435_000 picoseconds. + Weight::from_parts(60_151_000, 0) + } fn pool() -> Weight { // Proof Size summary in bytes: - // Measured: `580` - // Estimated: `5996` - // Minimum execution time: 37_417_000 picoseconds. - Weight::from_parts(39_629_000, 5996) - .saturating_add(RocksDbWeight::get().reads(5_u64)) - .saturating_add(RocksDbWeight::get().writes(5_u64)) - } - /// Storage: `Broker::InstaPoolContribution` (r:1 w:1) - /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`) - /// Storage: `Broker::InstaPoolHistory` (r:3 w:1) - /// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`) - /// Storage: `System::Account` (r:2 w:2) - /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Measured: `776` + // Estimated: `0` + // Minimum execution time: 45_019_000 picoseconds. + Weight::from_parts(46_560_000, 0) + } /// The range of component `m` is `[1, 3]`. fn claim_revenue(m: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `682` - // Estimated: `6196 + m * (2520 ±0)` - // Minimum execution time: 68_403_000 picoseconds. - Weight::from_parts(71_259_395, 6196) - // Standard Error: 70_171 - .saturating_add(Weight::from_parts(1_324_469, 0).saturating_mul(m.into())) - .saturating_add(RocksDbWeight::get().reads(3_u64)) - .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(m.into()))) - .saturating_add(RocksDbWeight::get().writes(5_u64)) - .saturating_add(Weight::from_parts(0, 2520).saturating_mul(m.into())) - } - /// Storage: `System::Account` (r:1 w:1) - /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Measured: `878` + // Estimated: `0` + // Minimum execution time: 85_300_000 picoseconds. + Weight::from_parts(86_359_776, 0) + // Standard Error: 65_197 + .saturating_add(Weight::from_parts(2_466_448, 0).saturating_mul(m.into())) + } fn purchase_credit() -> Weight { // Proof Size summary in bytes: // Measured: `103` - // Estimated: `3593` - // Minimum execution time: 43_427_000 picoseconds. - Weight::from_parts(46_449_000, 3593) - .saturating_add(RocksDbWeight::get().reads(1_u64)) - .saturating_add(RocksDbWeight::get().writes(1_u64)) - } - /// Storage: `Broker::Status` (r:1 w:0) - /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) - /// Storage: `Broker::Regions` (r:1 w:1) - /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) + // Estimated: `0` + // Minimum execution time: 53_906_000 picoseconds. + Weight::from_parts(55_200_000, 0) + } fn drop_region() -> Weight { // Proof Size summary in bytes: - // Measured: `408` - // Estimated: `3551` - // Minimum execution time: 33_171_000 picoseconds. - Weight::from_parts(36_281_000, 3551) - .saturating_add(RocksDbWeight::get().reads(2_u64)) - .saturating_add(RocksDbWeight::get().writes(1_u64)) - } - /// Storage: `Broker::Configuration` (r:1 w:0) - /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) - /// Storage: `Broker::Status` (r:1 w:0) - /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) - /// Storage: `Broker::InstaPoolContribution` (r:1 w:1) - /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`) + // Measured: `604` + // Estimated: `0` + // Minimum execution time: 44_746_000 picoseconds. + Weight::from_parts(46_324_000, 0) + } fn drop_contribution() -> Weight { // Proof Size summary in bytes: - // Measured: `405` - // Estimated: `3533` - // Minimum execution time: 44_610_000 picoseconds. - Weight::from_parts(51_348_000, 3533) - .saturating_add(RocksDbWeight::get().reads(3_u64)) - .saturating_add(RocksDbWeight::get().writes(1_u64)) - } - /// Storage: `Broker::Configuration` (r:1 w:0) - /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) - /// Storage: `Broker::Status` (r:1 w:0) - /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) - /// Storage: `Broker::InstaPoolHistory` (r:1 w:1) - /// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`) - /// Storage: `System::Account` (r:1 w:0) - /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Measured: `601` + // Estimated: `0` + // Minimum execution time: 56_802_000 picoseconds. + Weight::from_parts(59_318_000, 0) + } fn drop_history() -> Weight { // Proof Size summary in bytes: - // Measured: `818` - // Estimated: `3593` - // Minimum execution time: 53_872_000 picoseconds. - Weight::from_parts(61_465_000, 3593) - .saturating_add(RocksDbWeight::get().reads(4_u64)) - .saturating_add(RocksDbWeight::get().writes(1_u64)) - } - /// Storage: `Broker::Status` (r:1 w:0) - /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) - /// Storage: `Broker::PotentialRenewals` (r:1 w:1) - /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`) + // Measured: `1117` + // Estimated: `0` + // Minimum execution time: 76_033_000 picoseconds. + Weight::from_parts(79_730_000, 0) + } fn drop_renewal() -> Weight { // Proof Size summary in bytes: - // Measured: `465` - // Estimated: `4698` - // Minimum execution time: 36_358_000 picoseconds. - Weight::from_parts(41_672_000, 4698) - .saturating_add(RocksDbWeight::get().reads(2_u64)) - .saturating_add(RocksDbWeight::get().writes(1_u64)) + // Measured: `661` + // Estimated: `0` + // Minimum execution time: 42_923_000 picoseconds. + Weight::from_parts(47_189_000, 0) } /// The range of component `n` is `[0, 1000]`. - fn request_core_count(_n: u32, ) -> Weight { + fn request_core_count(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_748_000 picoseconds. - Weight::from_parts(3_989_484, 0) + // Minimum execution time: 5_809_000 picoseconds. + Weight::from_parts(6_234_232, 0) + // Standard Error: 20 + .saturating_add(Weight::from_parts(83, 0).saturating_mul(n.into())) } - /// Storage: `Broker::CoreCountInbox` (r:1 w:1) - /// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) /// The range of component `n` is `[0, 1000]`. - fn process_core_count(n: u32, ) -> Weight { - // Proof Size summary in bytes: - // Measured: `208` - // Estimated: `1487` - // Minimum execution time: 5_733_000 picoseconds. - Weight::from_parts(6_067_265, 1487) - // Standard Error: 9 - .saturating_add(Weight::from_parts(16, 0).saturating_mul(n.into())) - .saturating_add(RocksDbWeight::get().reads(1_u64)) - .saturating_add(RocksDbWeight::get().writes(1_u64)) - } - /// Storage: `Broker::RevenueInbox` (r:1 w:1) - /// Proof: `Broker::RevenueInbox` (`max_values`: Some(1), `max_size`: Some(20), added: 515, mode: `MaxEncodedLen`) - /// Storage: `Broker::InstaPoolHistory` (r:1 w:1) - /// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`) - /// Storage: `System::Account` (r:1 w:1) - /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + fn process_core_count(_n: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `404` + // Estimated: `0` + // Minimum execution time: 9_376_000 picoseconds. + Weight::from_parts(10_382_423, 0) + } fn process_revenue() -> Weight { // Proof Size summary in bytes: - // Measured: `471` - // Estimated: `3593` - // Minimum execution time: 38_503_000 picoseconds. - Weight::from_parts(39_956_000, 3593) - .saturating_add(RocksDbWeight::get().reads(3_u64)) - .saturating_add(RocksDbWeight::get().writes(3_u64)) - } - /// Storage: `Broker::InstaPoolIo` (r:3 w:3) - /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) - /// Storage: `Broker::Reservations` (r:1 w:0) - /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`) - /// Storage: `Broker::Leases` (r:1 w:1) - /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`) - /// Storage: `Broker::AutoRenewals` (r:1 w:1) - /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(101), added: 596, mode: `MaxEncodedLen`) - /// Storage: `Broker::Configuration` (r:1 w:0) - /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) - /// Storage: `Broker::Status` (r:1 w:0) - /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) - /// Storage: `Broker::PotentialRenewals` (r:10 w:20) - /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`) - /// Storage: `System::Account` (r:10 w:10) - /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) - /// Storage: `Broker::SaleInfo` (r:0 w:1) - /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`) - /// Storage: `Broker::Workplan` (r:0 w:1000) - /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) + // Measured: `667` + // Estimated: `0` + // Minimum execution time: 48_774_000 picoseconds. + Weight::from_parts(50_275_000, 0) + } /// The range of component `n` is `[0, 1000]`. fn rotate_sale(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `8126` - // Estimated: `38070` - // Minimum execution time: 21_763_000 picoseconds. - Weight::from_parts(325_729_398, 38070) - // Standard Error: 6_937 - .saturating_add(Weight::from_parts(1_323_585, 0).saturating_mul(n.into())) - .saturating_add(RocksDbWeight::get().reads(26_u64)) - .saturating_add(RocksDbWeight::get().writes(34_u64)) - .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(n.into()))) - } - /// Storage: `Broker::InstaPoolIo` (r:1 w:0) - /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) - /// Storage: `Broker::InstaPoolHistory` (r:0 w:1) - /// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`) + // Measured: `8549` + // Estimated: `0` + // Minimum execution time: 33_697_000 picoseconds. + Weight::from_parts(442_982_586, 0) + // Standard Error: 9_638 + .saturating_add(Weight::from_parts(1_667_235, 0).saturating_mul(n.into())) + } fn process_pool() -> Weight { // Proof Size summary in bytes: - // Measured: `0` - // Estimated: `3493` - // Minimum execution time: 5_015_000 picoseconds. - Weight::from_parts(5_306_000, 3493) - .saturating_add(RocksDbWeight::get().reads(1_u64)) - .saturating_add(RocksDbWeight::get().writes(1_u64)) - } - /// Storage: `Broker::Workplan` (r:1 w:1) - /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) - /// Storage: `Broker::Workload` (r:1 w:1) - /// Proof: `Broker::Workload` (`max_values`: None, `max_size`: Some(1212), added: 3687, mode: `MaxEncodedLen`) + // Measured: `180` + // Estimated: `0` + // Minimum execution time: 10_139_000 picoseconds. + Weight::from_parts(10_626_000, 0) + } fn process_core_schedule() -> Weight { // Proof Size summary in bytes: - // Measured: `1223` - // Estimated: `4681` - // Minimum execution time: 11_737_000 picoseconds. - Weight::from_parts(12_121_000, 4681) - .saturating_add(RocksDbWeight::get().reads(2_u64)) - .saturating_add(RocksDbWeight::get().writes(2_u64)) + // Measured: `1423` + // Estimated: `0` + // Minimum execution time: 22_134_000 picoseconds. + Weight::from_parts(23_518_000, 0) } fn request_revenue_info_at() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 130_000 picoseconds. - Weight::from_parts(184_000, 0) + // Minimum execution time: 193_000 picoseconds. + Weight::from_parts(219_000, 0) } - /// Storage: `Broker::CoreCountInbox` (r:0 w:1) - /// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) fn notify_core_count() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_823_000 picoseconds. - Weight::from_parts(1_907_000, 0) - .saturating_add(RocksDbWeight::get().writes(1_u64)) + // Minimum execution time: 3_083_000 picoseconds. + Weight::from_parts(3_274_000, 0) } - /// Storage: `Broker::RevenueInbox` (r:0 w:1) - /// Proof: `Broker::RevenueInbox` (`max_values`: Some(1), `max_size`: Some(20), added: 515, mode: `MaxEncodedLen`) fn notify_revenue() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_986_000 picoseconds. - Weight::from_parts(2_067_000, 0) - .saturating_add(RocksDbWeight::get().writes(1_u64)) - } - /// Storage: `Broker::Status` (r:1 w:1) - /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) - /// Storage: `Broker::Configuration` (r:1 w:0) - /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) - /// Storage: `Broker::CoreCountInbox` (r:1 w:0) - /// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) - /// Storage: `Broker::RevenueInbox` (r:1 w:0) - /// Proof: `Broker::RevenueInbox` (`max_values`: Some(1), `max_size`: Some(20), added: 515, mode: `MaxEncodedLen`) + // Minimum execution time: 3_273_000 picoseconds. + Weight::from_parts(3_475_000, 0) + } fn do_tick_base() -> Weight { // Proof Size summary in bytes: - // Measured: `245` - // Estimated: `1516` - // Minimum execution time: 10_211_000 picoseconds. - Weight::from_parts(10_652_000, 1516) - .saturating_add(RocksDbWeight::get().reads(4_u64)) - .saturating_add(RocksDbWeight::get().writes(1_u64)) - } - /// Storage: `Broker::SaleInfo` (r:1 w:0) - /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`) - /// Storage: `Broker::Reservations` (r:1 w:1) - /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`) - /// Storage: `Broker::Status` (r:1 w:0) - /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) - /// Storage: `Broker::Workplan` (r:0 w:2) - /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) + // Measured: `441` + // Estimated: `0` + // Minimum execution time: 17_111_000 picoseconds. + Weight::from_parts(18_014_000, 0) + } fn force_reserve() -> Weight { // Proof Size summary in bytes: - // Measured: `5073` - // Estimated: `7496` - // Minimum execution time: 27_298_000 picoseconds. - Weight::from_parts(28_072_000, 7496) - .saturating_add(RocksDbWeight::get().reads(3_u64)) - .saturating_add(RocksDbWeight::get().writes(3_u64)) + // Measured: `5320` + // Estimated: `0` + // Minimum execution time: 45_723_000 picoseconds. + Weight::from_parts(47_129_000, 0) } - /// Storage: `Broker::Leases` (r:1 w:1) - /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`) fn swap_leases() -> Weight { // Proof Size summary in bytes: - // Measured: `39` - // Estimated: `1526` - // Minimum execution time: 4_402_000 picoseconds. - Weight::from_parts(4_626_000, 1526) - .saturating_add(RocksDbWeight::get().reads(1_u64)) - .saturating_add(RocksDbWeight::get().writes(1_u64)) - } - /// Storage: `Broker::SaleInfo` (r:1 w:1) - /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`) - /// Storage: `Broker::PotentialRenewals` (r:1 w:2) - /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`) - /// Storage: `Broker::Configuration` (r:1 w:0) - /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) - /// Storage: `Broker::Status` (r:1 w:0) - /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) - /// Storage: `System::Account` (r:1 w:1) - /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) - /// Storage: `Broker::AutoRenewals` (r:1 w:1) - /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(101), added: 596, mode: `MaxEncodedLen`) - /// Storage: `Broker::Workplan` (r:0 w:1) - /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) + // Measured: `239` + // Estimated: `0` + // Minimum execution time: 11_583_000 picoseconds. + Weight::from_parts(12_510_000, 0) + } fn enable_auto_renew() -> Weight { // Proof Size summary in bytes: - // Measured: `888` - // Estimated: `4698` - // Minimum execution time: 79_617_000 picoseconds. - Weight::from_parts(84_468_000, 4698) - .saturating_add(RocksDbWeight::get().reads(6_u64)) - .saturating_add(RocksDbWeight::get().writes(6_u64)) + // Measured: `1121` + // Estimated: `0` + // Minimum execution time: 95_813_000 picoseconds. + Weight::from_parts(97_314_000, 0) } - /// Storage: `Broker::AutoRenewals` (r:1 w:1) - /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(101), added: 596, mode: `MaxEncodedLen`) fn disable_auto_renew() -> Weight { // Proof Size summary in bytes: - // Measured: `382` - // Estimated: `1586` - // Minimum execution time: 14_582_000 picoseconds. - Weight::from_parts(15_206_000, 1586) - .saturating_add(RocksDbWeight::get().reads(1_u64)) - .saturating_add(RocksDbWeight::get().writes(1_u64)) + // Measured: `578` + // Estimated: `0` + // Minimum execution time: 24_417_000 picoseconds. + Weight::from_parts(25_538_000, 0) } fn on_new_timeslice() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 227_000 picoseconds. - Weight::from_parts(251_000, 0) + // Minimum execution time: 311_000 picoseconds. + Weight::from_parts(364_000, 0) } - /// Storage: `Broker::Workplan` (r:1 w:1) - /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) fn remove_assignment() -> Weight { // Proof Size summary in bytes: - // Measured: `408` - // Estimated: `4681` - // Minimum execution time: 14_911_000 picoseconds. - Weight::from_parts(15_782_000, 4681) - .saturating_add(RocksDbWeight::get().reads(1_u64)) - .saturating_add(RocksDbWeight::get().writes(1_u64)) + // Measured: `604` + // Estimated: `0` + // Minimum execution time: 21_082_000 picoseconds. + Weight::from_parts(22_367_000, 0) } fn force_transfer() -> Weight { - Weight::zero() + // Proof Size summary in bytes: + // Measured: `496` + // Estimated: `0` + // Minimum execution time: 22_033_000 picoseconds. + Weight::from_parts(22_996_000, 0) } } From 358241632b20383b4878e53153f1065825cff958 Mon Sep 17 00:00:00 2001 From: mertwole Date: Thu, 22 Jan 2026 09:45:54 +0100 Subject: [PATCH 05/11] Undo weight changes except `force_transfer` --- .../src/weights/pallet_broker.rs | 665 +++++++--- substrate/frame/broker/src/weights.rs | 1103 ++++++++++++----- 2 files changed, 1269 insertions(+), 499 deletions(-) diff --git a/cumulus/parachains/runtimes/coretime/coretime-westend/src/weights/pallet_broker.rs b/cumulus/parachains/runtimes/coretime/coretime-westend/src/weights/pallet_broker.rs index cc362f324f15c..9c7deba8f184e 100644 --- a/cumulus/parachains/runtimes/coretime/coretime-westend/src/weights/pallet_broker.rs +++ b/cumulus/parachains/runtimes/coretime/coretime-westend/src/weights/pallet_broker.rs @@ -16,9 +16,9 @@ //! Autogenerated weights for `pallet_broker` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2026-01-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `ad2969b35e68`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` +//! HOSTNAME: `050e4dc4313a`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` //! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024 // Executed Command: @@ -50,298 +50,595 @@ use core::marker::PhantomData; /// Weight functions for `pallet_broker`. pub struct WeightInfo(PhantomData); impl pallet_broker::WeightInfo for WeightInfo { + /// Storage: `Broker::Configuration` (r:0 w:1) + /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) fn configure() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_388_000 picoseconds. - Weight::from_parts(3_624_000, 0) + // Minimum execution time: 2_566_000 picoseconds. + Weight::from_parts(2_786_000, 0) .saturating_add(Weight::from_parts(0, 0)) + .saturating_add(T::DbWeight::get().writes(1)) } + /// Storage: `Broker::Reservations` (r:1 w:1) + /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(12021), added: 12516, mode: `MaxEncodedLen`) fn reserve() -> Weight { // Proof Size summary in bytes: // Measured: `10888` - // Estimated: `0` - // Minimum execution time: 28_879_000 picoseconds. - Weight::from_parts(30_033_000, 0) - .saturating_add(Weight::from_parts(0, 0)) - } + // Estimated: `13506` + // Minimum execution time: 24_733_000 picoseconds. + Weight::from_parts(25_268_000, 0) + .saturating_add(Weight::from_parts(0, 13506)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `Broker::Reservations` (r:1 w:1) + /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(12021), added: 12516, mode: `MaxEncodedLen`) fn unreserve() -> Weight { // Proof Size summary in bytes: // Measured: `12090` - // Estimated: `0` - // Minimum execution time: 27_864_000 picoseconds. - Weight::from_parts(28_273_000, 0) - .saturating_add(Weight::from_parts(0, 0)) - } + // Estimated: `13506` + // Minimum execution time: 23_819_000 picoseconds. + Weight::from_parts(24_701_000, 0) + .saturating_add(Weight::from_parts(0, 13506)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `Broker::Leases` (r:1 w:1) + /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(81), added: 576, mode: `MaxEncodedLen`) + /// Storage: `ParachainSystem::ValidationData` (r:1 w:0) + /// Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::LastRelayChainBlockNumber` (r:1 w:0) + /// Proof: `ParachainSystem::LastRelayChainBlockNumber` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn set_lease() -> Weight { // Proof Size summary in bytes: // Measured: `146` - // Estimated: `0` - // Minimum execution time: 14_738_000 picoseconds. - Weight::from_parts(15_513_000, 0) - .saturating_add(Weight::from_parts(0, 0)) - } + // Estimated: `1631` + // Minimum execution time: 12_897_000 picoseconds. + Weight::from_parts(13_446_000, 0) + .saturating_add(Weight::from_parts(0, 1631)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `Broker::Leases` (r:1 w:1) + /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(81), added: 576, mode: `MaxEncodedLen`) fn remove_lease() -> Weight { // Proof Size summary in bytes: // Measured: `150` - // Estimated: `0` - // Minimum execution time: 11_628_000 picoseconds. - Weight::from_parts(12_177_000, 0) - .saturating_add(Weight::from_parts(0, 0)) - } + // Estimated: `1566` + // Minimum execution time: 10_319_000 picoseconds. + Weight::from_parts(10_718_000, 0) + .saturating_add(Weight::from_parts(0, 1566)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `Broker::Configuration` (r:1 w:0) + /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) + /// Storage: `Broker::Leases` (r:1 w:1) + /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(81), added: 576, mode: `MaxEncodedLen`) + /// Storage: `Broker::Reservations` (r:1 w:0) + /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(12021), added: 12516, mode: `MaxEncodedLen`) + /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) + /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) + /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::ValidationData` (r:1 w:0) + /// Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::LastRelayChainBlockNumber` (r:1 w:0) + /// Proof: `ParachainSystem::LastRelayChainBlockNumber` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Broker::InstaPoolIo` (r:3 w:3) + /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) + /// Storage: `Broker::AutoRenewals` (r:1 w:1) + /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(201), added: 696, mode: `MaxEncodedLen`) + /// Storage: `Broker::SaleInfo` (r:0 w:1) + /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`) + /// Storage: `Broker::Status` (r:0 w:1) + /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) + /// Storage: `Broker::Workplan` (r:0 w:20) + /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) /// The range of component `n` is `[0, 1000]`. fn start_sales(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `12247` - // Estimated: `0` - // Minimum execution time: 70_510_000 picoseconds. - Weight::from_parts(134_682_118, 0) - .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 1_439 - .saturating_add(Weight::from_parts(6_424, 0).saturating_mul(n.into())) - } + // Estimated: `14773 + n * (1 ±0)` + // Minimum execution time: 50_462_000 picoseconds. + Weight::from_parts(95_701_761, 0) + .saturating_add(Weight::from_parts(0, 14773)) + // Standard Error: 1_017 + .saturating_add(Weight::from_parts(4_668, 0).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().reads(12)) + .saturating_add(T::DbWeight::get().writes(26)) + .saturating_add(Weight::from_parts(0, 1).saturating_mul(n.into())) + } + /// Storage: `Broker::Status` (r:1 w:0) + /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) + /// Storage: `Broker::SaleInfo` (r:1 w:1) + /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`) + /// Storage: `ParachainSystem::ValidationData` (r:1 w:0) + /// Proof: `ParachainSystem::ValidationData` (`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: `Broker::Regions` (r:0 w:1) + /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) fn purchase() -> Weight { // Proof Size summary in bytes: - // Measured: `403` - // Estimated: `0` - // Minimum execution time: 73_129_000 picoseconds. - Weight::from_parts(75_263_000, 0) - .saturating_add(Weight::from_parts(0, 0)) - } + // Measured: `437` + // Estimated: `3593` + // Minimum execution time: 55_310_000 picoseconds. + Weight::from_parts(56_779_000, 0) + .saturating_add(Weight::from_parts(0, 3593)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(3)) + } + /// Storage: `Broker::Configuration` (r:1 w:0) + /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) + /// Storage: `Broker::Status` (r:1 w:0) + /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) + /// Storage: `Broker::SaleInfo` (r:1 w:1) + /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`) + /// Storage: `Broker::PotentialRenewals` (r:1 w:2) + /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:0) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `ParachainSystem::ValidationData` (r:1 w:0) + /// Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Broker::Workplan` (r:0 w:1) + /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) fn renew() -> Weight { // Proof Size summary in bytes: - // Measured: `624` - // Estimated: `0` - // Minimum execution time: 106_180_000 picoseconds. - Weight::from_parts(111_205_000, 0) - .saturating_add(Weight::from_parts(0, 0)) + // Measured: `658` + // Estimated: `4698` + // Minimum execution time: 96_952_000 picoseconds. + Weight::from_parts(103_889_000, 0) + .saturating_add(Weight::from_parts(0, 4698)) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(4)) } + /// Storage: `Broker::Regions` (r:1 w:1) + /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) fn transfer() -> Weight { // Proof Size summary in bytes: // Measured: `358` - // Estimated: `0` - // Minimum execution time: 23_529_000 picoseconds. - Weight::from_parts(24_388_000, 0) - .saturating_add(Weight::from_parts(0, 0)) - } + // Estimated: `3551` + // Minimum execution time: 20_830_000 picoseconds. + Weight::from_parts(21_754_000, 0) + .saturating_add(Weight::from_parts(0, 3551)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `Broker::Regions` (r:1 w:2) + /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) fn partition() -> Weight { // Proof Size summary in bytes: - // Measured: `577` - // Estimated: `0` - // Minimum execution time: 45_779_000 picoseconds. - Weight::from_parts(48_008_000, 0) - .saturating_add(Weight::from_parts(0, 0)) - } + // Measured: `358` + // Estimated: `3551` + // Minimum execution time: 22_556_000 picoseconds. + Weight::from_parts(23_385_000, 0) + .saturating_add(Weight::from_parts(0, 3551)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `Broker::Regions` (r:1 w:3) + /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) fn interlace() -> Weight { // Proof Size summary in bytes: - // Measured: `577` - // Estimated: `0` - // Minimum execution time: 47_456_000 picoseconds. - Weight::from_parts(49_976_000, 0) - .saturating_add(Weight::from_parts(0, 0)) - } + // Measured: `358` + // Estimated: `3551` + // Minimum execution time: 24_183_000 picoseconds. + Weight::from_parts(24_668_000, 0) + .saturating_add(Weight::from_parts(0, 3551)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(3)) + } + /// Storage: `Broker::Configuration` (r:1 w:0) + /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) + /// Storage: `Broker::Status` (r:1 w:0) + /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) + /// Storage: `Broker::Regions` (r:1 w:1) + /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) + /// Storage: `Broker::Workplan` (r:1 w:1) + /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) fn assign() -> Weight { // Proof Size summary in bytes: - // Measured: `945` - // Estimated: `0` - // Minimum execution time: 59_583_000 picoseconds. - Weight::from_parts(61_750_000, 0) - .saturating_add(Weight::from_parts(0, 0)) - } + // Measured: `736` + // Estimated: `4681` + // Minimum execution time: 35_180_000 picoseconds. + Weight::from_parts(36_474_000, 0) + .saturating_add(Weight::from_parts(0, 4681)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `Broker::Status` (r:1 w:0) + /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) + /// Storage: `Broker::Regions` (r:1 w:1) + /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) + /// Storage: `Broker::Workplan` (r:1 w:1) + /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) + /// Storage: `Broker::InstaPoolIo` (r:2 w:2) + /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) + /// Storage: `Broker::InstaPoolContribution` (r:0 w:1) + /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`) fn pool() -> Weight { // Proof Size summary in bytes: // Measured: `802` - // Estimated: `0` - // Minimum execution time: 46_164_000 picoseconds. - Weight::from_parts(48_467_000, 0) - .saturating_add(Weight::from_parts(0, 0)) - } + // Estimated: `5996` + // Minimum execution time: 41_629_000 picoseconds. + Weight::from_parts(43_178_000, 0) + .saturating_add(Weight::from_parts(0, 5996)) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(5)) + } + /// Storage: `Broker::InstaPoolContribution` (r:1 w:1) + /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`) + /// Storage: `Broker::InstaPoolHistory` (r:3 w:1) + /// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:2 w:2) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// The range of component `m` is `[1, 3]`. fn claim_revenue(m: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `671` - // Estimated: `0` - // Minimum execution time: 81_490_000 picoseconds. - Weight::from_parts(82_741_014, 0) - .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 66_697 - .saturating_add(Weight::from_parts(2_114_652, 0).saturating_mul(m.into())) - } + // Estimated: `6196 + m * (2520 ±0)` + // Minimum execution time: 71_315_000 picoseconds. + Weight::from_parts(72_531_865, 0) + .saturating_add(Weight::from_parts(0, 6196)) + // Standard Error: 46_998 + .saturating_add(Weight::from_parts(1_837_283, 0).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(m.into()))) + .saturating_add(T::DbWeight::get().writes(5)) + .saturating_add(Weight::from_parts(0, 2520).saturating_mul(m.into())) + } + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) + /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) + /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn purchase_credit() -> Weight { // Proof Size summary in bytes: - // Measured: `183` - // Estimated: `0` - // Minimum execution time: 87_859_000 picoseconds. - Weight::from_parts(90_027_000, 0) - .saturating_add(Weight::from_parts(0, 0)) - } + // Measured: `259` + // Estimated: `3724` + // Minimum execution time: 69_827_000 picoseconds. + Weight::from_parts(71_536_000, 0) + .saturating_add(Weight::from_parts(0, 3724)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `Broker::Status` (r:1 w:0) + /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) + /// Storage: `Broker::Regions` (r:1 w:1) + /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) fn drop_region() -> Weight { // Proof Size summary in bytes: // Measured: `466` - // Estimated: `0` - // Minimum execution time: 44_626_000 picoseconds. - Weight::from_parts(47_745_000, 0) - .saturating_add(Weight::from_parts(0, 0)) - } + // Estimated: `3551` + // Minimum execution time: 48_292_000 picoseconds. + Weight::from_parts(68_226_000, 0) + .saturating_add(Weight::from_parts(0, 3551)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `Broker::Configuration` (r:1 w:0) + /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) + /// Storage: `Broker::Status` (r:1 w:0) + /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) + /// Storage: `Broker::InstaPoolContribution` (r:1 w:1) + /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`) fn drop_contribution() -> Weight { // Proof Size summary in bytes: // Measured: `463` - // Estimated: `0` - // Minimum execution time: 61_670_000 picoseconds. - Weight::from_parts(68_093_000, 0) - .saturating_add(Weight::from_parts(0, 0)) - } + // Estimated: `3533` + // Minimum execution time: 92_377_000 picoseconds. + Weight::from_parts(136_256_000, 0) + .saturating_add(Weight::from_parts(0, 3533)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `Broker::Configuration` (r:1 w:0) + /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) + /// Storage: `Broker::Status` (r:1 w:0) + /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) + /// Storage: `Broker::InstaPoolHistory` (r:1 w:1) + /// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:0) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn drop_history() -> Weight { // Proof Size summary in bytes: // Measured: `979` - // Estimated: `0` - // Minimum execution time: 77_776_000 picoseconds. - Weight::from_parts(83_105_000, 0) - .saturating_add(Weight::from_parts(0, 0)) - } + // Estimated: `3593` + // Minimum execution time: 111_597_000 picoseconds. + Weight::from_parts(128_005_000, 0) + .saturating_add(Weight::from_parts(0, 3593)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `Broker::Status` (r:1 w:0) + /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) + /// Storage: `Broker::PotentialRenewals` (r:1 w:1) + /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`) fn drop_renewal() -> Weight { // Proof Size summary in bytes: // Measured: `556` - // Estimated: `0` - // Minimum execution time: 46_290_000 picoseconds. - Weight::from_parts(49_214_000, 0) - .saturating_add(Weight::from_parts(0, 0)) - } + // Estimated: `4698` + // Minimum execution time: 47_734_000 picoseconds. + Weight::from_parts(55_112_000, 0) + .saturating_add(Weight::from_parts(0, 4698)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) + /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) + /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// The range of component `n` is `[0, 1000]`. fn request_core_count(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `42` - // Estimated: `0` - // Minimum execution time: 28_562_000 picoseconds. - Weight::from_parts(32_985_850, 0) - .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 127 - .saturating_add(Weight::from_parts(350, 0).saturating_mul(n.into())) - } + // Estimated: `3507` + // Minimum execution time: 20_333_000 picoseconds. + Weight::from_parts(21_440_973, 0) + .saturating_add(Weight::from_parts(0, 3507)) + // Standard Error: 54 + .saturating_add(Weight::from_parts(49, 0).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `Broker::CoreCountInbox` (r:1 w:1) + /// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) /// The range of component `n` is `[0, 1000]`. fn process_core_count(_n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `266` - // Estimated: `0` - // Minimum execution time: 9_194_000 picoseconds. - Weight::from_parts(9_926_916, 0) - .saturating_add(Weight::from_parts(0, 0)) - } + // Estimated: `1487` + // Minimum execution time: 7_821_000 picoseconds. + Weight::from_parts(8_450_013, 0) + .saturating_add(Weight::from_parts(0, 1487)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `Broker::RevenueInbox` (r:1 w:1) + /// Proof: `Broker::RevenueInbox` (`max_values`: Some(1), `max_size`: Some(20), added: 515, mode: `MaxEncodedLen`) + /// Storage: `Broker::InstaPoolHistory` (r:1 w:1) + /// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:2 w:2) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn process_revenue() -> Weight { // Proof Size summary in bytes: // Measured: `461` - // Estimated: `0` - // Minimum execution time: 65_438_000 picoseconds. - Weight::from_parts(69_989_000, 0) - .saturating_add(Weight::from_parts(0, 0)) - } + // Estimated: `6196` + // Minimum execution time: 49_283_000 picoseconds. + Weight::from_parts(50_624_000, 0) + .saturating_add(Weight::from_parts(0, 6196)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `ParachainSystem::ValidationData` (r:1 w:0) + /// Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Broker::InstaPoolIo` (r:3 w:3) + /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) + /// Storage: `Broker::Reservations` (r:1 w:0) + /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(12021), added: 12516, mode: `MaxEncodedLen`) + /// Storage: `Broker::Leases` (r:1 w:1) + /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(81), added: 576, mode: `MaxEncodedLen`) + /// Storage: `Broker::AutoRenewals` (r:1 w:1) + /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(201), added: 696, mode: `MaxEncodedLen`) + /// Storage: `Broker::Configuration` (r:1 w:0) + /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) + /// Storage: `Broker::Status` (r:1 w:0) + /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) + /// Storage: `Broker::PotentialRenewals` (r:20 w:40) + /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:21 w:20) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `Broker::SaleInfo` (r:0 w:1) + /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`) + /// Storage: `Broker::Workplan` (r:0 w:1000) + /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) /// The range of component `n` is `[0, 1000]`. fn rotate_sale(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `16446` - // Estimated: `0` - // Minimum execution time: 38_884_000 picoseconds. - Weight::from_parts(987_044_732, 0) - .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 29_953 - .saturating_add(Weight::from_parts(1_916_795, 0).saturating_mul(n.into())) - } + // Measured: `16480` + // Estimated: `69404 + n * (8 ±1)` + // Minimum execution time: 32_855_000 picoseconds. + Weight::from_parts(698_275_537, 0) + .saturating_add(Weight::from_parts(0, 69404)) + // Standard Error: 20_874 + .saturating_add(Weight::from_parts(1_398_903, 0).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().reads(44)) + .saturating_add(T::DbWeight::get().writes(57)) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into()))) + .saturating_add(Weight::from_parts(0, 8).saturating_mul(n.into())) + } + /// Storage: `Broker::InstaPoolIo` (r:1 w:0) + /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) + /// Storage: `Broker::InstaPoolHistory` (r:0 w:1) + /// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`) fn process_pool() -> Weight { // Proof Size summary in bytes: // Measured: `42` - // Estimated: `0` - // Minimum execution time: 8_818_000 picoseconds. - Weight::from_parts(9_241_000, 0) - .saturating_add(Weight::from_parts(0, 0)) - } + // Estimated: `3493` + // Minimum execution time: 7_801_000 picoseconds. + Weight::from_parts(8_153_000, 0) + .saturating_add(Weight::from_parts(0, 3493)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `Broker::Workplan` (r:1 w:1) + /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) + /// Storage: `Broker::Workload` (r:1 w:1) + /// Proof: `Broker::Workload` (`max_values`: None, `max_size`: Some(1212), added: 3687, mode: `MaxEncodedLen`) + /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) + /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) + /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn process_core_schedule() -> Weight { // Proof Size summary in bytes: // Measured: `1289` - // Estimated: `0` - // Minimum execution time: 44_412_000 picoseconds. - Weight::from_parts(47_628_000, 0) - .saturating_add(Weight::from_parts(0, 0)) - } + // Estimated: `4754` + // Minimum execution time: 31_074_000 picoseconds. + Weight::from_parts(32_112_000, 0) + .saturating_add(Weight::from_parts(0, 4754)) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(3)) + } + /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) + /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) + /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn request_revenue_info_at() -> Weight { // Proof Size summary in bytes: // Measured: `42` - // Estimated: `0` - // Minimum execution time: 23_250_000 picoseconds. - Weight::from_parts(23_925_000, 0) - .saturating_add(Weight::from_parts(0, 0)) - } + // Estimated: `3507` + // Minimum execution time: 15_680_000 picoseconds. + Weight::from_parts(16_391_000, 0) + .saturating_add(Weight::from_parts(0, 3507)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `Broker::CoreCountInbox` (r:0 w:1) + /// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) fn notify_core_count() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_057_000 picoseconds. - Weight::from_parts(3_201_000, 0) + // Minimum execution time: 2_309_000 picoseconds. + Weight::from_parts(2_572_000, 0) .saturating_add(Weight::from_parts(0, 0)) + .saturating_add(T::DbWeight::get().writes(1)) } + /// Storage: `Broker::RevenueInbox` (r:0 w:1) + /// Proof: `Broker::RevenueInbox` (`max_values`: Some(1), `max_size`: Some(20), added: 515, mode: `MaxEncodedLen`) fn notify_revenue() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_275_000 picoseconds. - Weight::from_parts(3_385_000, 0) - .saturating_add(Weight::from_parts(0, 0)) - } + // Minimum execution time: 2_524_000 picoseconds. + Weight::from_parts(2_678_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `Broker::Status` (r:1 w:1) + /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) + /// Storage: `Broker::Configuration` (r:1 w:0) + /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) + /// Storage: `Broker::CoreCountInbox` (r:1 w:0) + /// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) + /// Storage: `Broker::RevenueInbox` (r:1 w:0) + /// Proof: `Broker::RevenueInbox` (`max_values`: Some(1), `max_size`: Some(20), added: 515, mode: `MaxEncodedLen`) + /// Storage: `ParachainSystem::ValidationData` (r:1 w:0) + /// Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn do_tick_base() -> Weight { // Proof Size summary in bytes: - // Measured: `374` - // Estimated: `0` - // Minimum execution time: 15_320_000 picoseconds. - Weight::from_parts(15_990_000, 0) - .saturating_add(Weight::from_parts(0, 0)) - } + // Measured: `408` + // Estimated: `1893` + // Minimum execution time: 14_125_000 picoseconds. + Weight::from_parts(14_511_000, 0) + .saturating_add(Weight::from_parts(0, 1893)) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `Broker::SaleInfo` (r:1 w:0) + /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`) + /// Storage: `Broker::Reservations` (r:1 w:1) + /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(12021), added: 12516, mode: `MaxEncodedLen`) + /// Storage: `Broker::Status` (r:1 w:0) + /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) + /// Storage: `Broker::Workplan` (r:0 w:2) + /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) fn force_reserve() -> Weight { // Proof Size summary in bytes: - // Measured: `11223` - // Estimated: `0` - // Minimum execution time: 53_815_000 picoseconds. - Weight::from_parts(54_860_000, 0) - .saturating_add(Weight::from_parts(0, 0)) + // Measured: `11141` + // Estimated: `13506` + // Minimum execution time: 41_171_000 picoseconds. + Weight::from_parts(42_826_000, 0) + .saturating_add(Weight::from_parts(0, 13506)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(3)) } + /// Storage: `Broker::Leases` (r:1 w:1) + /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(81), added: 576, mode: `MaxEncodedLen`) fn swap_leases() -> Weight { // Proof Size summary in bytes: // Measured: `150` - // Estimated: `0` - // Minimum execution time: 7_740_000 picoseconds. - Weight::from_parts(8_140_000, 0) - .saturating_add(Weight::from_parts(0, 0)) - } + // Estimated: `1566` + // Minimum execution time: 7_231_000 picoseconds. + Weight::from_parts(7_626_000, 0) + .saturating_add(Weight::from_parts(0, 1566)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `Broker::SaleInfo` (r:1 w:1) + /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`) + /// Storage: `Broker::PotentialRenewals` (r:1 w:2) + /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`) + /// Storage: `Broker::Configuration` (r:1 w:0) + /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) + /// Storage: `Broker::Status` (r:1 w:0) + /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:2 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `ParachainSystem::ValidationData` (r:1 w:0) + /// Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Broker::AutoRenewals` (r:1 w:1) + /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(201), added: 696, mode: `MaxEncodedLen`) + /// Storage: `Broker::Workplan` (r:0 w:1) + /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) fn enable_auto_renew() -> Weight { // Proof Size summary in bytes: - // Measured: `1417` - // Estimated: `0` - // Minimum execution time: 122_186_000 picoseconds. - Weight::from_parts(129_737_000, 0) - .saturating_add(Weight::from_parts(0, 0)) + // Measured: `1451` + // Estimated: `6196` + // Minimum execution time: 105_363_000 picoseconds. + Weight::from_parts(111_333_000, 0) + .saturating_add(Weight::from_parts(0, 6196)) + .saturating_add(T::DbWeight::get().reads(8)) + .saturating_add(T::DbWeight::get().writes(6)) } + /// Storage: `Broker::AutoRenewals` (r:1 w:1) + /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(201), added: 696, mode: `MaxEncodedLen`) fn disable_auto_renew() -> Weight { // Proof Size summary in bytes: // Measured: `506` - // Estimated: `0` - // Minimum execution time: 21_206_000 picoseconds. - Weight::from_parts(21_522_000, 0) - .saturating_add(Weight::from_parts(0, 0)) - } + // Estimated: `1686` + // Minimum execution time: 17_752_000 picoseconds. + Weight::from_parts(18_777_000, 0) + .saturating_add(Weight::from_parts(0, 1686)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `System::Account` (r:1 w:0) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn on_new_timeslice() -> Weight { // Proof Size summary in bytes: - // Measured: `183` - // Estimated: `0` - // Minimum execution time: 74_109_000 picoseconds. - Weight::from_parts(76_613_000, 0) - .saturating_add(Weight::from_parts(0, 0)) + // Measured: `103` + // Estimated: `3593` + // Minimum execution time: 5_009_000 picoseconds. + Weight::from_parts(5_245_000, 0) + .saturating_add(Weight::from_parts(0, 3593)) + .saturating_add(T::DbWeight::get().reads(1)) } + /// Storage: `Broker::Workplan` (r:1 w:1) + /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) fn remove_assignment() -> Weight { // Proof Size summary in bytes: // Measured: `602` - // Estimated: `0` - // Minimum execution time: 23_137_000 picoseconds. - Weight::from_parts(23_964_000, 0) - .saturating_add(Weight::from_parts(0, 0)) + // Estimated: `4681` + // Minimum execution time: 21_397_000 picoseconds. + Weight::from_parts(21_865_000, 0) + .saturating_add(Weight::from_parts(0, 4681)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) } fn force_transfer() -> Weight { // Proof Size summary in bytes: diff --git a/substrate/frame/broker/src/weights.rs b/substrate/frame/broker/src/weights.rs index 9432b1aa9fd6e..a180b0e81df51 100644 --- a/substrate/frame/broker/src/weights.rs +++ b/substrate/frame/broker/src/weights.rs @@ -35,9 +35,9 @@ //! Autogenerated weights for `pallet_broker` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2026-01-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `ad2969b35e68`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` +//! HOSTNAME: `4563561839a5`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` //! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: `1024` // Executed Command: @@ -58,7 +58,8 @@ // --no-storage-info // --no-min-squares // --no-median-slopes -// --exclude-pallets=pallet_xcm,pallet_xcm_benchmarks::fungible,pallet_xcm_benchmarks::generic,pallet_nomination_pools,pallet_remark,pallet_transaction_storage +// --genesis-builder-policy=none +// --exclude-pallets=pallet_xcm,pallet_xcm_benchmarks::fungible,pallet_xcm_benchmarks::generic,pallet_nomination_pools,pallet_remark,pallet_transaction_storage,pallet_election_provider_multi_block,pallet_election_provider_multi_block::signed,pallet_election_provider_multi_block::unsigned,pallet_election_provider_multi_block::verifier #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] @@ -112,263 +113,499 @@ pub trait WeightInfo { /// Weights for `pallet_broker` using the Substrate node and recommended hardware. pub struct SubstrateWeight(PhantomData); impl WeightInfo for SubstrateWeight { + /// Storage: `Broker::Configuration` (r:0 w:1) + /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) fn configure() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_333_000 picoseconds. - Weight::from_parts(3_610_000, 0) + // Minimum execution time: 1_989_000 picoseconds. + Weight::from_parts(2_154_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) } + /// Storage: `Broker::Reservations` (r:1 w:1) + /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`) fn reserve() -> Weight { // Proof Size summary in bytes: - // Measured: `5016` - // Estimated: `0` - // Minimum execution time: 26_122_000 picoseconds. - Weight::from_parts(27_167_000, 0) + // Measured: `4816` + // Estimated: `7496` + // Minimum execution time: 14_828_000 picoseconds. + Weight::from_parts(15_421_000, 7496) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) } + /// Storage: `Broker::Reservations` (r:1 w:1) + /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`) fn unreserve() -> Weight { // Proof Size summary in bytes: - // Measured: `6218` - // Estimated: `0` - // Minimum execution time: 24_871_000 picoseconds. - Weight::from_parts(25_676_000, 0) + // Measured: `6018` + // Estimated: `7496` + // Minimum execution time: 14_330_000 picoseconds. + Weight::from_parts(14_621_000, 7496) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) } + /// Storage: `Broker::Leases` (r:1 w:1) + /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`) fn set_lease() -> Weight { // Proof Size summary in bytes: - // Measured: `239` - // Estimated: `0` - // Minimum execution time: 16_384_000 picoseconds. - Weight::from_parts(17_178_000, 0) + // Measured: `39` + // Estimated: `1526` + // Minimum execution time: 7_456_000 picoseconds. + Weight::from_parts(7_707_000, 1526) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) } + /// Storage: `Broker::Leases` (r:1 w:1) + /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`) fn remove_lease() -> Weight { // Proof Size summary in bytes: - // Measured: `247` - // Estimated: `0` - // Minimum execution time: 15_587_000 picoseconds. - Weight::from_parts(16_296_000, 0) - } + // Measured: `47` + // Estimated: `1526` + // Minimum execution time: 7_047_000 picoseconds. + Weight::from_parts(7_339_000, 1526) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: `Broker::Configuration` (r:1 w:0) + /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) + /// Storage: `Broker::Leases` (r:1 w:1) + /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`) + /// Storage: `Broker::Reservations` (r:1 w:0) + /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`) + /// Storage: `Broker::InstaPoolIo` (r:3 w:3) + /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) + /// Storage: `Broker::AutoRenewals` (r:1 w:1) + /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(101), added: 596, mode: `MaxEncodedLen`) + /// Storage: `Broker::SaleInfo` (r:0 w:1) + /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`) + /// Storage: `Broker::Status` (r:0 w:1) + /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) + /// Storage: `Broker::Workplan` (r:0 w:10) + /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) /// The range of component `n` is `[0, 1000]`. fn start_sales(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `6330` - // Estimated: `0` - // Minimum execution time: 40_841_000 picoseconds. - Weight::from_parts(75_190_945, 0) - // Standard Error: 765 - .saturating_add(Weight::from_parts(3_965, 0).saturating_mul(n.into())) - } + // Measured: `6134` + // Estimated: `8499` + // Minimum execution time: 27_984_000 picoseconds. + Weight::from_parts(50_193_074, 8499) + // Standard Error: 487 + .saturating_add(Weight::from_parts(2_516, 0).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().reads(7_u64)) + .saturating_add(T::DbWeight::get().writes(16_u64)) + } + /// Storage: `Broker::Status` (r:1 w:0) + /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) + /// Storage: `Broker::SaleInfo` (r:1 w:1) + /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`) + /// Storage: `Broker::Regions` (r:0 w:1) + /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) fn purchase() -> Weight { // Proof Size summary in bytes: - // Measured: `470` - // Estimated: `0` - // Minimum execution time: 50_141_000 picoseconds. - Weight::from_parts(51_815_000, 0) - } + // Measured: `274` + // Estimated: `1542` + // Minimum execution time: 36_368_000 picoseconds. + Weight::from_parts(37_544_000, 1542) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) + } + /// Storage: `Broker::Configuration` (r:1 w:0) + /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) + /// Storage: `Broker::Status` (r:1 w:0) + /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) + /// Storage: `Broker::SaleInfo` (r:1 w:1) + /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`) + /// Storage: `Broker::PotentialRenewals` (r:1 w:2) + /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`) + /// Storage: `Broker::Workplan` (r:0 w:1) + /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) fn renew() -> Weight { // Proof Size summary in bytes: - // Measured: `588` - // Estimated: `0` - // Minimum execution time: 72_374_000 picoseconds. - Weight::from_parts(74_579_000, 0) + // Measured: `392` + // Estimated: `4698` + // Minimum execution time: 63_735_000 picoseconds. + Weight::from_parts(72_328_000, 4698) + .saturating_add(T::DbWeight::get().reads(4_u64)) + .saturating_add(T::DbWeight::get().writes(4_u64)) } + /// Storage: `Broker::Regions` (r:1 w:1) + /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) fn transfer() -> Weight { // Proof Size summary in bytes: - // Measured: `496` - // Estimated: `0` - // Minimum execution time: 22_490_000 picoseconds. - Weight::from_parts(23_199_000, 0) + // Measured: `300` + // Estimated: `3551` + // Minimum execution time: 15_308_000 picoseconds. + Weight::from_parts(16_395_000, 3551) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) } + /// Storage: `Broker::Regions` (r:1 w:2) + /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) fn partition() -> Weight { // Proof Size summary in bytes: - // Measured: `684` - // Estimated: `0` - // Minimum execution time: 45_446_000 picoseconds. - Weight::from_parts(47_268_000, 0) + // Measured: `300` + // Estimated: `3551` + // Minimum execution time: 17_210_000 picoseconds. + Weight::from_parts(17_926_000, 3551) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) } + /// Storage: `Broker::Regions` (r:1 w:3) + /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) fn interlace() -> Weight { // Proof Size summary in bytes: - // Measured: `684` - // Estimated: `0` - // Minimum execution time: 46_999_000 picoseconds. - Weight::from_parts(48_688_000, 0) - } + // Measured: `300` + // Estimated: `3551` + // Minimum execution time: 18_489_000 picoseconds. + Weight::from_parts(19_209_000, 3551) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(3_u64)) + } + /// Storage: `Broker::Configuration` (r:1 w:0) + /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) + /// Storage: `Broker::Status` (r:1 w:0) + /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) + /// Storage: `Broker::Regions` (r:1 w:1) + /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) + /// Storage: `Broker::Workplan` (r:1 w:1) + /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) fn assign() -> Weight { // Proof Size summary in bytes: - // Measured: `915` - // Estimated: `0` - // Minimum execution time: 58_435_000 picoseconds. - Weight::from_parts(60_151_000, 0) - } + // Measured: `545` + // Estimated: `4681` + // Minimum execution time: 30_336_000 picoseconds. + Weight::from_parts(32_040_000, 4681) + .saturating_add(T::DbWeight::get().reads(4_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) + } + /// Storage: `Broker::Status` (r:1 w:0) + /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) + /// Storage: `Broker::Regions` (r:1 w:1) + /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) + /// Storage: `Broker::Workplan` (r:1 w:1) + /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) + /// Storage: `Broker::InstaPoolIo` (r:2 w:2) + /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) + /// Storage: `Broker::InstaPoolContribution` (r:0 w:1) + /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`) fn pool() -> Weight { // Proof Size summary in bytes: - // Measured: `776` - // Estimated: `0` - // Minimum execution time: 45_019_000 picoseconds. - Weight::from_parts(46_560_000, 0) - } + // Measured: `580` + // Estimated: `5996` + // Minimum execution time: 37_417_000 picoseconds. + Weight::from_parts(39_629_000, 5996) + .saturating_add(T::DbWeight::get().reads(5_u64)) + .saturating_add(T::DbWeight::get().writes(5_u64)) + } + /// Storage: `Broker::InstaPoolContribution` (r:1 w:1) + /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`) + /// Storage: `Broker::InstaPoolHistory` (r:3 w:1) + /// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:2 w:2) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// The range of component `m` is `[1, 3]`. fn claim_revenue(m: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `878` - // Estimated: `0` - // Minimum execution time: 85_300_000 picoseconds. - Weight::from_parts(86_359_776, 0) - // Standard Error: 65_197 - .saturating_add(Weight::from_parts(2_466_448, 0).saturating_mul(m.into())) - } + // Measured: `682` + // Estimated: `6196 + m * (2520 ±0)` + // Minimum execution time: 68_403_000 picoseconds. + Weight::from_parts(71_259_395, 6196) + // Standard Error: 70_171 + .saturating_add(Weight::from_parts(1_324_469, 0).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().reads(3_u64)) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(m.into()))) + .saturating_add(T::DbWeight::get().writes(5_u64)) + .saturating_add(Weight::from_parts(0, 2520).saturating_mul(m.into())) + } + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn purchase_credit() -> Weight { // Proof Size summary in bytes: // Measured: `103` - // Estimated: `0` - // Minimum execution time: 53_906_000 picoseconds. - Weight::from_parts(55_200_000, 0) - } + // Estimated: `3593` + // Minimum execution time: 43_427_000 picoseconds. + Weight::from_parts(46_449_000, 3593) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: `Broker::Status` (r:1 w:0) + /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) + /// Storage: `Broker::Regions` (r:1 w:1) + /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) fn drop_region() -> Weight { // Proof Size summary in bytes: - // Measured: `604` - // Estimated: `0` - // Minimum execution time: 44_746_000 picoseconds. - Weight::from_parts(46_324_000, 0) - } + // Measured: `408` + // Estimated: `3551` + // Minimum execution time: 33_171_000 picoseconds. + Weight::from_parts(36_281_000, 3551) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: `Broker::Configuration` (r:1 w:0) + /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) + /// Storage: `Broker::Status` (r:1 w:0) + /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) + /// Storage: `Broker::InstaPoolContribution` (r:1 w:1) + /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`) fn drop_contribution() -> Weight { // Proof Size summary in bytes: - // Measured: `601` - // Estimated: `0` - // Minimum execution time: 56_802_000 picoseconds. - Weight::from_parts(59_318_000, 0) - } + // Measured: `405` + // Estimated: `3533` + // Minimum execution time: 44_610_000 picoseconds. + Weight::from_parts(51_348_000, 3533) + .saturating_add(T::DbWeight::get().reads(3_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: `Broker::Configuration` (r:1 w:0) + /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) + /// Storage: `Broker::Status` (r:1 w:0) + /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) + /// Storage: `Broker::InstaPoolHistory` (r:1 w:1) + /// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:0) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn drop_history() -> Weight { // Proof Size summary in bytes: - // Measured: `1117` - // Estimated: `0` - // Minimum execution time: 76_033_000 picoseconds. - Weight::from_parts(79_730_000, 0) - } + // Measured: `818` + // Estimated: `3593` + // Minimum execution time: 53_872_000 picoseconds. + Weight::from_parts(61_465_000, 3593) + .saturating_add(T::DbWeight::get().reads(4_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: `Broker::Status` (r:1 w:0) + /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) + /// Storage: `Broker::PotentialRenewals` (r:1 w:1) + /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`) fn drop_renewal() -> Weight { // Proof Size summary in bytes: - // Measured: `661` - // Estimated: `0` - // Minimum execution time: 42_923_000 picoseconds. - Weight::from_parts(47_189_000, 0) + // Measured: `465` + // Estimated: `4698` + // Minimum execution time: 36_358_000 picoseconds. + Weight::from_parts(41_672_000, 4698) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) } /// The range of component `n` is `[0, 1000]`. - fn request_core_count(n: u32, ) -> Weight { + fn request_core_count(_n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_809_000 picoseconds. - Weight::from_parts(6_234_232, 0) - // Standard Error: 20 - .saturating_add(Weight::from_parts(83, 0).saturating_mul(n.into())) + // Minimum execution time: 3_748_000 picoseconds. + Weight::from_parts(3_989_484, 0) } + /// Storage: `Broker::CoreCountInbox` (r:1 w:1) + /// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) /// The range of component `n` is `[0, 1000]`. - fn process_core_count(_n: u32, ) -> Weight { - // Proof Size summary in bytes: - // Measured: `404` - // Estimated: `0` - // Minimum execution time: 9_376_000 picoseconds. - Weight::from_parts(10_382_423, 0) - } + fn process_core_count(n: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `208` + // Estimated: `1487` + // Minimum execution time: 5_733_000 picoseconds. + Weight::from_parts(6_067_265, 1487) + // Standard Error: 9 + .saturating_add(Weight::from_parts(16, 0).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: `Broker::RevenueInbox` (r:1 w:1) + /// Proof: `Broker::RevenueInbox` (`max_values`: Some(1), `max_size`: Some(20), added: 515, mode: `MaxEncodedLen`) + /// Storage: `Broker::InstaPoolHistory` (r:1 w:1) + /// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn process_revenue() -> Weight { // Proof Size summary in bytes: - // Measured: `667` - // Estimated: `0` - // Minimum execution time: 48_774_000 picoseconds. - Weight::from_parts(50_275_000, 0) - } + // Measured: `471` + // Estimated: `3593` + // Minimum execution time: 38_503_000 picoseconds. + Weight::from_parts(39_956_000, 3593) + .saturating_add(T::DbWeight::get().reads(3_u64)) + .saturating_add(T::DbWeight::get().writes(3_u64)) + } + /// Storage: `Broker::InstaPoolIo` (r:3 w:3) + /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) + /// Storage: `Broker::Reservations` (r:1 w:0) + /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`) + /// Storage: `Broker::Leases` (r:1 w:1) + /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`) + /// Storage: `Broker::AutoRenewals` (r:1 w:1) + /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(101), added: 596, mode: `MaxEncodedLen`) + /// Storage: `Broker::Configuration` (r:1 w:0) + /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) + /// Storage: `Broker::Status` (r:1 w:0) + /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) + /// Storage: `Broker::PotentialRenewals` (r:10 w:20) + /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:10 w:10) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `Broker::SaleInfo` (r:0 w:1) + /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`) + /// Storage: `Broker::Workplan` (r:0 w:1000) + /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) /// The range of component `n` is `[0, 1000]`. fn rotate_sale(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `8549` - // Estimated: `0` - // Minimum execution time: 33_697_000 picoseconds. - Weight::from_parts(442_982_586, 0) - // Standard Error: 9_638 - .saturating_add(Weight::from_parts(1_667_235, 0).saturating_mul(n.into())) - } + // Measured: `8126` + // Estimated: `38070` + // Minimum execution time: 21_763_000 picoseconds. + Weight::from_parts(325_729_398, 38070) + // Standard Error: 6_937 + .saturating_add(Weight::from_parts(1_323_585, 0).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().reads(26_u64)) + .saturating_add(T::DbWeight::get().writes(34_u64)) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into()))) + } + /// Storage: `Broker::InstaPoolIo` (r:1 w:0) + /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) + /// Storage: `Broker::InstaPoolHistory` (r:0 w:1) + /// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`) fn process_pool() -> Weight { // Proof Size summary in bytes: - // Measured: `180` - // Estimated: `0` - // Minimum execution time: 10_139_000 picoseconds. - Weight::from_parts(10_626_000, 0) - } + // Measured: `0` + // Estimated: `3493` + // Minimum execution time: 5_015_000 picoseconds. + Weight::from_parts(5_306_000, 3493) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: `Broker::Workplan` (r:1 w:1) + /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) + /// Storage: `Broker::Workload` (r:1 w:1) + /// Proof: `Broker::Workload` (`max_values`: None, `max_size`: Some(1212), added: 3687, mode: `MaxEncodedLen`) fn process_core_schedule() -> Weight { // Proof Size summary in bytes: - // Measured: `1423` - // Estimated: `0` - // Minimum execution time: 22_134_000 picoseconds. - Weight::from_parts(23_518_000, 0) + // Measured: `1223` + // Estimated: `4681` + // Minimum execution time: 11_737_000 picoseconds. + Weight::from_parts(12_121_000, 4681) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) } fn request_revenue_info_at() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 193_000 picoseconds. - Weight::from_parts(219_000, 0) + // Minimum execution time: 130_000 picoseconds. + Weight::from_parts(184_000, 0) } + /// Storage: `Broker::CoreCountInbox` (r:0 w:1) + /// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) fn notify_core_count() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_083_000 picoseconds. - Weight::from_parts(3_274_000, 0) + // Minimum execution time: 1_823_000 picoseconds. + Weight::from_parts(1_907_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) } + /// Storage: `Broker::RevenueInbox` (r:0 w:1) + /// Proof: `Broker::RevenueInbox` (`max_values`: Some(1), `max_size`: Some(20), added: 515, mode: `MaxEncodedLen`) fn notify_revenue() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_273_000 picoseconds. - Weight::from_parts(3_475_000, 0) - } + // Minimum execution time: 1_986_000 picoseconds. + Weight::from_parts(2_067_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: `Broker::Status` (r:1 w:1) + /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) + /// Storage: `Broker::Configuration` (r:1 w:0) + /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) + /// Storage: `Broker::CoreCountInbox` (r:1 w:0) + /// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) + /// Storage: `Broker::RevenueInbox` (r:1 w:0) + /// Proof: `Broker::RevenueInbox` (`max_values`: Some(1), `max_size`: Some(20), added: 515, mode: `MaxEncodedLen`) fn do_tick_base() -> Weight { // Proof Size summary in bytes: - // Measured: `441` - // Estimated: `0` - // Minimum execution time: 17_111_000 picoseconds. - Weight::from_parts(18_014_000, 0) - } + // Measured: `245` + // Estimated: `1516` + // Minimum execution time: 10_211_000 picoseconds. + Weight::from_parts(10_652_000, 1516) + .saturating_add(T::DbWeight::get().reads(4_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: `Broker::SaleInfo` (r:1 w:0) + /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`) + /// Storage: `Broker::Reservations` (r:1 w:1) + /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`) + /// Storage: `Broker::Status` (r:1 w:0) + /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) + /// Storage: `Broker::Workplan` (r:0 w:2) + /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) fn force_reserve() -> Weight { // Proof Size summary in bytes: - // Measured: `5320` - // Estimated: `0` - // Minimum execution time: 45_723_000 picoseconds. - Weight::from_parts(47_129_000, 0) + // Measured: `5073` + // Estimated: `7496` + // Minimum execution time: 27_298_000 picoseconds. + Weight::from_parts(28_072_000, 7496) + .saturating_add(T::DbWeight::get().reads(3_u64)) + .saturating_add(T::DbWeight::get().writes(3_u64)) } + /// Storage: `Broker::Leases` (r:1 w:1) + /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`) fn swap_leases() -> Weight { // Proof Size summary in bytes: - // Measured: `239` - // Estimated: `0` - // Minimum execution time: 11_583_000 picoseconds. - Weight::from_parts(12_510_000, 0) - } + // Measured: `39` + // Estimated: `1526` + // Minimum execution time: 4_402_000 picoseconds. + Weight::from_parts(4_626_000, 1526) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: `Broker::SaleInfo` (r:1 w:1) + /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`) + /// Storage: `Broker::PotentialRenewals` (r:1 w:2) + /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`) + /// Storage: `Broker::Configuration` (r:1 w:0) + /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) + /// Storage: `Broker::Status` (r:1 w:0) + /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `Broker::AutoRenewals` (r:1 w:1) + /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(101), added: 596, mode: `MaxEncodedLen`) + /// Storage: `Broker::Workplan` (r:0 w:1) + /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) fn enable_auto_renew() -> Weight { // Proof Size summary in bytes: - // Measured: `1121` - // Estimated: `0` - // Minimum execution time: 95_813_000 picoseconds. - Weight::from_parts(97_314_000, 0) + // Measured: `888` + // Estimated: `4698` + // Minimum execution time: 79_617_000 picoseconds. + Weight::from_parts(84_468_000, 4698) + .saturating_add(T::DbWeight::get().reads(6_u64)) + .saturating_add(T::DbWeight::get().writes(6_u64)) } + /// Storage: `Broker::AutoRenewals` (r:1 w:1) + /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(101), added: 596, mode: `MaxEncodedLen`) fn disable_auto_renew() -> Weight { // Proof Size summary in bytes: - // Measured: `578` - // Estimated: `0` - // Minimum execution time: 24_417_000 picoseconds. - Weight::from_parts(25_538_000, 0) + // Measured: `382` + // Estimated: `1586` + // Minimum execution time: 14_582_000 picoseconds. + Weight::from_parts(15_206_000, 1586) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) } fn on_new_timeslice() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 311_000 picoseconds. - Weight::from_parts(364_000, 0) + // Minimum execution time: 227_000 picoseconds. + Weight::from_parts(251_000, 0) } + /// Storage: `Broker::Workplan` (r:1 w:1) + /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) fn remove_assignment() -> Weight { // Proof Size summary in bytes: - // Measured: `604` - // Estimated: `0` - // Minimum execution time: 21_082_000 picoseconds. - Weight::from_parts(22_367_000, 0) + // Measured: `408` + // Estimated: `4681` + // Minimum execution time: 14_911_000 picoseconds. + Weight::from_parts(15_782_000, 4681) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) } fn force_transfer() -> Weight { // Proof Size summary in bytes: @@ -381,263 +618,499 @@ impl WeightInfo for SubstrateWeight { // For backwards compatibility and tests. impl WeightInfo for () { + /// Storage: `Broker::Configuration` (r:0 w:1) + /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) fn configure() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_333_000 picoseconds. - Weight::from_parts(3_610_000, 0) + // Minimum execution time: 1_989_000 picoseconds. + Weight::from_parts(2_154_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) } + /// Storage: `Broker::Reservations` (r:1 w:1) + /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`) fn reserve() -> Weight { // Proof Size summary in bytes: - // Measured: `5016` - // Estimated: `0` - // Minimum execution time: 26_122_000 picoseconds. - Weight::from_parts(27_167_000, 0) + // Measured: `4816` + // Estimated: `7496` + // Minimum execution time: 14_828_000 picoseconds. + Weight::from_parts(15_421_000, 7496) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) } + /// Storage: `Broker::Reservations` (r:1 w:1) + /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`) fn unreserve() -> Weight { // Proof Size summary in bytes: - // Measured: `6218` - // Estimated: `0` - // Minimum execution time: 24_871_000 picoseconds. - Weight::from_parts(25_676_000, 0) + // Measured: `6018` + // Estimated: `7496` + // Minimum execution time: 14_330_000 picoseconds. + Weight::from_parts(14_621_000, 7496) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) } + /// Storage: `Broker::Leases` (r:1 w:1) + /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`) fn set_lease() -> Weight { // Proof Size summary in bytes: - // Measured: `239` - // Estimated: `0` - // Minimum execution time: 16_384_000 picoseconds. - Weight::from_parts(17_178_000, 0) + // Measured: `39` + // Estimated: `1526` + // Minimum execution time: 7_456_000 picoseconds. + Weight::from_parts(7_707_000, 1526) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) } + /// Storage: `Broker::Leases` (r:1 w:1) + /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`) fn remove_lease() -> Weight { // Proof Size summary in bytes: - // Measured: `247` - // Estimated: `0` - // Minimum execution time: 15_587_000 picoseconds. - Weight::from_parts(16_296_000, 0) - } + // Measured: `47` + // Estimated: `1526` + // Minimum execution time: 7_047_000 picoseconds. + Weight::from_parts(7_339_000, 1526) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `Broker::Configuration` (r:1 w:0) + /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) + /// Storage: `Broker::Leases` (r:1 w:1) + /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`) + /// Storage: `Broker::Reservations` (r:1 w:0) + /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`) + /// Storage: `Broker::InstaPoolIo` (r:3 w:3) + /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) + /// Storage: `Broker::AutoRenewals` (r:1 w:1) + /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(101), added: 596, mode: `MaxEncodedLen`) + /// Storage: `Broker::SaleInfo` (r:0 w:1) + /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`) + /// Storage: `Broker::Status` (r:0 w:1) + /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) + /// Storage: `Broker::Workplan` (r:0 w:10) + /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) /// The range of component `n` is `[0, 1000]`. fn start_sales(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `6330` - // Estimated: `0` - // Minimum execution time: 40_841_000 picoseconds. - Weight::from_parts(75_190_945, 0) - // Standard Error: 765 - .saturating_add(Weight::from_parts(3_965, 0).saturating_mul(n.into())) - } + // Measured: `6134` + // Estimated: `8499` + // Minimum execution time: 27_984_000 picoseconds. + Weight::from_parts(50_193_074, 8499) + // Standard Error: 487 + .saturating_add(Weight::from_parts(2_516, 0).saturating_mul(n.into())) + .saturating_add(RocksDbWeight::get().reads(7_u64)) + .saturating_add(RocksDbWeight::get().writes(16_u64)) + } + /// Storage: `Broker::Status` (r:1 w:0) + /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) + /// Storage: `Broker::SaleInfo` (r:1 w:1) + /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`) + /// Storage: `Broker::Regions` (r:0 w:1) + /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) fn purchase() -> Weight { // Proof Size summary in bytes: - // Measured: `470` - // Estimated: `0` - // Minimum execution time: 50_141_000 picoseconds. - Weight::from_parts(51_815_000, 0) - } + // Measured: `274` + // Estimated: `1542` + // Minimum execution time: 36_368_000 picoseconds. + Weight::from_parts(37_544_000, 1542) + .saturating_add(RocksDbWeight::get().reads(2_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) + } + /// Storage: `Broker::Configuration` (r:1 w:0) + /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) + /// Storage: `Broker::Status` (r:1 w:0) + /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) + /// Storage: `Broker::SaleInfo` (r:1 w:1) + /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`) + /// Storage: `Broker::PotentialRenewals` (r:1 w:2) + /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`) + /// Storage: `Broker::Workplan` (r:0 w:1) + /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) fn renew() -> Weight { // Proof Size summary in bytes: - // Measured: `588` - // Estimated: `0` - // Minimum execution time: 72_374_000 picoseconds. - Weight::from_parts(74_579_000, 0) + // Measured: `392` + // Estimated: `4698` + // Minimum execution time: 63_735_000 picoseconds. + Weight::from_parts(72_328_000, 4698) + .saturating_add(RocksDbWeight::get().reads(4_u64)) + .saturating_add(RocksDbWeight::get().writes(4_u64)) } + /// Storage: `Broker::Regions` (r:1 w:1) + /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) fn transfer() -> Weight { // Proof Size summary in bytes: - // Measured: `496` - // Estimated: `0` - // Minimum execution time: 22_490_000 picoseconds. - Weight::from_parts(23_199_000, 0) + // Measured: `300` + // Estimated: `3551` + // Minimum execution time: 15_308_000 picoseconds. + Weight::from_parts(16_395_000, 3551) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) } + /// Storage: `Broker::Regions` (r:1 w:2) + /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) fn partition() -> Weight { // Proof Size summary in bytes: - // Measured: `684` - // Estimated: `0` - // Minimum execution time: 45_446_000 picoseconds. - Weight::from_parts(47_268_000, 0) + // Measured: `300` + // Estimated: `3551` + // Minimum execution time: 17_210_000 picoseconds. + Weight::from_parts(17_926_000, 3551) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) } + /// Storage: `Broker::Regions` (r:1 w:3) + /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) fn interlace() -> Weight { // Proof Size summary in bytes: - // Measured: `684` - // Estimated: `0` - // Minimum execution time: 46_999_000 picoseconds. - Weight::from_parts(48_688_000, 0) - } + // Measured: `300` + // Estimated: `3551` + // Minimum execution time: 18_489_000 picoseconds. + Weight::from_parts(19_209_000, 3551) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().writes(3_u64)) + } + /// Storage: `Broker::Configuration` (r:1 w:0) + /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) + /// Storage: `Broker::Status` (r:1 w:0) + /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) + /// Storage: `Broker::Regions` (r:1 w:1) + /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) + /// Storage: `Broker::Workplan` (r:1 w:1) + /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) fn assign() -> Weight { // Proof Size summary in bytes: - // Measured: `915` - // Estimated: `0` - // Minimum execution time: 58_435_000 picoseconds. - Weight::from_parts(60_151_000, 0) - } + // Measured: `545` + // Estimated: `4681` + // Minimum execution time: 30_336_000 picoseconds. + Weight::from_parts(32_040_000, 4681) + .saturating_add(RocksDbWeight::get().reads(4_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) + } + /// Storage: `Broker::Status` (r:1 w:0) + /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) + /// Storage: `Broker::Regions` (r:1 w:1) + /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) + /// Storage: `Broker::Workplan` (r:1 w:1) + /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) + /// Storage: `Broker::InstaPoolIo` (r:2 w:2) + /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) + /// Storage: `Broker::InstaPoolContribution` (r:0 w:1) + /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`) fn pool() -> Weight { // Proof Size summary in bytes: - // Measured: `776` - // Estimated: `0` - // Minimum execution time: 45_019_000 picoseconds. - Weight::from_parts(46_560_000, 0) - } + // Measured: `580` + // Estimated: `5996` + // Minimum execution time: 37_417_000 picoseconds. + Weight::from_parts(39_629_000, 5996) + .saturating_add(RocksDbWeight::get().reads(5_u64)) + .saturating_add(RocksDbWeight::get().writes(5_u64)) + } + /// Storage: `Broker::InstaPoolContribution` (r:1 w:1) + /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`) + /// Storage: `Broker::InstaPoolHistory` (r:3 w:1) + /// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:2 w:2) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// The range of component `m` is `[1, 3]`. fn claim_revenue(m: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `878` - // Estimated: `0` - // Minimum execution time: 85_300_000 picoseconds. - Weight::from_parts(86_359_776, 0) - // Standard Error: 65_197 - .saturating_add(Weight::from_parts(2_466_448, 0).saturating_mul(m.into())) - } + // Measured: `682` + // Estimated: `6196 + m * (2520 ±0)` + // Minimum execution time: 68_403_000 picoseconds. + Weight::from_parts(71_259_395, 6196) + // Standard Error: 70_171 + .saturating_add(Weight::from_parts(1_324_469, 0).saturating_mul(m.into())) + .saturating_add(RocksDbWeight::get().reads(3_u64)) + .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(m.into()))) + .saturating_add(RocksDbWeight::get().writes(5_u64)) + .saturating_add(Weight::from_parts(0, 2520).saturating_mul(m.into())) + } + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn purchase_credit() -> Weight { // Proof Size summary in bytes: // Measured: `103` - // Estimated: `0` - // Minimum execution time: 53_906_000 picoseconds. - Weight::from_parts(55_200_000, 0) - } + // Estimated: `3593` + // Minimum execution time: 43_427_000 picoseconds. + Weight::from_parts(46_449_000, 3593) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `Broker::Status` (r:1 w:0) + /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) + /// Storage: `Broker::Regions` (r:1 w:1) + /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) fn drop_region() -> Weight { // Proof Size summary in bytes: - // Measured: `604` - // Estimated: `0` - // Minimum execution time: 44_746_000 picoseconds. - Weight::from_parts(46_324_000, 0) - } + // Measured: `408` + // Estimated: `3551` + // Minimum execution time: 33_171_000 picoseconds. + Weight::from_parts(36_281_000, 3551) + .saturating_add(RocksDbWeight::get().reads(2_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `Broker::Configuration` (r:1 w:0) + /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) + /// Storage: `Broker::Status` (r:1 w:0) + /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) + /// Storage: `Broker::InstaPoolContribution` (r:1 w:1) + /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`) fn drop_contribution() -> Weight { // Proof Size summary in bytes: - // Measured: `601` - // Estimated: `0` - // Minimum execution time: 56_802_000 picoseconds. - Weight::from_parts(59_318_000, 0) - } + // Measured: `405` + // Estimated: `3533` + // Minimum execution time: 44_610_000 picoseconds. + Weight::from_parts(51_348_000, 3533) + .saturating_add(RocksDbWeight::get().reads(3_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `Broker::Configuration` (r:1 w:0) + /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) + /// Storage: `Broker::Status` (r:1 w:0) + /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) + /// Storage: `Broker::InstaPoolHistory` (r:1 w:1) + /// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:0) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn drop_history() -> Weight { // Proof Size summary in bytes: - // Measured: `1117` - // Estimated: `0` - // Minimum execution time: 76_033_000 picoseconds. - Weight::from_parts(79_730_000, 0) - } + // Measured: `818` + // Estimated: `3593` + // Minimum execution time: 53_872_000 picoseconds. + Weight::from_parts(61_465_000, 3593) + .saturating_add(RocksDbWeight::get().reads(4_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `Broker::Status` (r:1 w:0) + /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) + /// Storage: `Broker::PotentialRenewals` (r:1 w:1) + /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`) fn drop_renewal() -> Weight { // Proof Size summary in bytes: - // Measured: `661` - // Estimated: `0` - // Minimum execution time: 42_923_000 picoseconds. - Weight::from_parts(47_189_000, 0) + // Measured: `465` + // Estimated: `4698` + // Minimum execution time: 36_358_000 picoseconds. + Weight::from_parts(41_672_000, 4698) + .saturating_add(RocksDbWeight::get().reads(2_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// The range of component `n` is `[0, 1000]`. - fn request_core_count(n: u32, ) -> Weight { + fn request_core_count(_n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_809_000 picoseconds. - Weight::from_parts(6_234_232, 0) - // Standard Error: 20 - .saturating_add(Weight::from_parts(83, 0).saturating_mul(n.into())) + // Minimum execution time: 3_748_000 picoseconds. + Weight::from_parts(3_989_484, 0) } + /// Storage: `Broker::CoreCountInbox` (r:1 w:1) + /// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) /// The range of component `n` is `[0, 1000]`. - fn process_core_count(_n: u32, ) -> Weight { - // Proof Size summary in bytes: - // Measured: `404` - // Estimated: `0` - // Minimum execution time: 9_376_000 picoseconds. - Weight::from_parts(10_382_423, 0) - } + fn process_core_count(n: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `208` + // Estimated: `1487` + // Minimum execution time: 5_733_000 picoseconds. + Weight::from_parts(6_067_265, 1487) + // Standard Error: 9 + .saturating_add(Weight::from_parts(16, 0).saturating_mul(n.into())) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `Broker::RevenueInbox` (r:1 w:1) + /// Proof: `Broker::RevenueInbox` (`max_values`: Some(1), `max_size`: Some(20), added: 515, mode: `MaxEncodedLen`) + /// Storage: `Broker::InstaPoolHistory` (r:1 w:1) + /// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn process_revenue() -> Weight { // Proof Size summary in bytes: - // Measured: `667` - // Estimated: `0` - // Minimum execution time: 48_774_000 picoseconds. - Weight::from_parts(50_275_000, 0) - } + // Measured: `471` + // Estimated: `3593` + // Minimum execution time: 38_503_000 picoseconds. + Weight::from_parts(39_956_000, 3593) + .saturating_add(RocksDbWeight::get().reads(3_u64)) + .saturating_add(RocksDbWeight::get().writes(3_u64)) + } + /// Storage: `Broker::InstaPoolIo` (r:3 w:3) + /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) + /// Storage: `Broker::Reservations` (r:1 w:0) + /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`) + /// Storage: `Broker::Leases` (r:1 w:1) + /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`) + /// Storage: `Broker::AutoRenewals` (r:1 w:1) + /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(101), added: 596, mode: `MaxEncodedLen`) + /// Storage: `Broker::Configuration` (r:1 w:0) + /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) + /// Storage: `Broker::Status` (r:1 w:0) + /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) + /// Storage: `Broker::PotentialRenewals` (r:10 w:20) + /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:10 w:10) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `Broker::SaleInfo` (r:0 w:1) + /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`) + /// Storage: `Broker::Workplan` (r:0 w:1000) + /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) /// The range of component `n` is `[0, 1000]`. fn rotate_sale(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `8549` - // Estimated: `0` - // Minimum execution time: 33_697_000 picoseconds. - Weight::from_parts(442_982_586, 0) - // Standard Error: 9_638 - .saturating_add(Weight::from_parts(1_667_235, 0).saturating_mul(n.into())) - } + // Measured: `8126` + // Estimated: `38070` + // Minimum execution time: 21_763_000 picoseconds. + Weight::from_parts(325_729_398, 38070) + // Standard Error: 6_937 + .saturating_add(Weight::from_parts(1_323_585, 0).saturating_mul(n.into())) + .saturating_add(RocksDbWeight::get().reads(26_u64)) + .saturating_add(RocksDbWeight::get().writes(34_u64)) + .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(n.into()))) + } + /// Storage: `Broker::InstaPoolIo` (r:1 w:0) + /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) + /// Storage: `Broker::InstaPoolHistory` (r:0 w:1) + /// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`) fn process_pool() -> Weight { // Proof Size summary in bytes: - // Measured: `180` - // Estimated: `0` - // Minimum execution time: 10_139_000 picoseconds. - Weight::from_parts(10_626_000, 0) - } + // Measured: `0` + // Estimated: `3493` + // Minimum execution time: 5_015_000 picoseconds. + Weight::from_parts(5_306_000, 3493) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `Broker::Workplan` (r:1 w:1) + /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) + /// Storage: `Broker::Workload` (r:1 w:1) + /// Proof: `Broker::Workload` (`max_values`: None, `max_size`: Some(1212), added: 3687, mode: `MaxEncodedLen`) fn process_core_schedule() -> Weight { // Proof Size summary in bytes: - // Measured: `1423` - // Estimated: `0` - // Minimum execution time: 22_134_000 picoseconds. - Weight::from_parts(23_518_000, 0) + // Measured: `1223` + // Estimated: `4681` + // Minimum execution time: 11_737_000 picoseconds. + Weight::from_parts(12_121_000, 4681) + .saturating_add(RocksDbWeight::get().reads(2_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) } fn request_revenue_info_at() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 193_000 picoseconds. - Weight::from_parts(219_000, 0) + // Minimum execution time: 130_000 picoseconds. + Weight::from_parts(184_000, 0) } + /// Storage: `Broker::CoreCountInbox` (r:0 w:1) + /// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) fn notify_core_count() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_083_000 picoseconds. - Weight::from_parts(3_274_000, 0) + // Minimum execution time: 1_823_000 picoseconds. + Weight::from_parts(1_907_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) } + /// Storage: `Broker::RevenueInbox` (r:0 w:1) + /// Proof: `Broker::RevenueInbox` (`max_values`: Some(1), `max_size`: Some(20), added: 515, mode: `MaxEncodedLen`) fn notify_revenue() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_273_000 picoseconds. - Weight::from_parts(3_475_000, 0) - } + // Minimum execution time: 1_986_000 picoseconds. + Weight::from_parts(2_067_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `Broker::Status` (r:1 w:1) + /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) + /// Storage: `Broker::Configuration` (r:1 w:0) + /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) + /// Storage: `Broker::CoreCountInbox` (r:1 w:0) + /// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) + /// Storage: `Broker::RevenueInbox` (r:1 w:0) + /// Proof: `Broker::RevenueInbox` (`max_values`: Some(1), `max_size`: Some(20), added: 515, mode: `MaxEncodedLen`) fn do_tick_base() -> Weight { // Proof Size summary in bytes: - // Measured: `441` - // Estimated: `0` - // Minimum execution time: 17_111_000 picoseconds. - Weight::from_parts(18_014_000, 0) - } + // Measured: `245` + // Estimated: `1516` + // Minimum execution time: 10_211_000 picoseconds. + Weight::from_parts(10_652_000, 1516) + .saturating_add(RocksDbWeight::get().reads(4_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `Broker::SaleInfo` (r:1 w:0) + /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`) + /// Storage: `Broker::Reservations` (r:1 w:1) + /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`) + /// Storage: `Broker::Status` (r:1 w:0) + /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) + /// Storage: `Broker::Workplan` (r:0 w:2) + /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) fn force_reserve() -> Weight { // Proof Size summary in bytes: - // Measured: `5320` - // Estimated: `0` - // Minimum execution time: 45_723_000 picoseconds. - Weight::from_parts(47_129_000, 0) + // Measured: `5073` + // Estimated: `7496` + // Minimum execution time: 27_298_000 picoseconds. + Weight::from_parts(28_072_000, 7496) + .saturating_add(RocksDbWeight::get().reads(3_u64)) + .saturating_add(RocksDbWeight::get().writes(3_u64)) } + /// Storage: `Broker::Leases` (r:1 w:1) + /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`) fn swap_leases() -> Weight { // Proof Size summary in bytes: - // Measured: `239` - // Estimated: `0` - // Minimum execution time: 11_583_000 picoseconds. - Weight::from_parts(12_510_000, 0) - } + // Measured: `39` + // Estimated: `1526` + // Minimum execution time: 4_402_000 picoseconds. + Weight::from_parts(4_626_000, 1526) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `Broker::SaleInfo` (r:1 w:1) + /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`) + /// Storage: `Broker::PotentialRenewals` (r:1 w:2) + /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`) + /// Storage: `Broker::Configuration` (r:1 w:0) + /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) + /// Storage: `Broker::Status` (r:1 w:0) + /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `Broker::AutoRenewals` (r:1 w:1) + /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(101), added: 596, mode: `MaxEncodedLen`) + /// Storage: `Broker::Workplan` (r:0 w:1) + /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) fn enable_auto_renew() -> Weight { // Proof Size summary in bytes: - // Measured: `1121` - // Estimated: `0` - // Minimum execution time: 95_813_000 picoseconds. - Weight::from_parts(97_314_000, 0) + // Measured: `888` + // Estimated: `4698` + // Minimum execution time: 79_617_000 picoseconds. + Weight::from_parts(84_468_000, 4698) + .saturating_add(RocksDbWeight::get().reads(6_u64)) + .saturating_add(RocksDbWeight::get().writes(6_u64)) } + /// Storage: `Broker::AutoRenewals` (r:1 w:1) + /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(101), added: 596, mode: `MaxEncodedLen`) fn disable_auto_renew() -> Weight { // Proof Size summary in bytes: - // Measured: `578` - // Estimated: `0` - // Minimum execution time: 24_417_000 picoseconds. - Weight::from_parts(25_538_000, 0) + // Measured: `382` + // Estimated: `1586` + // Minimum execution time: 14_582_000 picoseconds. + Weight::from_parts(15_206_000, 1586) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) } fn on_new_timeslice() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 311_000 picoseconds. - Weight::from_parts(364_000, 0) + // Minimum execution time: 227_000 picoseconds. + Weight::from_parts(251_000, 0) } + /// Storage: `Broker::Workplan` (r:1 w:1) + /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) fn remove_assignment() -> Weight { // Proof Size summary in bytes: - // Measured: `604` - // Estimated: `0` - // Minimum execution time: 21_082_000 picoseconds. - Weight::from_parts(22_367_000, 0) + // Measured: `408` + // Estimated: `4681` + // Minimum execution time: 14_911_000 picoseconds. + Weight::from_parts(15_782_000, 4681) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) } fn force_transfer() -> Weight { // Proof Size summary in bytes: From e558836cafc2a64a254247f32f6c5a3c557f1420 Mon Sep 17 00:00:00 2001 From: mertwole Date: Fri, 23 Jan 2026 11:18:10 +0100 Subject: [PATCH 06/11] Fix merge --- substrate/frame/broker/src/tests.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/substrate/frame/broker/src/tests.rs b/substrate/frame/broker/src/tests.rs index b218df358e599..959159c48bd6a 100644 --- a/substrate/frame/broker/src/tests.rs +++ b/substrate/frame/broker/src/tests.rs @@ -2801,6 +2801,7 @@ fn force_reserve_works() { }); } +#[test] fn remove_potential_renewal_rejects_non_admin_origin() { TestExt::new().execute_with(|| { assert_noop!( From 9a7a5db177403755ccb3b6e5ae00a38b409a1b2b Mon Sep 17 00:00:00 2001 From: "cmd[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 3 Feb 2026 22:23:11 +0000 Subject: [PATCH 07/11] Update from github-actions[bot] running command 'bench --pallet pallet_broker' --- .../src/weights/pallet_broker.rs | 317 +++++----- substrate/frame/broker/src/weights.rs | 567 ++++++++++-------- 2 files changed, 484 insertions(+), 400 deletions(-) diff --git a/cumulus/parachains/runtimes/coretime/coretime-westend/src/weights/pallet_broker.rs b/cumulus/parachains/runtimes/coretime/coretime-westend/src/weights/pallet_broker.rs index 73bafd5684115..9c676ae234fee 100644 --- a/cumulus/parachains/runtimes/coretime/coretime-westend/src/weights/pallet_broker.rs +++ b/cumulus/parachains/runtimes/coretime/coretime-westend/src/weights/pallet_broker.rs @@ -16,9 +16,9 @@ //! Autogenerated weights for `pallet_broker` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2026-02-03, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `050e4dc4313a`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` +//! HOSTNAME: `6fa8e453c383`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` //! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024 // Executed Command: @@ -56,8 +56,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_566_000 picoseconds. - Weight::from_parts(2_786_000, 0) + // Minimum execution time: 3_438_000 picoseconds. + Weight::from_parts(3_553_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -67,8 +67,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `10888` // Estimated: `13506` - // Minimum execution time: 24_733_000 picoseconds. - Weight::from_parts(25_268_000, 0) + // Minimum execution time: 29_092_000 picoseconds. + Weight::from_parts(29_848_000, 0) .saturating_add(Weight::from_parts(0, 13506)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -79,8 +79,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `12090` // Estimated: `13506` - // Minimum execution time: 23_819_000 picoseconds. - Weight::from_parts(24_701_000, 0) + // Minimum execution time: 28_288_000 picoseconds. + Weight::from_parts(28_946_000, 0) .saturating_add(Weight::from_parts(0, 13506)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -95,8 +95,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `146` // Estimated: `1631` - // Minimum execution time: 12_897_000 picoseconds. - Weight::from_parts(13_446_000, 0) + // Minimum execution time: 14_804_000 picoseconds. + Weight::from_parts(15_249_000, 0) .saturating_add(Weight::from_parts(0, 1631)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(1)) @@ -107,8 +107,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `150` // Estimated: `1566` - // Minimum execution time: 10_319_000 picoseconds. - Weight::from_parts(10_718_000, 0) + // Minimum execution time: 11_625_000 picoseconds. + Weight::from_parts(12_061_000, 0) .saturating_add(Weight::from_parts(0, 1566)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -119,18 +119,20 @@ impl pallet_broker::WeightInfo for WeightInfo { /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(81), added: 576, mode: `MaxEncodedLen`) /// Storage: `Broker::Reservations` (r:1 w:0) /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(12021), added: 12516, mode: `MaxEncodedLen`) + /// Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0) + /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) - /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::ValidationData` (r:1 w:0) /// Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::LastRelayChainBlockNumber` (r:1 w:0) /// Proof: `ParachainSystem::LastRelayChainBlockNumber` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `Broker::InstaPoolIo` (r:3 w:3) /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) + /// Storage: `Broker::ForceReservations` (r:1 w:0) + /// Proof: `Broker::ForceReservations` (`max_values`: Some(1), `max_size`: Some(12021), added: 12516, mode: `MaxEncodedLen`) /// Storage: `Broker::AutoRenewals` (r:1 w:1) /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(201), added: 696, mode: `MaxEncodedLen`) /// Storage: `Broker::SaleInfo` (r:0 w:1) @@ -144,13 +146,13 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `12247` // Estimated: `14773 + n * (1 ±0)` - // Minimum execution time: 50_462_000 picoseconds. - Weight::from_parts(95_701_761, 0) + // Minimum execution time: 70_709_000 picoseconds. + Weight::from_parts(133_647_718, 0) .saturating_add(Weight::from_parts(0, 14773)) - // Standard Error: 1_017 - .saturating_add(Weight::from_parts(4_668, 0).saturating_mul(n.into())) - .saturating_add(T::DbWeight::get().reads(12)) - .saturating_add(T::DbWeight::get().writes(26)) + // Standard Error: 1_348 + .saturating_add(Weight::from_parts(7_276, 0).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().reads(13)) + .saturating_add(T::DbWeight::get().writes(25)) .saturating_add(Weight::from_parts(0, 1).saturating_mul(n.into())) } /// Storage: `Broker::Status` (r:1 w:0) @@ -165,10 +167,10 @@ impl pallet_broker::WeightInfo for WeightInfo { /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) fn purchase() -> Weight { // Proof Size summary in bytes: - // Measured: `437` + // Measured: `403` // Estimated: `3593` - // Minimum execution time: 55_310_000 picoseconds. - Weight::from_parts(56_779_000, 0) + // Minimum execution time: 74_294_000 picoseconds. + Weight::from_parts(76_471_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) @@ -181,7 +183,7 @@ impl pallet_broker::WeightInfo for WeightInfo { /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`) /// Storage: `Broker::PotentialRenewals` (r:1 w:2) /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`) - /// Storage: `System::Account` (r:1 w:0) + /// Storage: `System::Account` (r:1 w:1) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// Storage: `ParachainSystem::ValidationData` (r:1 w:0) /// Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) @@ -189,13 +191,13 @@ impl pallet_broker::WeightInfo for WeightInfo { /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) fn renew() -> Weight { // Proof Size summary in bytes: - // Measured: `658` + // Measured: `624` // Estimated: `4698` - // Minimum execution time: 96_952_000 picoseconds. - Weight::from_parts(103_889_000, 0) + // Minimum execution time: 102_417_000 picoseconds. + Weight::from_parts(106_791_000, 0) .saturating_add(Weight::from_parts(0, 4698)) .saturating_add(T::DbWeight::get().reads(6)) - .saturating_add(T::DbWeight::get().writes(4)) + .saturating_add(T::DbWeight::get().writes(5)) } /// Storage: `Broker::Regions` (r:1 w:1) /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) @@ -203,35 +205,47 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `358` // Estimated: `3551` - // Minimum execution time: 20_830_000 picoseconds. - Weight::from_parts(21_754_000, 0) + // Minimum execution time: 23_233_000 picoseconds. + Weight::from_parts(24_440_000, 0) .saturating_add(Weight::from_parts(0, 3551)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } + /// Storage: `Broker::Status` (r:1 w:0) + /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) /// Storage: `Broker::Regions` (r:1 w:2) /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) + /// Storage: `Broker::InstaPoolContribution` (r:1 w:1) + /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`) + /// Storage: `Broker::InstaPoolIo` (r:2 w:2) + /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) fn partition() -> Weight { // Proof Size summary in bytes: - // Measured: `358` - // Estimated: `3551` - // Minimum execution time: 22_556_000 picoseconds. - Weight::from_parts(23_385_000, 0) - .saturating_add(Weight::from_parts(0, 3551)) - .saturating_add(T::DbWeight::get().reads(1)) - .saturating_add(T::DbWeight::get().writes(2)) + // Measured: `577` + // Estimated: `5996` + // Minimum execution time: 47_283_000 picoseconds. + Weight::from_parts(48_657_000, 0) + .saturating_add(Weight::from_parts(0, 5996)) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(5)) } + /// Storage: `Broker::Status` (r:1 w:0) + /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) /// Storage: `Broker::Regions` (r:1 w:3) /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) + /// Storage: `Broker::InstaPoolContribution` (r:1 w:1) + /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`) + /// Storage: `Broker::InstaPoolIo` (r:2 w:2) + /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) fn interlace() -> Weight { // Proof Size summary in bytes: - // Measured: `358` - // Estimated: `3551` - // Minimum execution time: 24_183_000 picoseconds. - Weight::from_parts(24_668_000, 0) - .saturating_add(Weight::from_parts(0, 3551)) - .saturating_add(T::DbWeight::get().reads(1)) - .saturating_add(T::DbWeight::get().writes(3)) + // Measured: `577` + // Estimated: `5996` + // Minimum execution time: 48_646_000 picoseconds. + Weight::from_parts(50_486_000, 0) + .saturating_add(Weight::from_parts(0, 5996)) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(6)) } /// Storage: `Broker::Configuration` (r:1 w:0) /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) @@ -241,15 +255,19 @@ impl pallet_broker::WeightInfo for WeightInfo { /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) /// Storage: `Broker::Workplan` (r:1 w:1) /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) + /// Storage: `Broker::InstaPoolContribution` (r:1 w:1) + /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`) + /// Storage: `Broker::InstaPoolIo` (r:2 w:2) + /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) fn assign() -> Weight { // Proof Size summary in bytes: - // Measured: `736` - // Estimated: `4681` - // Minimum execution time: 35_180_000 picoseconds. - Weight::from_parts(36_474_000, 0) - .saturating_add(Weight::from_parts(0, 4681)) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(2)) + // Measured: `945` + // Estimated: `5996` + // Minimum execution time: 61_503_000 picoseconds. + Weight::from_parts(64_811_000, 0) + .saturating_add(Weight::from_parts(0, 5996)) + .saturating_add(T::DbWeight::get().reads(7)) + .saturating_add(T::DbWeight::get().writes(5)) } /// Storage: `Broker::Status` (r:1 w:0) /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) @@ -265,8 +283,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `802` // Estimated: `5996` - // Minimum execution time: 41_629_000 picoseconds. - Weight::from_parts(43_178_000, 0) + // Minimum execution time: 47_386_000 picoseconds. + Weight::from_parts(48_984_000, 0) .saturating_add(Weight::from_parts(0, 5996)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(5)) @@ -282,11 +300,11 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `671` // Estimated: `6196 + m * (2520 ±0)` - // Minimum execution time: 71_315_000 picoseconds. - Weight::from_parts(72_531_865, 0) + // Minimum execution time: 81_408_000 picoseconds. + Weight::from_parts(83_284_372, 0) .saturating_add(Weight::from_parts(0, 6196)) - // Standard Error: 46_998 - .saturating_add(Weight::from_parts(1_837_283, 0).saturating_mul(m.into())) + // Standard Error: 72_398 + .saturating_add(Weight::from_parts(1_933_729, 0).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(m.into()))) .saturating_add(T::DbWeight::get().writes(5)) @@ -294,21 +312,21 @@ impl pallet_broker::WeightInfo for WeightInfo { } /// Storage: `System::Account` (r:1 w:1) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0) + /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) - /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn purchase_credit() -> Weight { // Proof Size summary in bytes: - // Measured: `259` - // Estimated: `3724` - // Minimum execution time: 69_827_000 picoseconds. - Weight::from_parts(71_536_000, 0) - .saturating_add(Weight::from_parts(0, 3724)) + // Measured: `183` + // Estimated: `3648` + // Minimum execution time: 86_236_000 picoseconds. + Weight::from_parts(89_872_000, 0) + .saturating_add(Weight::from_parts(0, 3648)) .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(2)) + .saturating_add(T::DbWeight::get().writes(1)) } /// Storage: `Broker::Status` (r:1 w:0) /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) @@ -318,8 +336,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `466` // Estimated: `3551` - // Minimum execution time: 48_292_000 picoseconds. - Weight::from_parts(68_226_000, 0) + // Minimum execution time: 50_743_000 picoseconds. + Weight::from_parts(52_579_000, 0) .saturating_add(Weight::from_parts(0, 3551)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -334,8 +352,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `463` // Estimated: `3533` - // Minimum execution time: 92_377_000 picoseconds. - Weight::from_parts(136_256_000, 0) + // Minimum execution time: 62_550_000 picoseconds. + Weight::from_parts(67_145_000, 0) .saturating_add(Weight::from_parts(0, 3533)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(1)) @@ -352,8 +370,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `979` // Estimated: `3593` - // Minimum execution time: 111_597_000 picoseconds. - Weight::from_parts(128_005_000, 0) + // Minimum execution time: 78_276_000 picoseconds. + Weight::from_parts(84_422_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(1)) @@ -366,30 +384,27 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `556` // Estimated: `4698` - // Minimum execution time: 47_734_000 picoseconds. - Weight::from_parts(55_112_000, 0) + // Minimum execution time: 47_001_000 picoseconds. + Weight::from_parts(49_561_000, 0) .saturating_add(Weight::from_parts(0, 4698)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } + /// Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0) + /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) - /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// The range of component `n` is `[0, 1000]`. - fn request_core_count(n: u32, ) -> Weight { + fn request_core_count(_n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `42` // Estimated: `3507` - // Minimum execution time: 20_333_000 picoseconds. - Weight::from_parts(21_440_973, 0) + // Minimum execution time: 28_381_000 picoseconds. + Weight::from_parts(33_723_996, 0) .saturating_add(Weight::from_parts(0, 3507)) - // Standard Error: 54 - .saturating_add(Weight::from_parts(49, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(3)) - .saturating_add(T::DbWeight::get().writes(1)) } /// Storage: `Broker::CoreCountInbox` (r:1 w:1) /// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) @@ -398,8 +413,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `266` // Estimated: `1487` - // Minimum execution time: 7_821_000 picoseconds. - Weight::from_parts(8_450_013, 0) + // Minimum execution time: 9_042_000 picoseconds. + Weight::from_parts(9_870_836, 0) .saturating_add(Weight::from_parts(0, 1487)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -414,8 +429,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `461` // Estimated: `6196` - // Minimum execution time: 49_283_000 picoseconds. - Weight::from_parts(50_624_000, 0) + // Minimum execution time: 67_698_000 picoseconds. + Weight::from_parts(70_170_000, 0) .saturating_add(Weight::from_parts(0, 6196)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(4)) @@ -426,6 +441,8 @@ impl pallet_broker::WeightInfo for WeightInfo { /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) /// Storage: `Broker::Reservations` (r:1 w:0) /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(12021), added: 12516, mode: `MaxEncodedLen`) + /// Storage: `Broker::ForceReservations` (r:1 w:0) + /// Proof: `Broker::ForceReservations` (`max_values`: Some(1), `max_size`: Some(12021), added: 12516, mode: `MaxEncodedLen`) /// Storage: `Broker::Leases` (r:1 w:1) /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(81), added: 576, mode: `MaxEncodedLen`) /// Storage: `Broker::AutoRenewals` (r:1 w:1) @@ -436,7 +453,7 @@ impl pallet_broker::WeightInfo for WeightInfo { /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) /// Storage: `Broker::PotentialRenewals` (r:20 w:40) /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`) - /// Storage: `System::Account` (r:21 w:20) + /// Storage: `System::Account` (r:21 w:21) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// Storage: `Broker::SaleInfo` (r:0 w:1) /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`) @@ -445,15 +462,15 @@ impl pallet_broker::WeightInfo for WeightInfo { /// The range of component `n` is `[0, 1000]`. fn rotate_sale(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `16480` + // Measured: `16446` // Estimated: `69404 + n * (8 ±1)` - // Minimum execution time: 32_855_000 picoseconds. - Weight::from_parts(698_275_537, 0) + // Minimum execution time: 39_166_000 picoseconds. + Weight::from_parts(985_595_825, 0) .saturating_add(Weight::from_parts(0, 69404)) - // Standard Error: 20_874 - .saturating_add(Weight::from_parts(1_398_903, 0).saturating_mul(n.into())) - .saturating_add(T::DbWeight::get().reads(44)) - .saturating_add(T::DbWeight::get().writes(57)) + // Standard Error: 30_065 + .saturating_add(Weight::from_parts(1_849_592, 0).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().reads(45)) + .saturating_add(T::DbWeight::get().writes(58)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into()))) .saturating_add(Weight::from_parts(0, 8).saturating_mul(n.into())) } @@ -465,8 +482,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `42` // Estimated: `3493` - // Minimum execution time: 7_801_000 picoseconds. - Weight::from_parts(8_153_000, 0) + // Minimum execution time: 8_935_000 picoseconds. + Weight::from_parts(9_357_000, 0) .saturating_add(Weight::from_parts(0, 3493)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -475,37 +492,36 @@ impl pallet_broker::WeightInfo for WeightInfo { /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) /// Storage: `Broker::Workload` (r:1 w:1) /// Proof: `Broker::Workload` (`max_values`: None, `max_size`: Some(1212), added: 3687, mode: `MaxEncodedLen`) + /// Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0) + /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) - /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn process_core_schedule() -> Weight { // Proof Size summary in bytes: // Measured: `1289` // Estimated: `4754` - // Minimum execution time: 31_074_000 picoseconds. - Weight::from_parts(32_112_000, 0) + // Minimum execution time: 45_029_000 picoseconds. + Weight::from_parts(47_021_000, 0) .saturating_add(Weight::from_parts(0, 4754)) .saturating_add(T::DbWeight::get().reads(5)) - .saturating_add(T::DbWeight::get().writes(3)) + .saturating_add(T::DbWeight::get().writes(2)) } + /// Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0) + /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) - /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn request_revenue_info_at() -> Weight { // Proof Size summary in bytes: // Measured: `42` // Estimated: `3507` - // Minimum execution time: 15_680_000 picoseconds. - Weight::from_parts(16_391_000, 0) + // Minimum execution time: 23_587_000 picoseconds. + Weight::from_parts(24_396_000, 0) .saturating_add(Weight::from_parts(0, 3507)) .saturating_add(T::DbWeight::get().reads(3)) - .saturating_add(T::DbWeight::get().writes(1)) } /// Storage: `Broker::CoreCountInbox` (r:0 w:1) /// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) @@ -513,8 +529,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_309_000 picoseconds. - Weight::from_parts(2_572_000, 0) + // Minimum execution time: 3_090_000 picoseconds. + Weight::from_parts(3_317_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -524,8 +540,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_524_000 picoseconds. - Weight::from_parts(2_678_000, 0) + // Minimum execution time: 3_420_000 picoseconds. + Weight::from_parts(3_684_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -541,11 +557,11 @@ impl pallet_broker::WeightInfo for WeightInfo { /// Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn do_tick_base() -> Weight { // Proof Size summary in bytes: - // Measured: `408` - // Estimated: `1893` - // Minimum execution time: 14_125_000 picoseconds. - Weight::from_parts(14_511_000, 0) - .saturating_add(Weight::from_parts(0, 1893)) + // Measured: `374` + // Estimated: `1859` + // Minimum execution time: 15_284_000 picoseconds. + Weight::from_parts(15_676_000, 0) + .saturating_add(Weight::from_parts(0, 1859)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -553,18 +569,20 @@ impl pallet_broker::WeightInfo for WeightInfo { /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`) /// Storage: `Broker::Reservations` (r:1 w:1) /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(12021), added: 12516, mode: `MaxEncodedLen`) + /// Storage: `Broker::ForceReservations` (r:1 w:1) + /// Proof: `Broker::ForceReservations` (`max_values`: Some(1), `max_size`: Some(12021), added: 12516, mode: `MaxEncodedLen`) /// Storage: `Broker::Status` (r:1 w:0) /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) - /// Storage: `Broker::Workplan` (r:0 w:2) + /// Storage: `Broker::Workplan` (r:0 w:1) /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) fn force_reserve() -> Weight { // Proof Size summary in bytes: - // Measured: `11141` + // Measured: `11223` // Estimated: `13506` - // Minimum execution time: 41_171_000 picoseconds. - Weight::from_parts(42_826_000, 0) + // Minimum execution time: 56_761_000 picoseconds. + Weight::from_parts(58_768_000, 0) .saturating_add(Weight::from_parts(0, 13506)) - .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) } /// Storage: `Broker::Leases` (r:1 w:1) @@ -573,8 +591,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `150` // Estimated: `1566` - // Minimum execution time: 7_231_000 picoseconds. - Weight::from_parts(7_626_000, 0) + // Minimum execution time: 8_077_000 picoseconds. + Weight::from_parts(8_530_000, 0) .saturating_add(Weight::from_parts(0, 1566)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -587,7 +605,7 @@ impl pallet_broker::WeightInfo for WeightInfo { /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) /// Storage: `Broker::Status` (r:1 w:0) /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) - /// Storage: `System::Account` (r:2 w:1) + /// Storage: `System::Account` (r:2 w:2) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// Storage: `ParachainSystem::ValidationData` (r:1 w:0) /// Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) @@ -597,13 +615,13 @@ impl pallet_broker::WeightInfo for WeightInfo { /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) fn enable_auto_renew() -> Weight { // Proof Size summary in bytes: - // Measured: `1451` + // Measured: `1417` // Estimated: `6196` - // Minimum execution time: 105_363_000 picoseconds. - Weight::from_parts(111_333_000, 0) + // Minimum execution time: 124_802_000 picoseconds. + Weight::from_parts(131_865_000, 0) .saturating_add(Weight::from_parts(0, 6196)) .saturating_add(T::DbWeight::get().reads(8)) - .saturating_add(T::DbWeight::get().writes(6)) + .saturating_add(T::DbWeight::get().writes(7)) } /// Storage: `Broker::AutoRenewals` (r:1 w:1) /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(201), added: 696, mode: `MaxEncodedLen`) @@ -611,22 +629,29 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `506` // Estimated: `1686` - // Minimum execution time: 17_752_000 picoseconds. - Weight::from_parts(18_777_000, 0) + // Minimum execution time: 21_661_000 picoseconds. + Weight::from_parts(22_005_000, 0) .saturating_add(Weight::from_parts(0, 1686)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: `System::Account` (r:1 w:0) + /// Storage: `System::Account` (r:1 w:1) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0) + /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) + /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn on_new_timeslice() -> Weight { // Proof Size summary in bytes: - // Measured: `103` - // Estimated: `3593` - // Minimum execution time: 5_009_000 picoseconds. - Weight::from_parts(5_245_000, 0) - .saturating_add(Weight::from_parts(0, 3593)) - .saturating_add(T::DbWeight::get().reads(1)) + // Measured: `183` + // Estimated: `3648` + // Minimum execution time: 73_216_000 picoseconds. + Weight::from_parts(75_314_000, 0) + .saturating_add(Weight::from_parts(0, 3648)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(1)) } /// Storage: `Broker::Workplan` (r:1 w:1) /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) @@ -634,8 +659,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `602` // Estimated: `4681` - // Minimum execution time: 21_397_000 picoseconds. - Weight::from_parts(21_865_000, 0) + // Minimum execution time: 23_586_000 picoseconds. + Weight::from_parts(24_399_000, 0) .saturating_add(Weight::from_parts(0, 4681)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -644,20 +669,24 @@ impl pallet_broker::WeightInfo for WeightInfo { /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`) fn remove_potential_renewal() -> Weight { // Proof Size summary in bytes: - // Measured: `312` + // Measured: `314` // Estimated: `4698` - // Minimum execution time: 18_266_000 picoseconds. - Weight::from_parts(19_216_000, 0) + // Minimum execution time: 20_438_000 picoseconds. + Weight::from_parts(21_200_000, 0) .saturating_add(Weight::from_parts(0, 4698)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } + /// Storage: `Broker::Regions` (r:1 w:1) + /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) fn force_transfer() -> Weight { // Proof Size summary in bytes: // Measured: `358` - // Estimated: `0` - // Minimum execution time: 22_758_000 picoseconds. - Weight::from_parts(23_502_000, 0) - .saturating_add(Weight::from_parts(0, 0)) + // Estimated: `3551` + // Minimum execution time: 22_968_000 picoseconds. + Weight::from_parts(23_878_000, 0) + .saturating_add(Weight::from_parts(0, 3551)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) } } diff --git a/substrate/frame/broker/src/weights.rs b/substrate/frame/broker/src/weights.rs index 0506bf8c0c9e1..7a2a17e0a7933 100644 --- a/substrate/frame/broker/src/weights.rs +++ b/substrate/frame/broker/src/weights.rs @@ -35,9 +35,9 @@ //! Autogenerated weights for `pallet_broker` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2026-02-03, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `4563561839a5`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` +//! HOSTNAME: `6fa8e453c383`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` //! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: `1024` // Executed Command: @@ -58,8 +58,7 @@ // --no-storage-info // --no-min-squares // --no-median-slopes -// --genesis-builder-policy=none -// --exclude-pallets=pallet_xcm,pallet_xcm_benchmarks::fungible,pallet_xcm_benchmarks::generic,pallet_nomination_pools,pallet_remark,pallet_transaction_storage,pallet_election_provider_multi_block,pallet_election_provider_multi_block::signed,pallet_election_provider_multi_block::unsigned,pallet_election_provider_multi_block::verifier +// --exclude-pallets=pallet_xcm,pallet_xcm_benchmarks::fungible,pallet_xcm_benchmarks::generic,pallet_nomination_pools,pallet_remark,pallet_transaction_storage #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] @@ -120,18 +119,18 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_989_000 picoseconds. - Weight::from_parts(2_154_000, 0) + // Minimum execution time: 3_376_000 picoseconds. + Weight::from_parts(3_576_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: `Broker::Reservations` (r:1 w:1) /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`) fn reserve() -> Weight { // Proof Size summary in bytes: - // Measured: `4816` + // Measured: `5016` // Estimated: `7496` - // Minimum execution time: 14_828_000 picoseconds. - Weight::from_parts(15_421_000, 7496) + // Minimum execution time: 25_780_000 picoseconds. + Weight::from_parts(27_282_000, 7496) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -139,10 +138,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`) fn unreserve() -> Weight { // Proof Size summary in bytes: - // Measured: `6018` + // Measured: `6218` // Estimated: `7496` - // Minimum execution time: 14_330_000 picoseconds. - Weight::from_parts(14_621_000, 7496) + // Minimum execution time: 24_714_000 picoseconds. + Weight::from_parts(25_914_000, 7496) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -150,10 +149,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`) fn set_lease() -> Weight { // Proof Size summary in bytes: - // Measured: `39` + // Measured: `239` // Estimated: `1526` - // Minimum execution time: 7_456_000 picoseconds. - Weight::from_parts(7_707_000, 1526) + // Minimum execution time: 16_029_000 picoseconds. + Weight::from_parts(17_580_000, 1526) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -161,10 +160,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`) fn remove_lease() -> Weight { // Proof Size summary in bytes: - // Measured: `47` + // Measured: `247` // Estimated: `1526` - // Minimum execution time: 7_047_000 picoseconds. - Weight::from_parts(7_339_000, 1526) + // Minimum execution time: 15_515_000 picoseconds. + Weight::from_parts(16_399_000, 1526) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -176,6 +175,8 @@ impl WeightInfo for SubstrateWeight { /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`) /// Storage: `Broker::InstaPoolIo` (r:3 w:3) /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) + /// Storage: `Broker::ForceReservations` (r:1 w:0) + /// Proof: `Broker::ForceReservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`) /// Storage: `Broker::AutoRenewals` (r:1 w:1) /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(101), added: 596, mode: `MaxEncodedLen`) /// Storage: `Broker::SaleInfo` (r:0 w:1) @@ -187,13 +188,13 @@ impl WeightInfo for SubstrateWeight { /// The range of component `n` is `[0, 1000]`. fn start_sales(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `6134` + // Measured: `6330` // Estimated: `8499` - // Minimum execution time: 27_984_000 picoseconds. - Weight::from_parts(50_193_074, 8499) - // Standard Error: 487 - .saturating_add(Weight::from_parts(2_516, 0).saturating_mul(n.into())) - .saturating_add(T::DbWeight::get().reads(7_u64)) + // Minimum execution time: 40_215_000 picoseconds. + Weight::from_parts(75_347_003, 8499) + // Standard Error: 762 + .saturating_add(Weight::from_parts(3_511, 0).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().reads(8_u64)) .saturating_add(T::DbWeight::get().writes(16_u64)) } /// Storage: `Broker::Status` (r:1 w:0) @@ -204,10 +205,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) fn purchase() -> Weight { // Proof Size summary in bytes: - // Measured: `274` + // Measured: `470` // Estimated: `1542` - // Minimum execution time: 36_368_000 picoseconds. - Weight::from_parts(37_544_000, 1542) + // Minimum execution time: 49_442_000 picoseconds. + Weight::from_parts(50_364_000, 1542) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -223,10 +224,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) fn renew() -> Weight { // Proof Size summary in bytes: - // Measured: `392` + // Measured: `588` // Estimated: `4698` - // Minimum execution time: 63_735_000 picoseconds. - Weight::from_parts(72_328_000, 4698) + // Minimum execution time: 73_198_000 picoseconds. + Weight::from_parts(74_219_000, 4698) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } @@ -234,34 +235,46 @@ impl WeightInfo for SubstrateWeight { /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) fn transfer() -> Weight { // Proof Size summary in bytes: - // Measured: `300` + // Measured: `496` // Estimated: `3551` - // Minimum execution time: 15_308_000 picoseconds. - Weight::from_parts(16_395_000, 3551) + // Minimum execution time: 23_270_000 picoseconds. + Weight::from_parts(24_128_000, 3551) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } + /// Storage: `Broker::Status` (r:1 w:0) + /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) /// Storage: `Broker::Regions` (r:1 w:2) /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) + /// Storage: `Broker::InstaPoolContribution` (r:1 w:1) + /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`) + /// Storage: `Broker::InstaPoolIo` (r:2 w:2) + /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) fn partition() -> Weight { // Proof Size summary in bytes: - // Measured: `300` - // Estimated: `3551` - // Minimum execution time: 17_210_000 picoseconds. - Weight::from_parts(17_926_000, 3551) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(2_u64)) + // Measured: `684` + // Estimated: `5996` + // Minimum execution time: 46_164_000 picoseconds. + Weight::from_parts(47_622_000, 5996) + .saturating_add(T::DbWeight::get().reads(5_u64)) + .saturating_add(T::DbWeight::get().writes(5_u64)) } + /// Storage: `Broker::Status` (r:1 w:0) + /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) /// Storage: `Broker::Regions` (r:1 w:3) /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) + /// Storage: `Broker::InstaPoolContribution` (r:1 w:1) + /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`) + /// Storage: `Broker::InstaPoolIo` (r:2 w:2) + /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) fn interlace() -> Weight { // Proof Size summary in bytes: - // Measured: `300` - // Estimated: `3551` - // Minimum execution time: 18_489_000 picoseconds. - Weight::from_parts(19_209_000, 3551) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(3_u64)) + // Measured: `684` + // Estimated: `5996` + // Minimum execution time: 47_858_000 picoseconds. + Weight::from_parts(50_147_000, 5996) + .saturating_add(T::DbWeight::get().reads(5_u64)) + .saturating_add(T::DbWeight::get().writes(6_u64)) } /// Storage: `Broker::Configuration` (r:1 w:0) /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) @@ -271,14 +284,18 @@ impl WeightInfo for SubstrateWeight { /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) /// Storage: `Broker::Workplan` (r:1 w:1) /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) + /// Storage: `Broker::InstaPoolContribution` (r:1 w:1) + /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`) + /// Storage: `Broker::InstaPoolIo` (r:2 w:2) + /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) fn assign() -> Weight { // Proof Size summary in bytes: - // Measured: `545` - // Estimated: `4681` - // Minimum execution time: 30_336_000 picoseconds. - Weight::from_parts(32_040_000, 4681) - .saturating_add(T::DbWeight::get().reads(4_u64)) - .saturating_add(T::DbWeight::get().writes(2_u64)) + // Measured: `915` + // Estimated: `5996` + // Minimum execution time: 59_667_000 picoseconds. + Weight::from_parts(61_364_000, 5996) + .saturating_add(T::DbWeight::get().reads(7_u64)) + .saturating_add(T::DbWeight::get().writes(5_u64)) } /// Storage: `Broker::Status` (r:1 w:0) /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) @@ -292,10 +309,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`) fn pool() -> Weight { // Proof Size summary in bytes: - // Measured: `580` + // Measured: `776` // Estimated: `5996` - // Minimum execution time: 37_417_000 picoseconds. - Weight::from_parts(39_629_000, 5996) + // Minimum execution time: 46_144_000 picoseconds. + Weight::from_parts(48_459_000, 5996) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } @@ -308,12 +325,12 @@ impl WeightInfo for SubstrateWeight { /// The range of component `m` is `[1, 3]`. fn claim_revenue(m: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `682` + // Measured: `878` // Estimated: `6196 + m * (2520 ±0)` - // Minimum execution time: 68_403_000 picoseconds. - Weight::from_parts(71_259_395, 6196) - // Standard Error: 70_171 - .saturating_add(Weight::from_parts(1_324_469, 0).saturating_mul(m.into())) + // Minimum execution time: 83_745_000 picoseconds. + Weight::from_parts(85_702_575, 6196) + // Standard Error: 71_155 + .saturating_add(Weight::from_parts(1_790_395, 0).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(m.into()))) .saturating_add(T::DbWeight::get().writes(5_u64)) @@ -325,8 +342,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `103` // Estimated: `3593` - // Minimum execution time: 43_427_000 picoseconds. - Weight::from_parts(46_449_000, 3593) + // Minimum execution time: 51_715_000 picoseconds. + Weight::from_parts(52_927_000, 3593) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -336,10 +353,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) fn drop_region() -> Weight { // Proof Size summary in bytes: - // Measured: `408` + // Measured: `604` // Estimated: `3551` - // Minimum execution time: 33_171_000 picoseconds. - Weight::from_parts(36_281_000, 3551) + // Minimum execution time: 40_298_000 picoseconds. + Weight::from_parts(43_487_000, 3551) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -351,10 +368,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`) fn drop_contribution() -> Weight { // Proof Size summary in bytes: - // Measured: `405` + // Measured: `601` // Estimated: `3533` - // Minimum execution time: 44_610_000 picoseconds. - Weight::from_parts(51_348_000, 3533) + // Minimum execution time: 58_565_000 picoseconds. + Weight::from_parts(61_824_000, 3533) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -368,10 +385,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn drop_history() -> Weight { // Proof Size summary in bytes: - // Measured: `818` + // Measured: `1117` // Estimated: `3593` - // Minimum execution time: 53_872_000 picoseconds. - Weight::from_parts(61_465_000, 3593) + // Minimum execution time: 75_403_000 picoseconds. + Weight::from_parts(79_074_000, 3593) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -381,32 +398,34 @@ impl WeightInfo for SubstrateWeight { /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`) fn drop_renewal() -> Weight { // Proof Size summary in bytes: - // Measured: `465` + // Measured: `661` // Estimated: `4698` - // Minimum execution time: 36_358_000 picoseconds. - Weight::from_parts(41_672_000, 4698) + // Minimum execution time: 40_829_000 picoseconds. + Weight::from_parts(44_449_000, 4698) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// The range of component `n` is `[0, 1000]`. - fn request_core_count(_n: u32, ) -> Weight { + fn request_core_count(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_748_000 picoseconds. - Weight::from_parts(3_989_484, 0) + // Minimum execution time: 5_969_000 picoseconds. + Weight::from_parts(6_388_533, 0) + // Standard Error: 18 + .saturating_add(Weight::from_parts(45, 0).saturating_mul(n.into())) } /// Storage: `Broker::CoreCountInbox` (r:1 w:1) /// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) /// The range of component `n` is `[0, 1000]`. fn process_core_count(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `208` + // Measured: `404` // Estimated: `1487` - // Minimum execution time: 5_733_000 picoseconds. - Weight::from_parts(6_067_265, 1487) - // Standard Error: 9 - .saturating_add(Weight::from_parts(16, 0).saturating_mul(n.into())) + // Minimum execution time: 9_385_000 picoseconds. + Weight::from_parts(10_281_617, 1487) + // Standard Error: 33 + .saturating_add(Weight::from_parts(64, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -418,10 +437,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn process_revenue() -> Weight { // Proof Size summary in bytes: - // Measured: `471` + // Measured: `667` // Estimated: `3593` - // Minimum execution time: 38_503_000 picoseconds. - Weight::from_parts(39_956_000, 3593) + // Minimum execution time: 48_990_000 picoseconds. + Weight::from_parts(50_388_000, 3593) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -429,6 +448,8 @@ impl WeightInfo for SubstrateWeight { /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) /// Storage: `Broker::Reservations` (r:1 w:0) /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`) + /// Storage: `Broker::ForceReservations` (r:1 w:0) + /// Proof: `Broker::ForceReservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`) /// Storage: `Broker::Leases` (r:1 w:1) /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`) /// Storage: `Broker::AutoRenewals` (r:1 w:1) @@ -448,13 +469,13 @@ impl WeightInfo for SubstrateWeight { /// The range of component `n` is `[0, 1000]`. fn rotate_sale(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `8126` + // Measured: `8549` // Estimated: `38070` - // Minimum execution time: 21_763_000 picoseconds. - Weight::from_parts(325_729_398, 38070) - // Standard Error: 6_937 - .saturating_add(Weight::from_parts(1_323_585, 0).saturating_mul(n.into())) - .saturating_add(T::DbWeight::get().reads(26_u64)) + // Minimum execution time: 33_502_000 picoseconds. + Weight::from_parts(430_499_208, 38070) + // Standard Error: 8_954 + .saturating_add(Weight::from_parts(1_608_385, 0).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().reads(27_u64)) .saturating_add(T::DbWeight::get().writes(34_u64)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into()))) } @@ -464,10 +485,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`) fn process_pool() -> Weight { // Proof Size summary in bytes: - // Measured: `0` + // Measured: `180` // Estimated: `3493` - // Minimum execution time: 5_015_000 picoseconds. - Weight::from_parts(5_306_000, 3493) + // Minimum execution time: 10_310_000 picoseconds. + Weight::from_parts(10_828_000, 3493) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -477,10 +498,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: `Broker::Workload` (`max_values`: None, `max_size`: Some(1212), added: 3687, mode: `MaxEncodedLen`) fn process_core_schedule() -> Weight { // Proof Size summary in bytes: - // Measured: `1223` + // Measured: `1423` // Estimated: `4681` - // Minimum execution time: 11_737_000 picoseconds. - Weight::from_parts(12_121_000, 4681) + // Minimum execution time: 22_072_000 picoseconds. + Weight::from_parts(23_059_000, 4681) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -488,8 +509,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 130_000 picoseconds. - Weight::from_parts(184_000, 0) + // Minimum execution time: 170_000 picoseconds. + Weight::from_parts(198_000, 0) } /// Storage: `Broker::CoreCountInbox` (r:0 w:1) /// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) @@ -497,8 +518,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_823_000 picoseconds. - Weight::from_parts(1_907_000, 0) + // Minimum execution time: 3_079_000 picoseconds. + Weight::from_parts(3_295_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: `Broker::RevenueInbox` (r:0 w:1) @@ -507,8 +528,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_986_000 picoseconds. - Weight::from_parts(2_067_000, 0) + // Minimum execution time: 3_291_000 picoseconds. + Weight::from_parts(3_474_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: `Broker::Status` (r:1 w:1) @@ -521,10 +542,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: `Broker::RevenueInbox` (`max_values`: Some(1), `max_size`: Some(20), added: 515, mode: `MaxEncodedLen`) fn do_tick_base() -> Weight { // Proof Size summary in bytes: - // Measured: `245` + // Measured: `441` // Estimated: `1516` - // Minimum execution time: 10_211_000 picoseconds. - Weight::from_parts(10_652_000, 1516) + // Minimum execution time: 17_540_000 picoseconds. + Weight::from_parts(18_239_000, 1516) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -532,27 +553,29 @@ impl WeightInfo for SubstrateWeight { /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`) /// Storage: `Broker::Reservations` (r:1 w:1) /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`) + /// Storage: `Broker::ForceReservations` (r:1 w:1) + /// Proof: `Broker::ForceReservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`) /// Storage: `Broker::Status` (r:1 w:0) /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) - /// Storage: `Broker::Workplan` (r:0 w:2) + /// Storage: `Broker::Workplan` (r:0 w:1) /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) fn force_reserve() -> Weight { // Proof Size summary in bytes: - // Measured: `5073` + // Measured: `5320` // Estimated: `7496` - // Minimum execution time: 27_298_000 picoseconds. - Weight::from_parts(28_072_000, 7496) - .saturating_add(T::DbWeight::get().reads(3_u64)) + // Minimum execution time: 44_691_000 picoseconds. + Weight::from_parts(47_017_000, 7496) + .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } /// Storage: `Broker::Leases` (r:1 w:1) /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`) fn swap_leases() -> Weight { // Proof Size summary in bytes: - // Measured: `39` + // Measured: `239` // Estimated: `1526` - // Minimum execution time: 4_402_000 picoseconds. - Weight::from_parts(4_626_000, 1526) + // Minimum execution time: 11_655_000 picoseconds. + Weight::from_parts(12_061_000, 1526) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -572,10 +595,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) fn enable_auto_renew() -> Weight { // Proof Size summary in bytes: - // Measured: `888` + // Measured: `1121` // Estimated: `4698` - // Minimum execution time: 79_617_000 picoseconds. - Weight::from_parts(84_468_000, 4698) + // Minimum execution time: 94_487_000 picoseconds. + Weight::from_parts(97_722_000, 4698) .saturating_add(T::DbWeight::get().reads(6_u64)) .saturating_add(T::DbWeight::get().writes(6_u64)) } @@ -583,10 +606,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(101), added: 596, mode: `MaxEncodedLen`) fn disable_auto_renew() -> Weight { // Proof Size summary in bytes: - // Measured: `382` + // Measured: `578` // Estimated: `1586` - // Minimum execution time: 14_582_000 picoseconds. - Weight::from_parts(15_206_000, 1586) + // Minimum execution time: 24_599_000 picoseconds. + Weight::from_parts(25_717_000, 1586) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -594,17 +617,17 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 227_000 picoseconds. - Weight::from_parts(251_000, 0) + // Minimum execution time: 275_000 picoseconds. + Weight::from_parts(324_000, 0) } /// Storage: `Broker::Workplan` (r:1 w:1) /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) fn remove_assignment() -> Weight { // Proof Size summary in bytes: - // Measured: `408` + // Measured: `604` // Estimated: `4681` - // Minimum execution time: 14_911_000 picoseconds. - Weight::from_parts(15_782_000, 4681) + // Minimum execution time: 21_784_000 picoseconds. + Weight::from_parts(22_797_000, 4681) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -612,19 +635,23 @@ impl WeightInfo for SubstrateWeight { /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`) fn remove_potential_renewal() -> Weight { // Proof Size summary in bytes: - // Measured: `450` + // Measured: `452` // Estimated: `4698` - // Minimum execution time: 21_575_000 picoseconds. - Weight::from_parts(22_584_000, 4698) + // Minimum execution time: 19_900_000 picoseconds. + Weight::from_parts(21_064_000, 4698) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } + /// Storage: `Broker::Regions` (r:1 w:1) + /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) fn force_transfer() -> Weight { // Proof Size summary in bytes: // Measured: `496` - // Estimated: `0` - // Minimum execution time: 22_033_000 picoseconds. - Weight::from_parts(22_996_000, 0) + // Estimated: `3551` + // Minimum execution time: 22_866_000 picoseconds. + Weight::from_parts(23_961_000, 3551) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) } } @@ -636,18 +663,18 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_989_000 picoseconds. - Weight::from_parts(2_154_000, 0) + // Minimum execution time: 3_376_000 picoseconds. + Weight::from_parts(3_576_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: `Broker::Reservations` (r:1 w:1) /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`) fn reserve() -> Weight { // Proof Size summary in bytes: - // Measured: `4816` + // Measured: `5016` // Estimated: `7496` - // Minimum execution time: 14_828_000 picoseconds. - Weight::from_parts(15_421_000, 7496) + // Minimum execution time: 25_780_000 picoseconds. + Weight::from_parts(27_282_000, 7496) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -655,10 +682,10 @@ impl WeightInfo for () { /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`) fn unreserve() -> Weight { // Proof Size summary in bytes: - // Measured: `6018` + // Measured: `6218` // Estimated: `7496` - // Minimum execution time: 14_330_000 picoseconds. - Weight::from_parts(14_621_000, 7496) + // Minimum execution time: 24_714_000 picoseconds. + Weight::from_parts(25_914_000, 7496) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -666,10 +693,10 @@ impl WeightInfo for () { /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`) fn set_lease() -> Weight { // Proof Size summary in bytes: - // Measured: `39` + // Measured: `239` // Estimated: `1526` - // Minimum execution time: 7_456_000 picoseconds. - Weight::from_parts(7_707_000, 1526) + // Minimum execution time: 16_029_000 picoseconds. + Weight::from_parts(17_580_000, 1526) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -677,10 +704,10 @@ impl WeightInfo for () { /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`) fn remove_lease() -> Weight { // Proof Size summary in bytes: - // Measured: `47` + // Measured: `247` // Estimated: `1526` - // Minimum execution time: 7_047_000 picoseconds. - Weight::from_parts(7_339_000, 1526) + // Minimum execution time: 15_515_000 picoseconds. + Weight::from_parts(16_399_000, 1526) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -692,6 +719,8 @@ impl WeightInfo for () { /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`) /// Storage: `Broker::InstaPoolIo` (r:3 w:3) /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) + /// Storage: `Broker::ForceReservations` (r:1 w:0) + /// Proof: `Broker::ForceReservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`) /// Storage: `Broker::AutoRenewals` (r:1 w:1) /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(101), added: 596, mode: `MaxEncodedLen`) /// Storage: `Broker::SaleInfo` (r:0 w:1) @@ -703,13 +732,13 @@ impl WeightInfo for () { /// The range of component `n` is `[0, 1000]`. fn start_sales(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `6134` + // Measured: `6330` // Estimated: `8499` - // Minimum execution time: 27_984_000 picoseconds. - Weight::from_parts(50_193_074, 8499) - // Standard Error: 487 - .saturating_add(Weight::from_parts(2_516, 0).saturating_mul(n.into())) - .saturating_add(RocksDbWeight::get().reads(7_u64)) + // Minimum execution time: 40_215_000 picoseconds. + Weight::from_parts(75_347_003, 8499) + // Standard Error: 762 + .saturating_add(Weight::from_parts(3_511, 0).saturating_mul(n.into())) + .saturating_add(RocksDbWeight::get().reads(8_u64)) .saturating_add(RocksDbWeight::get().writes(16_u64)) } /// Storage: `Broker::Status` (r:1 w:0) @@ -720,10 +749,10 @@ impl WeightInfo for () { /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) fn purchase() -> Weight { // Proof Size summary in bytes: - // Measured: `274` + // Measured: `470` // Estimated: `1542` - // Minimum execution time: 36_368_000 picoseconds. - Weight::from_parts(37_544_000, 1542) + // Minimum execution time: 49_442_000 picoseconds. + Weight::from_parts(50_364_000, 1542) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -739,10 +768,10 @@ impl WeightInfo for () { /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) fn renew() -> Weight { // Proof Size summary in bytes: - // Measured: `392` + // Measured: `588` // Estimated: `4698` - // Minimum execution time: 63_735_000 picoseconds. - Weight::from_parts(72_328_000, 4698) + // Minimum execution time: 73_198_000 picoseconds. + Weight::from_parts(74_219_000, 4698) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } @@ -750,34 +779,46 @@ impl WeightInfo for () { /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) fn transfer() -> Weight { // Proof Size summary in bytes: - // Measured: `300` + // Measured: `496` // Estimated: `3551` - // Minimum execution time: 15_308_000 picoseconds. - Weight::from_parts(16_395_000, 3551) + // Minimum execution time: 23_270_000 picoseconds. + Weight::from_parts(24_128_000, 3551) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } + /// Storage: `Broker::Status` (r:1 w:0) + /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) /// Storage: `Broker::Regions` (r:1 w:2) /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) + /// Storage: `Broker::InstaPoolContribution` (r:1 w:1) + /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`) + /// Storage: `Broker::InstaPoolIo` (r:2 w:2) + /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) fn partition() -> Weight { // Proof Size summary in bytes: - // Measured: `300` - // Estimated: `3551` - // Minimum execution time: 17_210_000 picoseconds. - Weight::from_parts(17_926_000, 3551) - .saturating_add(RocksDbWeight::get().reads(1_u64)) - .saturating_add(RocksDbWeight::get().writes(2_u64)) + // Measured: `684` + // Estimated: `5996` + // Minimum execution time: 46_164_000 picoseconds. + Weight::from_parts(47_622_000, 5996) + .saturating_add(RocksDbWeight::get().reads(5_u64)) + .saturating_add(RocksDbWeight::get().writes(5_u64)) } + /// Storage: `Broker::Status` (r:1 w:0) + /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) /// Storage: `Broker::Regions` (r:1 w:3) /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) + /// Storage: `Broker::InstaPoolContribution` (r:1 w:1) + /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`) + /// Storage: `Broker::InstaPoolIo` (r:2 w:2) + /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) fn interlace() -> Weight { // Proof Size summary in bytes: - // Measured: `300` - // Estimated: `3551` - // Minimum execution time: 18_489_000 picoseconds. - Weight::from_parts(19_209_000, 3551) - .saturating_add(RocksDbWeight::get().reads(1_u64)) - .saturating_add(RocksDbWeight::get().writes(3_u64)) + // Measured: `684` + // Estimated: `5996` + // Minimum execution time: 47_858_000 picoseconds. + Weight::from_parts(50_147_000, 5996) + .saturating_add(RocksDbWeight::get().reads(5_u64)) + .saturating_add(RocksDbWeight::get().writes(6_u64)) } /// Storage: `Broker::Configuration` (r:1 w:0) /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) @@ -787,14 +828,18 @@ impl WeightInfo for () { /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) /// Storage: `Broker::Workplan` (r:1 w:1) /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) + /// Storage: `Broker::InstaPoolContribution` (r:1 w:1) + /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`) + /// Storage: `Broker::InstaPoolIo` (r:2 w:2) + /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) fn assign() -> Weight { // Proof Size summary in bytes: - // Measured: `545` - // Estimated: `4681` - // Minimum execution time: 30_336_000 picoseconds. - Weight::from_parts(32_040_000, 4681) - .saturating_add(RocksDbWeight::get().reads(4_u64)) - .saturating_add(RocksDbWeight::get().writes(2_u64)) + // Measured: `915` + // Estimated: `5996` + // Minimum execution time: 59_667_000 picoseconds. + Weight::from_parts(61_364_000, 5996) + .saturating_add(RocksDbWeight::get().reads(7_u64)) + .saturating_add(RocksDbWeight::get().writes(5_u64)) } /// Storage: `Broker::Status` (r:1 w:0) /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) @@ -808,10 +853,10 @@ impl WeightInfo for () { /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`) fn pool() -> Weight { // Proof Size summary in bytes: - // Measured: `580` + // Measured: `776` // Estimated: `5996` - // Minimum execution time: 37_417_000 picoseconds. - Weight::from_parts(39_629_000, 5996) + // Minimum execution time: 46_144_000 picoseconds. + Weight::from_parts(48_459_000, 5996) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(5_u64)) } @@ -824,12 +869,12 @@ impl WeightInfo for () { /// The range of component `m` is `[1, 3]`. fn claim_revenue(m: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `682` + // Measured: `878` // Estimated: `6196 + m * (2520 ±0)` - // Minimum execution time: 68_403_000 picoseconds. - Weight::from_parts(71_259_395, 6196) - // Standard Error: 70_171 - .saturating_add(Weight::from_parts(1_324_469, 0).saturating_mul(m.into())) + // Minimum execution time: 83_745_000 picoseconds. + Weight::from_parts(85_702_575, 6196) + // Standard Error: 71_155 + .saturating_add(Weight::from_parts(1_790_395, 0).saturating_mul(m.into())) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(m.into()))) .saturating_add(RocksDbWeight::get().writes(5_u64)) @@ -841,8 +886,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `103` // Estimated: `3593` - // Minimum execution time: 43_427_000 picoseconds. - Weight::from_parts(46_449_000, 3593) + // Minimum execution time: 51_715_000 picoseconds. + Weight::from_parts(52_927_000, 3593) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -852,10 +897,10 @@ impl WeightInfo for () { /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) fn drop_region() -> Weight { // Proof Size summary in bytes: - // Measured: `408` + // Measured: `604` // Estimated: `3551` - // Minimum execution time: 33_171_000 picoseconds. - Weight::from_parts(36_281_000, 3551) + // Minimum execution time: 40_298_000 picoseconds. + Weight::from_parts(43_487_000, 3551) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -867,10 +912,10 @@ impl WeightInfo for () { /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`) fn drop_contribution() -> Weight { // Proof Size summary in bytes: - // Measured: `405` + // Measured: `601` // Estimated: `3533` - // Minimum execution time: 44_610_000 picoseconds. - Weight::from_parts(51_348_000, 3533) + // Minimum execution time: 58_565_000 picoseconds. + Weight::from_parts(61_824_000, 3533) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -884,10 +929,10 @@ impl WeightInfo for () { /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn drop_history() -> Weight { // Proof Size summary in bytes: - // Measured: `818` + // Measured: `1117` // Estimated: `3593` - // Minimum execution time: 53_872_000 picoseconds. - Weight::from_parts(61_465_000, 3593) + // Minimum execution time: 75_403_000 picoseconds. + Weight::from_parts(79_074_000, 3593) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -897,32 +942,34 @@ impl WeightInfo for () { /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`) fn drop_renewal() -> Weight { // Proof Size summary in bytes: - // Measured: `465` + // Measured: `661` // Estimated: `4698` - // Minimum execution time: 36_358_000 picoseconds. - Weight::from_parts(41_672_000, 4698) + // Minimum execution time: 40_829_000 picoseconds. + Weight::from_parts(44_449_000, 4698) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// The range of component `n` is `[0, 1000]`. - fn request_core_count(_n: u32, ) -> Weight { + fn request_core_count(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_748_000 picoseconds. - Weight::from_parts(3_989_484, 0) + // Minimum execution time: 5_969_000 picoseconds. + Weight::from_parts(6_388_533, 0) + // Standard Error: 18 + .saturating_add(Weight::from_parts(45, 0).saturating_mul(n.into())) } /// Storage: `Broker::CoreCountInbox` (r:1 w:1) /// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) /// The range of component `n` is `[0, 1000]`. fn process_core_count(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `208` + // Measured: `404` // Estimated: `1487` - // Minimum execution time: 5_733_000 picoseconds. - Weight::from_parts(6_067_265, 1487) - // Standard Error: 9 - .saturating_add(Weight::from_parts(16, 0).saturating_mul(n.into())) + // Minimum execution time: 9_385_000 picoseconds. + Weight::from_parts(10_281_617, 1487) + // Standard Error: 33 + .saturating_add(Weight::from_parts(64, 0).saturating_mul(n.into())) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -934,10 +981,10 @@ impl WeightInfo for () { /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn process_revenue() -> Weight { // Proof Size summary in bytes: - // Measured: `471` + // Measured: `667` // Estimated: `3593` - // Minimum execution time: 38_503_000 picoseconds. - Weight::from_parts(39_956_000, 3593) + // Minimum execution time: 48_990_000 picoseconds. + Weight::from_parts(50_388_000, 3593) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -945,6 +992,8 @@ impl WeightInfo for () { /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) /// Storage: `Broker::Reservations` (r:1 w:0) /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`) + /// Storage: `Broker::ForceReservations` (r:1 w:0) + /// Proof: `Broker::ForceReservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`) /// Storage: `Broker::Leases` (r:1 w:1) /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`) /// Storage: `Broker::AutoRenewals` (r:1 w:1) @@ -964,13 +1013,13 @@ impl WeightInfo for () { /// The range of component `n` is `[0, 1000]`. fn rotate_sale(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `8126` + // Measured: `8549` // Estimated: `38070` - // Minimum execution time: 21_763_000 picoseconds. - Weight::from_parts(325_729_398, 38070) - // Standard Error: 6_937 - .saturating_add(Weight::from_parts(1_323_585, 0).saturating_mul(n.into())) - .saturating_add(RocksDbWeight::get().reads(26_u64)) + // Minimum execution time: 33_502_000 picoseconds. + Weight::from_parts(430_499_208, 38070) + // Standard Error: 8_954 + .saturating_add(Weight::from_parts(1_608_385, 0).saturating_mul(n.into())) + .saturating_add(RocksDbWeight::get().reads(27_u64)) .saturating_add(RocksDbWeight::get().writes(34_u64)) .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(n.into()))) } @@ -980,10 +1029,10 @@ impl WeightInfo for () { /// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`) fn process_pool() -> Weight { // Proof Size summary in bytes: - // Measured: `0` + // Measured: `180` // Estimated: `3493` - // Minimum execution time: 5_015_000 picoseconds. - Weight::from_parts(5_306_000, 3493) + // Minimum execution time: 10_310_000 picoseconds. + Weight::from_parts(10_828_000, 3493) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -993,10 +1042,10 @@ impl WeightInfo for () { /// Proof: `Broker::Workload` (`max_values`: None, `max_size`: Some(1212), added: 3687, mode: `MaxEncodedLen`) fn process_core_schedule() -> Weight { // Proof Size summary in bytes: - // Measured: `1223` + // Measured: `1423` // Estimated: `4681` - // Minimum execution time: 11_737_000 picoseconds. - Weight::from_parts(12_121_000, 4681) + // Minimum execution time: 22_072_000 picoseconds. + Weight::from_parts(23_059_000, 4681) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -1004,8 +1053,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 130_000 picoseconds. - Weight::from_parts(184_000, 0) + // Minimum execution time: 170_000 picoseconds. + Weight::from_parts(198_000, 0) } /// Storage: `Broker::CoreCountInbox` (r:0 w:1) /// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) @@ -1013,8 +1062,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_823_000 picoseconds. - Weight::from_parts(1_907_000, 0) + // Minimum execution time: 3_079_000 picoseconds. + Weight::from_parts(3_295_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: `Broker::RevenueInbox` (r:0 w:1) @@ -1023,8 +1072,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_986_000 picoseconds. - Weight::from_parts(2_067_000, 0) + // Minimum execution time: 3_291_000 picoseconds. + Weight::from_parts(3_474_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: `Broker::Status` (r:1 w:1) @@ -1037,10 +1086,10 @@ impl WeightInfo for () { /// Proof: `Broker::RevenueInbox` (`max_values`: Some(1), `max_size`: Some(20), added: 515, mode: `MaxEncodedLen`) fn do_tick_base() -> Weight { // Proof Size summary in bytes: - // Measured: `245` + // Measured: `441` // Estimated: `1516` - // Minimum execution time: 10_211_000 picoseconds. - Weight::from_parts(10_652_000, 1516) + // Minimum execution time: 17_540_000 picoseconds. + Weight::from_parts(18_239_000, 1516) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -1048,27 +1097,29 @@ impl WeightInfo for () { /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`) /// Storage: `Broker::Reservations` (r:1 w:1) /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`) + /// Storage: `Broker::ForceReservations` (r:1 w:1) + /// Proof: `Broker::ForceReservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`) /// Storage: `Broker::Status` (r:1 w:0) /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) - /// Storage: `Broker::Workplan` (r:0 w:2) + /// Storage: `Broker::Workplan` (r:0 w:1) /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) fn force_reserve() -> Weight { // Proof Size summary in bytes: - // Measured: `5073` + // Measured: `5320` // Estimated: `7496` - // Minimum execution time: 27_298_000 picoseconds. - Weight::from_parts(28_072_000, 7496) - .saturating_add(RocksDbWeight::get().reads(3_u64)) + // Minimum execution time: 44_691_000 picoseconds. + Weight::from_parts(47_017_000, 7496) + .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } /// Storage: `Broker::Leases` (r:1 w:1) /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`) fn swap_leases() -> Weight { // Proof Size summary in bytes: - // Measured: `39` + // Measured: `239` // Estimated: `1526` - // Minimum execution time: 4_402_000 picoseconds. - Weight::from_parts(4_626_000, 1526) + // Minimum execution time: 11_655_000 picoseconds. + Weight::from_parts(12_061_000, 1526) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -1088,10 +1139,10 @@ impl WeightInfo for () { /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) fn enable_auto_renew() -> Weight { // Proof Size summary in bytes: - // Measured: `888` + // Measured: `1121` // Estimated: `4698` - // Minimum execution time: 79_617_000 picoseconds. - Weight::from_parts(84_468_000, 4698) + // Minimum execution time: 94_487_000 picoseconds. + Weight::from_parts(97_722_000, 4698) .saturating_add(RocksDbWeight::get().reads(6_u64)) .saturating_add(RocksDbWeight::get().writes(6_u64)) } @@ -1099,10 +1150,10 @@ impl WeightInfo for () { /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(101), added: 596, mode: `MaxEncodedLen`) fn disable_auto_renew() -> Weight { // Proof Size summary in bytes: - // Measured: `382` + // Measured: `578` // Estimated: `1586` - // Minimum execution time: 14_582_000 picoseconds. - Weight::from_parts(15_206_000, 1586) + // Minimum execution time: 24_599_000 picoseconds. + Weight::from_parts(25_717_000, 1586) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -1110,17 +1161,17 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 227_000 picoseconds. - Weight::from_parts(251_000, 0) + // Minimum execution time: 275_000 picoseconds. + Weight::from_parts(324_000, 0) } /// Storage: `Broker::Workplan` (r:1 w:1) /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) fn remove_assignment() -> Weight { // Proof Size summary in bytes: - // Measured: `408` + // Measured: `604` // Estimated: `4681` - // Minimum execution time: 14_911_000 picoseconds. - Weight::from_parts(15_782_000, 4681) + // Minimum execution time: 21_784_000 picoseconds. + Weight::from_parts(22_797_000, 4681) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -1128,18 +1179,22 @@ impl WeightInfo for () { /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`) fn remove_potential_renewal() -> Weight { // Proof Size summary in bytes: - // Measured: `450` + // Measured: `452` // Estimated: `4698` - // Minimum execution time: 21_575_000 picoseconds. - Weight::from_parts(22_584_000, 4698) + // Minimum execution time: 19_900_000 picoseconds. + Weight::from_parts(21_064_000, 4698) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } + /// Storage: `Broker::Regions` (r:1 w:1) + /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) fn force_transfer() -> Weight { // Proof Size summary in bytes: // Measured: `496` - // Estimated: `0` - // Minimum execution time: 22_033_000 picoseconds. - Weight::from_parts(22_996_000, 0) + // Estimated: `3551` + // Minimum execution time: 22_866_000 picoseconds. + Weight::from_parts(23_961_000, 3551) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) } } From 3e908e27b76384a652dd830d65565b5691665f93 Mon Sep 17 00:00:00 2001 From: mertwole Date: Wed, 4 Feb 2026 15:45:56 +0100 Subject: [PATCH 08/11] Undo weight changes except force_transfer --- .../src/weights/pallet_broker.rs | 305 +++++----- substrate/frame/broker/src/weights.rs | 547 ++++++++---------- 2 files changed, 390 insertions(+), 462 deletions(-) diff --git a/cumulus/parachains/runtimes/coretime/coretime-westend/src/weights/pallet_broker.rs b/cumulus/parachains/runtimes/coretime/coretime-westend/src/weights/pallet_broker.rs index 9c676ae234fee..06ca4f5bc0e7a 100644 --- a/cumulus/parachains/runtimes/coretime/coretime-westend/src/weights/pallet_broker.rs +++ b/cumulus/parachains/runtimes/coretime/coretime-westend/src/weights/pallet_broker.rs @@ -16,9 +16,9 @@ //! Autogenerated weights for `pallet_broker` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2026-02-03, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `6fa8e453c383`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` +//! HOSTNAME: `050e4dc4313a`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` //! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024 // Executed Command: @@ -56,8 +56,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_438_000 picoseconds. - Weight::from_parts(3_553_000, 0) + // Minimum execution time: 2_566_000 picoseconds. + Weight::from_parts(2_786_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -67,8 +67,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `10888` // Estimated: `13506` - // Minimum execution time: 29_092_000 picoseconds. - Weight::from_parts(29_848_000, 0) + // Minimum execution time: 24_733_000 picoseconds. + Weight::from_parts(25_268_000, 0) .saturating_add(Weight::from_parts(0, 13506)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -79,8 +79,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `12090` // Estimated: `13506` - // Minimum execution time: 28_288_000 picoseconds. - Weight::from_parts(28_946_000, 0) + // Minimum execution time: 23_819_000 picoseconds. + Weight::from_parts(24_701_000, 0) .saturating_add(Weight::from_parts(0, 13506)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -95,8 +95,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `146` // Estimated: `1631` - // Minimum execution time: 14_804_000 picoseconds. - Weight::from_parts(15_249_000, 0) + // Minimum execution time: 12_897_000 picoseconds. + Weight::from_parts(13_446_000, 0) .saturating_add(Weight::from_parts(0, 1631)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(1)) @@ -107,8 +107,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `150` // Estimated: `1566` - // Minimum execution time: 11_625_000 picoseconds. - Weight::from_parts(12_061_000, 0) + // Minimum execution time: 10_319_000 picoseconds. + Weight::from_parts(10_718_000, 0) .saturating_add(Weight::from_parts(0, 1566)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -119,20 +119,18 @@ impl pallet_broker::WeightInfo for WeightInfo { /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(81), added: 576, mode: `MaxEncodedLen`) /// Storage: `Broker::Reservations` (r:1 w:0) /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(12021), added: 12516, mode: `MaxEncodedLen`) - /// Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0) - /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) + /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::ValidationData` (r:1 w:0) /// Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::LastRelayChainBlockNumber` (r:1 w:0) /// Proof: `ParachainSystem::LastRelayChainBlockNumber` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `Broker::InstaPoolIo` (r:3 w:3) /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) - /// Storage: `Broker::ForceReservations` (r:1 w:0) - /// Proof: `Broker::ForceReservations` (`max_values`: Some(1), `max_size`: Some(12021), added: 12516, mode: `MaxEncodedLen`) /// Storage: `Broker::AutoRenewals` (r:1 w:1) /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(201), added: 696, mode: `MaxEncodedLen`) /// Storage: `Broker::SaleInfo` (r:0 w:1) @@ -146,13 +144,13 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `12247` // Estimated: `14773 + n * (1 ±0)` - // Minimum execution time: 70_709_000 picoseconds. - Weight::from_parts(133_647_718, 0) + // Minimum execution time: 50_462_000 picoseconds. + Weight::from_parts(95_701_761, 0) .saturating_add(Weight::from_parts(0, 14773)) - // Standard Error: 1_348 - .saturating_add(Weight::from_parts(7_276, 0).saturating_mul(n.into())) - .saturating_add(T::DbWeight::get().reads(13)) - .saturating_add(T::DbWeight::get().writes(25)) + // Standard Error: 1_017 + .saturating_add(Weight::from_parts(4_668, 0).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().reads(12)) + .saturating_add(T::DbWeight::get().writes(26)) .saturating_add(Weight::from_parts(0, 1).saturating_mul(n.into())) } /// Storage: `Broker::Status` (r:1 w:0) @@ -167,10 +165,10 @@ impl pallet_broker::WeightInfo for WeightInfo { /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) fn purchase() -> Weight { // Proof Size summary in bytes: - // Measured: `403` + // Measured: `437` // Estimated: `3593` - // Minimum execution time: 74_294_000 picoseconds. - Weight::from_parts(76_471_000, 0) + // Minimum execution time: 55_310_000 picoseconds. + Weight::from_parts(56_779_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) @@ -183,7 +181,7 @@ impl pallet_broker::WeightInfo for WeightInfo { /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`) /// Storage: `Broker::PotentialRenewals` (r:1 w:2) /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`) - /// Storage: `System::Account` (r:1 w:1) + /// Storage: `System::Account` (r:1 w:0) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// Storage: `ParachainSystem::ValidationData` (r:1 w:0) /// Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) @@ -191,13 +189,13 @@ impl pallet_broker::WeightInfo for WeightInfo { /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) fn renew() -> Weight { // Proof Size summary in bytes: - // Measured: `624` + // Measured: `658` // Estimated: `4698` - // Minimum execution time: 102_417_000 picoseconds. - Weight::from_parts(106_791_000, 0) + // Minimum execution time: 96_952_000 picoseconds. + Weight::from_parts(103_889_000, 0) .saturating_add(Weight::from_parts(0, 4698)) .saturating_add(T::DbWeight::get().reads(6)) - .saturating_add(T::DbWeight::get().writes(5)) + .saturating_add(T::DbWeight::get().writes(4)) } /// Storage: `Broker::Regions` (r:1 w:1) /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) @@ -205,47 +203,35 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `358` // Estimated: `3551` - // Minimum execution time: 23_233_000 picoseconds. - Weight::from_parts(24_440_000, 0) + // Minimum execution time: 20_830_000 picoseconds. + Weight::from_parts(21_754_000, 0) .saturating_add(Weight::from_parts(0, 3551)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: `Broker::Status` (r:1 w:0) - /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) /// Storage: `Broker::Regions` (r:1 w:2) /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) - /// Storage: `Broker::InstaPoolContribution` (r:1 w:1) - /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`) - /// Storage: `Broker::InstaPoolIo` (r:2 w:2) - /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) fn partition() -> Weight { // Proof Size summary in bytes: - // Measured: `577` - // Estimated: `5996` - // Minimum execution time: 47_283_000 picoseconds. - Weight::from_parts(48_657_000, 0) - .saturating_add(Weight::from_parts(0, 5996)) - .saturating_add(T::DbWeight::get().reads(5)) - .saturating_add(T::DbWeight::get().writes(5)) + // Measured: `358` + // Estimated: `3551` + // Minimum execution time: 22_556_000 picoseconds. + Weight::from_parts(23_385_000, 0) + .saturating_add(Weight::from_parts(0, 3551)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(2)) } - /// Storage: `Broker::Status` (r:1 w:0) - /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) /// Storage: `Broker::Regions` (r:1 w:3) /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) - /// Storage: `Broker::InstaPoolContribution` (r:1 w:1) - /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`) - /// Storage: `Broker::InstaPoolIo` (r:2 w:2) - /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) fn interlace() -> Weight { // Proof Size summary in bytes: - // Measured: `577` - // Estimated: `5996` - // Minimum execution time: 48_646_000 picoseconds. - Weight::from_parts(50_486_000, 0) - .saturating_add(Weight::from_parts(0, 5996)) - .saturating_add(T::DbWeight::get().reads(5)) - .saturating_add(T::DbWeight::get().writes(6)) + // Measured: `358` + // Estimated: `3551` + // Minimum execution time: 24_183_000 picoseconds. + Weight::from_parts(24_668_000, 0) + .saturating_add(Weight::from_parts(0, 3551)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(3)) } /// Storage: `Broker::Configuration` (r:1 w:0) /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) @@ -255,19 +241,15 @@ impl pallet_broker::WeightInfo for WeightInfo { /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) /// Storage: `Broker::Workplan` (r:1 w:1) /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) - /// Storage: `Broker::InstaPoolContribution` (r:1 w:1) - /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`) - /// Storage: `Broker::InstaPoolIo` (r:2 w:2) - /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) fn assign() -> Weight { // Proof Size summary in bytes: - // Measured: `945` - // Estimated: `5996` - // Minimum execution time: 61_503_000 picoseconds. - Weight::from_parts(64_811_000, 0) - .saturating_add(Weight::from_parts(0, 5996)) - .saturating_add(T::DbWeight::get().reads(7)) - .saturating_add(T::DbWeight::get().writes(5)) + // Measured: `736` + // Estimated: `4681` + // Minimum execution time: 35_180_000 picoseconds. + Weight::from_parts(36_474_000, 0) + .saturating_add(Weight::from_parts(0, 4681)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(2)) } /// Storage: `Broker::Status` (r:1 w:0) /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) @@ -283,8 +265,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `802` // Estimated: `5996` - // Minimum execution time: 47_386_000 picoseconds. - Weight::from_parts(48_984_000, 0) + // Minimum execution time: 41_629_000 picoseconds. + Weight::from_parts(43_178_000, 0) .saturating_add(Weight::from_parts(0, 5996)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(5)) @@ -300,11 +282,11 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `671` // Estimated: `6196 + m * (2520 ±0)` - // Minimum execution time: 81_408_000 picoseconds. - Weight::from_parts(83_284_372, 0) + // Minimum execution time: 71_315_000 picoseconds. + Weight::from_parts(72_531_865, 0) .saturating_add(Weight::from_parts(0, 6196)) - // Standard Error: 72_398 - .saturating_add(Weight::from_parts(1_933_729, 0).saturating_mul(m.into())) + // Standard Error: 46_998 + .saturating_add(Weight::from_parts(1_837_283, 0).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(m.into()))) .saturating_add(T::DbWeight::get().writes(5)) @@ -312,21 +294,21 @@ impl pallet_broker::WeightInfo for WeightInfo { } /// Storage: `System::Account` (r:1 w:1) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) - /// Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0) - /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) + /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn purchase_credit() -> Weight { // Proof Size summary in bytes: - // Measured: `183` - // Estimated: `3648` - // Minimum execution time: 86_236_000 picoseconds. - Weight::from_parts(89_872_000, 0) - .saturating_add(Weight::from_parts(0, 3648)) + // Measured: `259` + // Estimated: `3724` + // Minimum execution time: 69_827_000 picoseconds. + Weight::from_parts(71_536_000, 0) + .saturating_add(Weight::from_parts(0, 3724)) .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(1)) + .saturating_add(T::DbWeight::get().writes(2)) } /// Storage: `Broker::Status` (r:1 w:0) /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) @@ -336,8 +318,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `466` // Estimated: `3551` - // Minimum execution time: 50_743_000 picoseconds. - Weight::from_parts(52_579_000, 0) + // Minimum execution time: 48_292_000 picoseconds. + Weight::from_parts(68_226_000, 0) .saturating_add(Weight::from_parts(0, 3551)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -352,8 +334,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `463` // Estimated: `3533` - // Minimum execution time: 62_550_000 picoseconds. - Weight::from_parts(67_145_000, 0) + // Minimum execution time: 92_377_000 picoseconds. + Weight::from_parts(136_256_000, 0) .saturating_add(Weight::from_parts(0, 3533)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(1)) @@ -370,8 +352,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `979` // Estimated: `3593` - // Minimum execution time: 78_276_000 picoseconds. - Weight::from_parts(84_422_000, 0) + // Minimum execution time: 111_597_000 picoseconds. + Weight::from_parts(128_005_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(1)) @@ -384,27 +366,30 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `556` // Estimated: `4698` - // Minimum execution time: 47_001_000 picoseconds. - Weight::from_parts(49_561_000, 0) + // Minimum execution time: 47_734_000 picoseconds. + Weight::from_parts(55_112_000, 0) .saturating_add(Weight::from_parts(0, 4698)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0) - /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) + /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// The range of component `n` is `[0, 1000]`. - fn request_core_count(_n: u32, ) -> Weight { + fn request_core_count(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `42` // Estimated: `3507` - // Minimum execution time: 28_381_000 picoseconds. - Weight::from_parts(33_723_996, 0) + // Minimum execution time: 20_333_000 picoseconds. + Weight::from_parts(21_440_973, 0) .saturating_add(Weight::from_parts(0, 3507)) + // Standard Error: 54 + .saturating_add(Weight::from_parts(49, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(1)) } /// Storage: `Broker::CoreCountInbox` (r:1 w:1) /// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) @@ -413,8 +398,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `266` // Estimated: `1487` - // Minimum execution time: 9_042_000 picoseconds. - Weight::from_parts(9_870_836, 0) + // Minimum execution time: 7_821_000 picoseconds. + Weight::from_parts(8_450_013, 0) .saturating_add(Weight::from_parts(0, 1487)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -429,8 +414,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `461` // Estimated: `6196` - // Minimum execution time: 67_698_000 picoseconds. - Weight::from_parts(70_170_000, 0) + // Minimum execution time: 49_283_000 picoseconds. + Weight::from_parts(50_624_000, 0) .saturating_add(Weight::from_parts(0, 6196)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(4)) @@ -441,8 +426,6 @@ impl pallet_broker::WeightInfo for WeightInfo { /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) /// Storage: `Broker::Reservations` (r:1 w:0) /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(12021), added: 12516, mode: `MaxEncodedLen`) - /// Storage: `Broker::ForceReservations` (r:1 w:0) - /// Proof: `Broker::ForceReservations` (`max_values`: Some(1), `max_size`: Some(12021), added: 12516, mode: `MaxEncodedLen`) /// Storage: `Broker::Leases` (r:1 w:1) /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(81), added: 576, mode: `MaxEncodedLen`) /// Storage: `Broker::AutoRenewals` (r:1 w:1) @@ -453,7 +436,7 @@ impl pallet_broker::WeightInfo for WeightInfo { /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) /// Storage: `Broker::PotentialRenewals` (r:20 w:40) /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`) - /// Storage: `System::Account` (r:21 w:21) + /// Storage: `System::Account` (r:21 w:20) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// Storage: `Broker::SaleInfo` (r:0 w:1) /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`) @@ -462,15 +445,15 @@ impl pallet_broker::WeightInfo for WeightInfo { /// The range of component `n` is `[0, 1000]`. fn rotate_sale(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `16446` + // Measured: `16480` // Estimated: `69404 + n * (8 ±1)` - // Minimum execution time: 39_166_000 picoseconds. - Weight::from_parts(985_595_825, 0) + // Minimum execution time: 32_855_000 picoseconds. + Weight::from_parts(698_275_537, 0) .saturating_add(Weight::from_parts(0, 69404)) - // Standard Error: 30_065 - .saturating_add(Weight::from_parts(1_849_592, 0).saturating_mul(n.into())) - .saturating_add(T::DbWeight::get().reads(45)) - .saturating_add(T::DbWeight::get().writes(58)) + // Standard Error: 20_874 + .saturating_add(Weight::from_parts(1_398_903, 0).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().reads(44)) + .saturating_add(T::DbWeight::get().writes(57)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into()))) .saturating_add(Weight::from_parts(0, 8).saturating_mul(n.into())) } @@ -482,8 +465,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `42` // Estimated: `3493` - // Minimum execution time: 8_935_000 picoseconds. - Weight::from_parts(9_357_000, 0) + // Minimum execution time: 7_801_000 picoseconds. + Weight::from_parts(8_153_000, 0) .saturating_add(Weight::from_parts(0, 3493)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -492,36 +475,37 @@ impl pallet_broker::WeightInfo for WeightInfo { /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) /// Storage: `Broker::Workload` (r:1 w:1) /// Proof: `Broker::Workload` (`max_values`: None, `max_size`: Some(1212), added: 3687, mode: `MaxEncodedLen`) - /// Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0) - /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) + /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn process_core_schedule() -> Weight { // Proof Size summary in bytes: // Measured: `1289` // Estimated: `4754` - // Minimum execution time: 45_029_000 picoseconds. - Weight::from_parts(47_021_000, 0) + // Minimum execution time: 31_074_000 picoseconds. + Weight::from_parts(32_112_000, 0) .saturating_add(Weight::from_parts(0, 4754)) .saturating_add(T::DbWeight::get().reads(5)) - .saturating_add(T::DbWeight::get().writes(2)) + .saturating_add(T::DbWeight::get().writes(3)) } - /// Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0) - /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) + /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn request_revenue_info_at() -> Weight { // Proof Size summary in bytes: // Measured: `42` // Estimated: `3507` - // Minimum execution time: 23_587_000 picoseconds. - Weight::from_parts(24_396_000, 0) + // Minimum execution time: 15_680_000 picoseconds. + Weight::from_parts(16_391_000, 0) .saturating_add(Weight::from_parts(0, 3507)) .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(1)) } /// Storage: `Broker::CoreCountInbox` (r:0 w:1) /// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) @@ -529,8 +513,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_090_000 picoseconds. - Weight::from_parts(3_317_000, 0) + // Minimum execution time: 2_309_000 picoseconds. + Weight::from_parts(2_572_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -540,8 +524,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_420_000 picoseconds. - Weight::from_parts(3_684_000, 0) + // Minimum execution time: 2_524_000 picoseconds. + Weight::from_parts(2_678_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -557,11 +541,11 @@ impl pallet_broker::WeightInfo for WeightInfo { /// Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn do_tick_base() -> Weight { // Proof Size summary in bytes: - // Measured: `374` - // Estimated: `1859` - // Minimum execution time: 15_284_000 picoseconds. - Weight::from_parts(15_676_000, 0) - .saturating_add(Weight::from_parts(0, 1859)) + // Measured: `408` + // Estimated: `1893` + // Minimum execution time: 14_125_000 picoseconds. + Weight::from_parts(14_511_000, 0) + .saturating_add(Weight::from_parts(0, 1893)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -569,20 +553,18 @@ impl pallet_broker::WeightInfo for WeightInfo { /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`) /// Storage: `Broker::Reservations` (r:1 w:1) /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(12021), added: 12516, mode: `MaxEncodedLen`) - /// Storage: `Broker::ForceReservations` (r:1 w:1) - /// Proof: `Broker::ForceReservations` (`max_values`: Some(1), `max_size`: Some(12021), added: 12516, mode: `MaxEncodedLen`) /// Storage: `Broker::Status` (r:1 w:0) /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) - /// Storage: `Broker::Workplan` (r:0 w:1) + /// Storage: `Broker::Workplan` (r:0 w:2) /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) fn force_reserve() -> Weight { // Proof Size summary in bytes: - // Measured: `11223` + // Measured: `11141` // Estimated: `13506` - // Minimum execution time: 56_761_000 picoseconds. - Weight::from_parts(58_768_000, 0) + // Minimum execution time: 41_171_000 picoseconds. + Weight::from_parts(42_826_000, 0) .saturating_add(Weight::from_parts(0, 13506)) - .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) } /// Storage: `Broker::Leases` (r:1 w:1) @@ -591,8 +573,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `150` // Estimated: `1566` - // Minimum execution time: 8_077_000 picoseconds. - Weight::from_parts(8_530_000, 0) + // Minimum execution time: 7_231_000 picoseconds. + Weight::from_parts(7_626_000, 0) .saturating_add(Weight::from_parts(0, 1566)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -605,7 +587,7 @@ impl pallet_broker::WeightInfo for WeightInfo { /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) /// Storage: `Broker::Status` (r:1 w:0) /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) - /// Storage: `System::Account` (r:2 w:2) + /// Storage: `System::Account` (r:2 w:1) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// Storage: `ParachainSystem::ValidationData` (r:1 w:0) /// Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) @@ -615,13 +597,13 @@ impl pallet_broker::WeightInfo for WeightInfo { /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) fn enable_auto_renew() -> Weight { // Proof Size summary in bytes: - // Measured: `1417` + // Measured: `1451` // Estimated: `6196` - // Minimum execution time: 124_802_000 picoseconds. - Weight::from_parts(131_865_000, 0) + // Minimum execution time: 105_363_000 picoseconds. + Weight::from_parts(111_333_000, 0) .saturating_add(Weight::from_parts(0, 6196)) .saturating_add(T::DbWeight::get().reads(8)) - .saturating_add(T::DbWeight::get().writes(7)) + .saturating_add(T::DbWeight::get().writes(6)) } /// Storage: `Broker::AutoRenewals` (r:1 w:1) /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(201), added: 696, mode: `MaxEncodedLen`) @@ -629,29 +611,22 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `506` // Estimated: `1686` - // Minimum execution time: 21_661_000 picoseconds. - Weight::from_parts(22_005_000, 0) + // Minimum execution time: 17_752_000 picoseconds. + Weight::from_parts(18_777_000, 0) .saturating_add(Weight::from_parts(0, 1686)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: `System::Account` (r:1 w:1) + /// Storage: `System::Account` (r:1 w:0) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) - /// Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0) - /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) - /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn on_new_timeslice() -> Weight { // Proof Size summary in bytes: - // Measured: `183` - // Estimated: `3648` - // Minimum execution time: 73_216_000 picoseconds. - Weight::from_parts(75_314_000, 0) - .saturating_add(Weight::from_parts(0, 3648)) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(1)) + // Measured: `103` + // Estimated: `3593` + // Minimum execution time: 5_009_000 picoseconds. + Weight::from_parts(5_245_000, 0) + .saturating_add(Weight::from_parts(0, 3593)) + .saturating_add(T::DbWeight::get().reads(1)) } /// Storage: `Broker::Workplan` (r:1 w:1) /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) @@ -659,8 +634,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `602` // Estimated: `4681` - // Minimum execution time: 23_586_000 picoseconds. - Weight::from_parts(24_399_000, 0) + // Minimum execution time: 21_397_000 picoseconds. + Weight::from_parts(21_865_000, 0) .saturating_add(Weight::from_parts(0, 4681)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -669,10 +644,10 @@ impl pallet_broker::WeightInfo for WeightInfo { /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`) fn remove_potential_renewal() -> Weight { // Proof Size summary in bytes: - // Measured: `314` + // Measured: `312` // Estimated: `4698` - // Minimum execution time: 20_438_000 picoseconds. - Weight::from_parts(21_200_000, 0) + // Minimum execution time: 18_266_000 picoseconds. + Weight::from_parts(19_216_000, 0) .saturating_add(Weight::from_parts(0, 4698)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) diff --git a/substrate/frame/broker/src/weights.rs b/substrate/frame/broker/src/weights.rs index 7a2a17e0a7933..6b183de804fee 100644 --- a/substrate/frame/broker/src/weights.rs +++ b/substrate/frame/broker/src/weights.rs @@ -35,9 +35,9 @@ //! Autogenerated weights for `pallet_broker` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2026-02-03, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `6fa8e453c383`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` +//! HOSTNAME: `4563561839a5`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` //! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: `1024` // Executed Command: @@ -58,7 +58,8 @@ // --no-storage-info // --no-min-squares // --no-median-slopes -// --exclude-pallets=pallet_xcm,pallet_xcm_benchmarks::fungible,pallet_xcm_benchmarks::generic,pallet_nomination_pools,pallet_remark,pallet_transaction_storage +// --genesis-builder-policy=none +// --exclude-pallets=pallet_xcm,pallet_xcm_benchmarks::fungible,pallet_xcm_benchmarks::generic,pallet_nomination_pools,pallet_remark,pallet_transaction_storage,pallet_election_provider_multi_block,pallet_election_provider_multi_block::signed,pallet_election_provider_multi_block::unsigned,pallet_election_provider_multi_block::verifier #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] @@ -119,18 +120,18 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_376_000 picoseconds. - Weight::from_parts(3_576_000, 0) + // Minimum execution time: 1_989_000 picoseconds. + Weight::from_parts(2_154_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: `Broker::Reservations` (r:1 w:1) /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`) fn reserve() -> Weight { // Proof Size summary in bytes: - // Measured: `5016` + // Measured: `4816` // Estimated: `7496` - // Minimum execution time: 25_780_000 picoseconds. - Weight::from_parts(27_282_000, 7496) + // Minimum execution time: 14_828_000 picoseconds. + Weight::from_parts(15_421_000, 7496) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -138,10 +139,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`) fn unreserve() -> Weight { // Proof Size summary in bytes: - // Measured: `6218` + // Measured: `6018` // Estimated: `7496` - // Minimum execution time: 24_714_000 picoseconds. - Weight::from_parts(25_914_000, 7496) + // Minimum execution time: 14_330_000 picoseconds. + Weight::from_parts(14_621_000, 7496) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -149,10 +150,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`) fn set_lease() -> Weight { // Proof Size summary in bytes: - // Measured: `239` + // Measured: `39` // Estimated: `1526` - // Minimum execution time: 16_029_000 picoseconds. - Weight::from_parts(17_580_000, 1526) + // Minimum execution time: 7_456_000 picoseconds. + Weight::from_parts(7_707_000, 1526) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -160,10 +161,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`) fn remove_lease() -> Weight { // Proof Size summary in bytes: - // Measured: `247` + // Measured: `47` // Estimated: `1526` - // Minimum execution time: 15_515_000 picoseconds. - Weight::from_parts(16_399_000, 1526) + // Minimum execution time: 7_047_000 picoseconds. + Weight::from_parts(7_339_000, 1526) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -175,8 +176,6 @@ impl WeightInfo for SubstrateWeight { /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`) /// Storage: `Broker::InstaPoolIo` (r:3 w:3) /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) - /// Storage: `Broker::ForceReservations` (r:1 w:0) - /// Proof: `Broker::ForceReservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`) /// Storage: `Broker::AutoRenewals` (r:1 w:1) /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(101), added: 596, mode: `MaxEncodedLen`) /// Storage: `Broker::SaleInfo` (r:0 w:1) @@ -188,13 +187,13 @@ impl WeightInfo for SubstrateWeight { /// The range of component `n` is `[0, 1000]`. fn start_sales(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `6330` + // Measured: `6134` // Estimated: `8499` - // Minimum execution time: 40_215_000 picoseconds. - Weight::from_parts(75_347_003, 8499) - // Standard Error: 762 - .saturating_add(Weight::from_parts(3_511, 0).saturating_mul(n.into())) - .saturating_add(T::DbWeight::get().reads(8_u64)) + // Minimum execution time: 27_984_000 picoseconds. + Weight::from_parts(50_193_074, 8499) + // Standard Error: 487 + .saturating_add(Weight::from_parts(2_516, 0).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().reads(7_u64)) .saturating_add(T::DbWeight::get().writes(16_u64)) } /// Storage: `Broker::Status` (r:1 w:0) @@ -205,10 +204,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) fn purchase() -> Weight { // Proof Size summary in bytes: - // Measured: `470` + // Measured: `274` // Estimated: `1542` - // Minimum execution time: 49_442_000 picoseconds. - Weight::from_parts(50_364_000, 1542) + // Minimum execution time: 36_368_000 picoseconds. + Weight::from_parts(37_544_000, 1542) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -224,10 +223,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) fn renew() -> Weight { // Proof Size summary in bytes: - // Measured: `588` + // Measured: `392` // Estimated: `4698` - // Minimum execution time: 73_198_000 picoseconds. - Weight::from_parts(74_219_000, 4698) + // Minimum execution time: 63_735_000 picoseconds. + Weight::from_parts(72_328_000, 4698) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } @@ -235,46 +234,34 @@ impl WeightInfo for SubstrateWeight { /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) fn transfer() -> Weight { // Proof Size summary in bytes: - // Measured: `496` + // Measured: `300` // Estimated: `3551` - // Minimum execution time: 23_270_000 picoseconds. - Weight::from_parts(24_128_000, 3551) + // Minimum execution time: 15_308_000 picoseconds. + Weight::from_parts(16_395_000, 3551) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: `Broker::Status` (r:1 w:0) - /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) /// Storage: `Broker::Regions` (r:1 w:2) /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) - /// Storage: `Broker::InstaPoolContribution` (r:1 w:1) - /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`) - /// Storage: `Broker::InstaPoolIo` (r:2 w:2) - /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) fn partition() -> Weight { // Proof Size summary in bytes: - // Measured: `684` - // Estimated: `5996` - // Minimum execution time: 46_164_000 picoseconds. - Weight::from_parts(47_622_000, 5996) - .saturating_add(T::DbWeight::get().reads(5_u64)) - .saturating_add(T::DbWeight::get().writes(5_u64)) + // Measured: `300` + // Estimated: `3551` + // Minimum execution time: 17_210_000 picoseconds. + Weight::from_parts(17_926_000, 3551) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) } - /// Storage: `Broker::Status` (r:1 w:0) - /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) /// Storage: `Broker::Regions` (r:1 w:3) /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) - /// Storage: `Broker::InstaPoolContribution` (r:1 w:1) - /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`) - /// Storage: `Broker::InstaPoolIo` (r:2 w:2) - /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) fn interlace() -> Weight { // Proof Size summary in bytes: - // Measured: `684` - // Estimated: `5996` - // Minimum execution time: 47_858_000 picoseconds. - Weight::from_parts(50_147_000, 5996) - .saturating_add(T::DbWeight::get().reads(5_u64)) - .saturating_add(T::DbWeight::get().writes(6_u64)) + // Measured: `300` + // Estimated: `3551` + // Minimum execution time: 18_489_000 picoseconds. + Weight::from_parts(19_209_000, 3551) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(3_u64)) } /// Storage: `Broker::Configuration` (r:1 w:0) /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) @@ -284,18 +271,14 @@ impl WeightInfo for SubstrateWeight { /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) /// Storage: `Broker::Workplan` (r:1 w:1) /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) - /// Storage: `Broker::InstaPoolContribution` (r:1 w:1) - /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`) - /// Storage: `Broker::InstaPoolIo` (r:2 w:2) - /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) fn assign() -> Weight { // Proof Size summary in bytes: - // Measured: `915` - // Estimated: `5996` - // Minimum execution time: 59_667_000 picoseconds. - Weight::from_parts(61_364_000, 5996) - .saturating_add(T::DbWeight::get().reads(7_u64)) - .saturating_add(T::DbWeight::get().writes(5_u64)) + // Measured: `545` + // Estimated: `4681` + // Minimum execution time: 30_336_000 picoseconds. + Weight::from_parts(32_040_000, 4681) + .saturating_add(T::DbWeight::get().reads(4_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) } /// Storage: `Broker::Status` (r:1 w:0) /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) @@ -309,10 +292,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`) fn pool() -> Weight { // Proof Size summary in bytes: - // Measured: `776` + // Measured: `580` // Estimated: `5996` - // Minimum execution time: 46_144_000 picoseconds. - Weight::from_parts(48_459_000, 5996) + // Minimum execution time: 37_417_000 picoseconds. + Weight::from_parts(39_629_000, 5996) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } @@ -325,12 +308,12 @@ impl WeightInfo for SubstrateWeight { /// The range of component `m` is `[1, 3]`. fn claim_revenue(m: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `878` + // Measured: `682` // Estimated: `6196 + m * (2520 ±0)` - // Minimum execution time: 83_745_000 picoseconds. - Weight::from_parts(85_702_575, 6196) - // Standard Error: 71_155 - .saturating_add(Weight::from_parts(1_790_395, 0).saturating_mul(m.into())) + // Minimum execution time: 68_403_000 picoseconds. + Weight::from_parts(71_259_395, 6196) + // Standard Error: 70_171 + .saturating_add(Weight::from_parts(1_324_469, 0).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(m.into()))) .saturating_add(T::DbWeight::get().writes(5_u64)) @@ -342,8 +325,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `103` // Estimated: `3593` - // Minimum execution time: 51_715_000 picoseconds. - Weight::from_parts(52_927_000, 3593) + // Minimum execution time: 43_427_000 picoseconds. + Weight::from_parts(46_449_000, 3593) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -353,10 +336,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) fn drop_region() -> Weight { // Proof Size summary in bytes: - // Measured: `604` + // Measured: `408` // Estimated: `3551` - // Minimum execution time: 40_298_000 picoseconds. - Weight::from_parts(43_487_000, 3551) + // Minimum execution time: 33_171_000 picoseconds. + Weight::from_parts(36_281_000, 3551) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -368,10 +351,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`) fn drop_contribution() -> Weight { // Proof Size summary in bytes: - // Measured: `601` + // Measured: `405` // Estimated: `3533` - // Minimum execution time: 58_565_000 picoseconds. - Weight::from_parts(61_824_000, 3533) + // Minimum execution time: 44_610_000 picoseconds. + Weight::from_parts(51_348_000, 3533) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -385,10 +368,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn drop_history() -> Weight { // Proof Size summary in bytes: - // Measured: `1117` + // Measured: `818` // Estimated: `3593` - // Minimum execution time: 75_403_000 picoseconds. - Weight::from_parts(79_074_000, 3593) + // Minimum execution time: 53_872_000 picoseconds. + Weight::from_parts(61_465_000, 3593) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -398,34 +381,32 @@ impl WeightInfo for SubstrateWeight { /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`) fn drop_renewal() -> Weight { // Proof Size summary in bytes: - // Measured: `661` + // Measured: `465` // Estimated: `4698` - // Minimum execution time: 40_829_000 picoseconds. - Weight::from_parts(44_449_000, 4698) + // Minimum execution time: 36_358_000 picoseconds. + Weight::from_parts(41_672_000, 4698) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// The range of component `n` is `[0, 1000]`. - fn request_core_count(n: u32, ) -> Weight { + fn request_core_count(_n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_969_000 picoseconds. - Weight::from_parts(6_388_533, 0) - // Standard Error: 18 - .saturating_add(Weight::from_parts(45, 0).saturating_mul(n.into())) + // Minimum execution time: 3_748_000 picoseconds. + Weight::from_parts(3_989_484, 0) } /// Storage: `Broker::CoreCountInbox` (r:1 w:1) /// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) /// The range of component `n` is `[0, 1000]`. fn process_core_count(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `404` + // Measured: `208` // Estimated: `1487` - // Minimum execution time: 9_385_000 picoseconds. - Weight::from_parts(10_281_617, 1487) - // Standard Error: 33 - .saturating_add(Weight::from_parts(64, 0).saturating_mul(n.into())) + // Minimum execution time: 5_733_000 picoseconds. + Weight::from_parts(6_067_265, 1487) + // Standard Error: 9 + .saturating_add(Weight::from_parts(16, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -437,10 +418,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn process_revenue() -> Weight { // Proof Size summary in bytes: - // Measured: `667` + // Measured: `471` // Estimated: `3593` - // Minimum execution time: 48_990_000 picoseconds. - Weight::from_parts(50_388_000, 3593) + // Minimum execution time: 38_503_000 picoseconds. + Weight::from_parts(39_956_000, 3593) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -448,8 +429,6 @@ impl WeightInfo for SubstrateWeight { /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) /// Storage: `Broker::Reservations` (r:1 w:0) /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`) - /// Storage: `Broker::ForceReservations` (r:1 w:0) - /// Proof: `Broker::ForceReservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`) /// Storage: `Broker::Leases` (r:1 w:1) /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`) /// Storage: `Broker::AutoRenewals` (r:1 w:1) @@ -469,13 +448,13 @@ impl WeightInfo for SubstrateWeight { /// The range of component `n` is `[0, 1000]`. fn rotate_sale(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `8549` + // Measured: `8126` // Estimated: `38070` - // Minimum execution time: 33_502_000 picoseconds. - Weight::from_parts(430_499_208, 38070) - // Standard Error: 8_954 - .saturating_add(Weight::from_parts(1_608_385, 0).saturating_mul(n.into())) - .saturating_add(T::DbWeight::get().reads(27_u64)) + // Minimum execution time: 21_763_000 picoseconds. + Weight::from_parts(325_729_398, 38070) + // Standard Error: 6_937 + .saturating_add(Weight::from_parts(1_323_585, 0).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().reads(26_u64)) .saturating_add(T::DbWeight::get().writes(34_u64)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into()))) } @@ -485,10 +464,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`) fn process_pool() -> Weight { // Proof Size summary in bytes: - // Measured: `180` + // Measured: `0` // Estimated: `3493` - // Minimum execution time: 10_310_000 picoseconds. - Weight::from_parts(10_828_000, 3493) + // Minimum execution time: 5_015_000 picoseconds. + Weight::from_parts(5_306_000, 3493) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -498,10 +477,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: `Broker::Workload` (`max_values`: None, `max_size`: Some(1212), added: 3687, mode: `MaxEncodedLen`) fn process_core_schedule() -> Weight { // Proof Size summary in bytes: - // Measured: `1423` + // Measured: `1223` // Estimated: `4681` - // Minimum execution time: 22_072_000 picoseconds. - Weight::from_parts(23_059_000, 4681) + // Minimum execution time: 11_737_000 picoseconds. + Weight::from_parts(12_121_000, 4681) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -509,8 +488,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 170_000 picoseconds. - Weight::from_parts(198_000, 0) + // Minimum execution time: 130_000 picoseconds. + Weight::from_parts(184_000, 0) } /// Storage: `Broker::CoreCountInbox` (r:0 w:1) /// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) @@ -518,8 +497,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_079_000 picoseconds. - Weight::from_parts(3_295_000, 0) + // Minimum execution time: 1_823_000 picoseconds. + Weight::from_parts(1_907_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: `Broker::RevenueInbox` (r:0 w:1) @@ -528,8 +507,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_291_000 picoseconds. - Weight::from_parts(3_474_000, 0) + // Minimum execution time: 1_986_000 picoseconds. + Weight::from_parts(2_067_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: `Broker::Status` (r:1 w:1) @@ -542,10 +521,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: `Broker::RevenueInbox` (`max_values`: Some(1), `max_size`: Some(20), added: 515, mode: `MaxEncodedLen`) fn do_tick_base() -> Weight { // Proof Size summary in bytes: - // Measured: `441` + // Measured: `245` // Estimated: `1516` - // Minimum execution time: 17_540_000 picoseconds. - Weight::from_parts(18_239_000, 1516) + // Minimum execution time: 10_211_000 picoseconds. + Weight::from_parts(10_652_000, 1516) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -553,29 +532,27 @@ impl WeightInfo for SubstrateWeight { /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`) /// Storage: `Broker::Reservations` (r:1 w:1) /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`) - /// Storage: `Broker::ForceReservations` (r:1 w:1) - /// Proof: `Broker::ForceReservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`) /// Storage: `Broker::Status` (r:1 w:0) /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) - /// Storage: `Broker::Workplan` (r:0 w:1) + /// Storage: `Broker::Workplan` (r:0 w:2) /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) fn force_reserve() -> Weight { // Proof Size summary in bytes: - // Measured: `5320` + // Measured: `5073` // Estimated: `7496` - // Minimum execution time: 44_691_000 picoseconds. - Weight::from_parts(47_017_000, 7496) - .saturating_add(T::DbWeight::get().reads(4_u64)) + // Minimum execution time: 27_298_000 picoseconds. + Weight::from_parts(28_072_000, 7496) + .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } /// Storage: `Broker::Leases` (r:1 w:1) /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`) fn swap_leases() -> Weight { // Proof Size summary in bytes: - // Measured: `239` + // Measured: `39` // Estimated: `1526` - // Minimum execution time: 11_655_000 picoseconds. - Weight::from_parts(12_061_000, 1526) + // Minimum execution time: 4_402_000 picoseconds. + Weight::from_parts(4_626_000, 1526) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -595,10 +572,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) fn enable_auto_renew() -> Weight { // Proof Size summary in bytes: - // Measured: `1121` + // Measured: `888` // Estimated: `4698` - // Minimum execution time: 94_487_000 picoseconds. - Weight::from_parts(97_722_000, 4698) + // Minimum execution time: 79_617_000 picoseconds. + Weight::from_parts(84_468_000, 4698) .saturating_add(T::DbWeight::get().reads(6_u64)) .saturating_add(T::DbWeight::get().writes(6_u64)) } @@ -606,10 +583,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(101), added: 596, mode: `MaxEncodedLen`) fn disable_auto_renew() -> Weight { // Proof Size summary in bytes: - // Measured: `578` + // Measured: `382` // Estimated: `1586` - // Minimum execution time: 24_599_000 picoseconds. - Weight::from_parts(25_717_000, 1586) + // Minimum execution time: 14_582_000 picoseconds. + Weight::from_parts(15_206_000, 1586) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -617,17 +594,17 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 275_000 picoseconds. - Weight::from_parts(324_000, 0) + // Minimum execution time: 227_000 picoseconds. + Weight::from_parts(251_000, 0) } /// Storage: `Broker::Workplan` (r:1 w:1) /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) fn remove_assignment() -> Weight { // Proof Size summary in bytes: - // Measured: `604` + // Measured: `408` // Estimated: `4681` - // Minimum execution time: 21_784_000 picoseconds. - Weight::from_parts(22_797_000, 4681) + // Minimum execution time: 14_911_000 picoseconds. + Weight::from_parts(15_782_000, 4681) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -635,10 +612,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`) fn remove_potential_renewal() -> Weight { // Proof Size summary in bytes: - // Measured: `452` + // Measured: `450` // Estimated: `4698` - // Minimum execution time: 19_900_000 picoseconds. - Weight::from_parts(21_064_000, 4698) + // Minimum execution time: 21_575_000 picoseconds. + Weight::from_parts(22_584_000, 4698) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -663,18 +640,18 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_376_000 picoseconds. - Weight::from_parts(3_576_000, 0) + // Minimum execution time: 1_989_000 picoseconds. + Weight::from_parts(2_154_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: `Broker::Reservations` (r:1 w:1) /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`) fn reserve() -> Weight { // Proof Size summary in bytes: - // Measured: `5016` + // Measured: `4816` // Estimated: `7496` - // Minimum execution time: 25_780_000 picoseconds. - Weight::from_parts(27_282_000, 7496) + // Minimum execution time: 14_828_000 picoseconds. + Weight::from_parts(15_421_000, 7496) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -682,10 +659,10 @@ impl WeightInfo for () { /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`) fn unreserve() -> Weight { // Proof Size summary in bytes: - // Measured: `6218` + // Measured: `6018` // Estimated: `7496` - // Minimum execution time: 24_714_000 picoseconds. - Weight::from_parts(25_914_000, 7496) + // Minimum execution time: 14_330_000 picoseconds. + Weight::from_parts(14_621_000, 7496) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -693,10 +670,10 @@ impl WeightInfo for () { /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`) fn set_lease() -> Weight { // Proof Size summary in bytes: - // Measured: `239` + // Measured: `39` // Estimated: `1526` - // Minimum execution time: 16_029_000 picoseconds. - Weight::from_parts(17_580_000, 1526) + // Minimum execution time: 7_456_000 picoseconds. + Weight::from_parts(7_707_000, 1526) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -704,10 +681,10 @@ impl WeightInfo for () { /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`) fn remove_lease() -> Weight { // Proof Size summary in bytes: - // Measured: `247` + // Measured: `47` // Estimated: `1526` - // Minimum execution time: 15_515_000 picoseconds. - Weight::from_parts(16_399_000, 1526) + // Minimum execution time: 7_047_000 picoseconds. + Weight::from_parts(7_339_000, 1526) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -719,8 +696,6 @@ impl WeightInfo for () { /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`) /// Storage: `Broker::InstaPoolIo` (r:3 w:3) /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) - /// Storage: `Broker::ForceReservations` (r:1 w:0) - /// Proof: `Broker::ForceReservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`) /// Storage: `Broker::AutoRenewals` (r:1 w:1) /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(101), added: 596, mode: `MaxEncodedLen`) /// Storage: `Broker::SaleInfo` (r:0 w:1) @@ -732,13 +707,13 @@ impl WeightInfo for () { /// The range of component `n` is `[0, 1000]`. fn start_sales(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `6330` + // Measured: `6134` // Estimated: `8499` - // Minimum execution time: 40_215_000 picoseconds. - Weight::from_parts(75_347_003, 8499) - // Standard Error: 762 - .saturating_add(Weight::from_parts(3_511, 0).saturating_mul(n.into())) - .saturating_add(RocksDbWeight::get().reads(8_u64)) + // Minimum execution time: 27_984_000 picoseconds. + Weight::from_parts(50_193_074, 8499) + // Standard Error: 487 + .saturating_add(Weight::from_parts(2_516, 0).saturating_mul(n.into())) + .saturating_add(RocksDbWeight::get().reads(7_u64)) .saturating_add(RocksDbWeight::get().writes(16_u64)) } /// Storage: `Broker::Status` (r:1 w:0) @@ -749,10 +724,10 @@ impl WeightInfo for () { /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) fn purchase() -> Weight { // Proof Size summary in bytes: - // Measured: `470` + // Measured: `274` // Estimated: `1542` - // Minimum execution time: 49_442_000 picoseconds. - Weight::from_parts(50_364_000, 1542) + // Minimum execution time: 36_368_000 picoseconds. + Weight::from_parts(37_544_000, 1542) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -768,10 +743,10 @@ impl WeightInfo for () { /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) fn renew() -> Weight { // Proof Size summary in bytes: - // Measured: `588` + // Measured: `392` // Estimated: `4698` - // Minimum execution time: 73_198_000 picoseconds. - Weight::from_parts(74_219_000, 4698) + // Minimum execution time: 63_735_000 picoseconds. + Weight::from_parts(72_328_000, 4698) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } @@ -779,46 +754,34 @@ impl WeightInfo for () { /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) fn transfer() -> Weight { // Proof Size summary in bytes: - // Measured: `496` + // Measured: `300` // Estimated: `3551` - // Minimum execution time: 23_270_000 picoseconds. - Weight::from_parts(24_128_000, 3551) + // Minimum execution time: 15_308_000 picoseconds. + Weight::from_parts(16_395_000, 3551) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } - /// Storage: `Broker::Status` (r:1 w:0) - /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) /// Storage: `Broker::Regions` (r:1 w:2) /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) - /// Storage: `Broker::InstaPoolContribution` (r:1 w:1) - /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`) - /// Storage: `Broker::InstaPoolIo` (r:2 w:2) - /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) fn partition() -> Weight { // Proof Size summary in bytes: - // Measured: `684` - // Estimated: `5996` - // Minimum execution time: 46_164_000 picoseconds. - Weight::from_parts(47_622_000, 5996) - .saturating_add(RocksDbWeight::get().reads(5_u64)) - .saturating_add(RocksDbWeight::get().writes(5_u64)) + // Measured: `300` + // Estimated: `3551` + // Minimum execution time: 17_210_000 picoseconds. + Weight::from_parts(17_926_000, 3551) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) } - /// Storage: `Broker::Status` (r:1 w:0) - /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) /// Storage: `Broker::Regions` (r:1 w:3) /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) - /// Storage: `Broker::InstaPoolContribution` (r:1 w:1) - /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`) - /// Storage: `Broker::InstaPoolIo` (r:2 w:2) - /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) fn interlace() -> Weight { // Proof Size summary in bytes: - // Measured: `684` - // Estimated: `5996` - // Minimum execution time: 47_858_000 picoseconds. - Weight::from_parts(50_147_000, 5996) - .saturating_add(RocksDbWeight::get().reads(5_u64)) - .saturating_add(RocksDbWeight::get().writes(6_u64)) + // Measured: `300` + // Estimated: `3551` + // Minimum execution time: 18_489_000 picoseconds. + Weight::from_parts(19_209_000, 3551) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().writes(3_u64)) } /// Storage: `Broker::Configuration` (r:1 w:0) /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) @@ -828,18 +791,14 @@ impl WeightInfo for () { /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) /// Storage: `Broker::Workplan` (r:1 w:1) /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) - /// Storage: `Broker::InstaPoolContribution` (r:1 w:1) - /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`) - /// Storage: `Broker::InstaPoolIo` (r:2 w:2) - /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) fn assign() -> Weight { // Proof Size summary in bytes: - // Measured: `915` - // Estimated: `5996` - // Minimum execution time: 59_667_000 picoseconds. - Weight::from_parts(61_364_000, 5996) - .saturating_add(RocksDbWeight::get().reads(7_u64)) - .saturating_add(RocksDbWeight::get().writes(5_u64)) + // Measured: `545` + // Estimated: `4681` + // Minimum execution time: 30_336_000 picoseconds. + Weight::from_parts(32_040_000, 4681) + .saturating_add(RocksDbWeight::get().reads(4_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) } /// Storage: `Broker::Status` (r:1 w:0) /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) @@ -853,10 +812,10 @@ impl WeightInfo for () { /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`) fn pool() -> Weight { // Proof Size summary in bytes: - // Measured: `776` + // Measured: `580` // Estimated: `5996` - // Minimum execution time: 46_144_000 picoseconds. - Weight::from_parts(48_459_000, 5996) + // Minimum execution time: 37_417_000 picoseconds. + Weight::from_parts(39_629_000, 5996) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(5_u64)) } @@ -869,12 +828,12 @@ impl WeightInfo for () { /// The range of component `m` is `[1, 3]`. fn claim_revenue(m: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `878` + // Measured: `682` // Estimated: `6196 + m * (2520 ±0)` - // Minimum execution time: 83_745_000 picoseconds. - Weight::from_parts(85_702_575, 6196) - // Standard Error: 71_155 - .saturating_add(Weight::from_parts(1_790_395, 0).saturating_mul(m.into())) + // Minimum execution time: 68_403_000 picoseconds. + Weight::from_parts(71_259_395, 6196) + // Standard Error: 70_171 + .saturating_add(Weight::from_parts(1_324_469, 0).saturating_mul(m.into())) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(m.into()))) .saturating_add(RocksDbWeight::get().writes(5_u64)) @@ -886,8 +845,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `103` // Estimated: `3593` - // Minimum execution time: 51_715_000 picoseconds. - Weight::from_parts(52_927_000, 3593) + // Minimum execution time: 43_427_000 picoseconds. + Weight::from_parts(46_449_000, 3593) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -897,10 +856,10 @@ impl WeightInfo for () { /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) fn drop_region() -> Weight { // Proof Size summary in bytes: - // Measured: `604` + // Measured: `408` // Estimated: `3551` - // Minimum execution time: 40_298_000 picoseconds. - Weight::from_parts(43_487_000, 3551) + // Minimum execution time: 33_171_000 picoseconds. + Weight::from_parts(36_281_000, 3551) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -912,10 +871,10 @@ impl WeightInfo for () { /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`) fn drop_contribution() -> Weight { // Proof Size summary in bytes: - // Measured: `601` + // Measured: `405` // Estimated: `3533` - // Minimum execution time: 58_565_000 picoseconds. - Weight::from_parts(61_824_000, 3533) + // Minimum execution time: 44_610_000 picoseconds. + Weight::from_parts(51_348_000, 3533) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -929,10 +888,10 @@ impl WeightInfo for () { /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn drop_history() -> Weight { // Proof Size summary in bytes: - // Measured: `1117` + // Measured: `818` // Estimated: `3593` - // Minimum execution time: 75_403_000 picoseconds. - Weight::from_parts(79_074_000, 3593) + // Minimum execution time: 53_872_000 picoseconds. + Weight::from_parts(61_465_000, 3593) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -942,34 +901,32 @@ impl WeightInfo for () { /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`) fn drop_renewal() -> Weight { // Proof Size summary in bytes: - // Measured: `661` + // Measured: `465` // Estimated: `4698` - // Minimum execution time: 40_829_000 picoseconds. - Weight::from_parts(44_449_000, 4698) + // Minimum execution time: 36_358_000 picoseconds. + Weight::from_parts(41_672_000, 4698) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// The range of component `n` is `[0, 1000]`. - fn request_core_count(n: u32, ) -> Weight { + fn request_core_count(_n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_969_000 picoseconds. - Weight::from_parts(6_388_533, 0) - // Standard Error: 18 - .saturating_add(Weight::from_parts(45, 0).saturating_mul(n.into())) + // Minimum execution time: 3_748_000 picoseconds. + Weight::from_parts(3_989_484, 0) } /// Storage: `Broker::CoreCountInbox` (r:1 w:1) /// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) /// The range of component `n` is `[0, 1000]`. fn process_core_count(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `404` + // Measured: `208` // Estimated: `1487` - // Minimum execution time: 9_385_000 picoseconds. - Weight::from_parts(10_281_617, 1487) - // Standard Error: 33 - .saturating_add(Weight::from_parts(64, 0).saturating_mul(n.into())) + // Minimum execution time: 5_733_000 picoseconds. + Weight::from_parts(6_067_265, 1487) + // Standard Error: 9 + .saturating_add(Weight::from_parts(16, 0).saturating_mul(n.into())) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -981,10 +938,10 @@ impl WeightInfo for () { /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn process_revenue() -> Weight { // Proof Size summary in bytes: - // Measured: `667` + // Measured: `471` // Estimated: `3593` - // Minimum execution time: 48_990_000 picoseconds. - Weight::from_parts(50_388_000, 3593) + // Minimum execution time: 38_503_000 picoseconds. + Weight::from_parts(39_956_000, 3593) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -992,8 +949,6 @@ impl WeightInfo for () { /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) /// Storage: `Broker::Reservations` (r:1 w:0) /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`) - /// Storage: `Broker::ForceReservations` (r:1 w:0) - /// Proof: `Broker::ForceReservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`) /// Storage: `Broker::Leases` (r:1 w:1) /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`) /// Storage: `Broker::AutoRenewals` (r:1 w:1) @@ -1013,13 +968,13 @@ impl WeightInfo for () { /// The range of component `n` is `[0, 1000]`. fn rotate_sale(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `8549` + // Measured: `8126` // Estimated: `38070` - // Minimum execution time: 33_502_000 picoseconds. - Weight::from_parts(430_499_208, 38070) - // Standard Error: 8_954 - .saturating_add(Weight::from_parts(1_608_385, 0).saturating_mul(n.into())) - .saturating_add(RocksDbWeight::get().reads(27_u64)) + // Minimum execution time: 21_763_000 picoseconds. + Weight::from_parts(325_729_398, 38070) + // Standard Error: 6_937 + .saturating_add(Weight::from_parts(1_323_585, 0).saturating_mul(n.into())) + .saturating_add(RocksDbWeight::get().reads(26_u64)) .saturating_add(RocksDbWeight::get().writes(34_u64)) .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(n.into()))) } @@ -1029,10 +984,10 @@ impl WeightInfo for () { /// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`) fn process_pool() -> Weight { // Proof Size summary in bytes: - // Measured: `180` + // Measured: `0` // Estimated: `3493` - // Minimum execution time: 10_310_000 picoseconds. - Weight::from_parts(10_828_000, 3493) + // Minimum execution time: 5_015_000 picoseconds. + Weight::from_parts(5_306_000, 3493) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -1042,10 +997,10 @@ impl WeightInfo for () { /// Proof: `Broker::Workload` (`max_values`: None, `max_size`: Some(1212), added: 3687, mode: `MaxEncodedLen`) fn process_core_schedule() -> Weight { // Proof Size summary in bytes: - // Measured: `1423` + // Measured: `1223` // Estimated: `4681` - // Minimum execution time: 22_072_000 picoseconds. - Weight::from_parts(23_059_000, 4681) + // Minimum execution time: 11_737_000 picoseconds. + Weight::from_parts(12_121_000, 4681) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -1053,8 +1008,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 170_000 picoseconds. - Weight::from_parts(198_000, 0) + // Minimum execution time: 130_000 picoseconds. + Weight::from_parts(184_000, 0) } /// Storage: `Broker::CoreCountInbox` (r:0 w:1) /// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) @@ -1062,8 +1017,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_079_000 picoseconds. - Weight::from_parts(3_295_000, 0) + // Minimum execution time: 1_823_000 picoseconds. + Weight::from_parts(1_907_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: `Broker::RevenueInbox` (r:0 w:1) @@ -1072,8 +1027,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_291_000 picoseconds. - Weight::from_parts(3_474_000, 0) + // Minimum execution time: 1_986_000 picoseconds. + Weight::from_parts(2_067_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: `Broker::Status` (r:1 w:1) @@ -1086,10 +1041,10 @@ impl WeightInfo for () { /// Proof: `Broker::RevenueInbox` (`max_values`: Some(1), `max_size`: Some(20), added: 515, mode: `MaxEncodedLen`) fn do_tick_base() -> Weight { // Proof Size summary in bytes: - // Measured: `441` + // Measured: `245` // Estimated: `1516` - // Minimum execution time: 17_540_000 picoseconds. - Weight::from_parts(18_239_000, 1516) + // Minimum execution time: 10_211_000 picoseconds. + Weight::from_parts(10_652_000, 1516) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -1097,29 +1052,27 @@ impl WeightInfo for () { /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`) /// Storage: `Broker::Reservations` (r:1 w:1) /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`) - /// Storage: `Broker::ForceReservations` (r:1 w:1) - /// Proof: `Broker::ForceReservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`) /// Storage: `Broker::Status` (r:1 w:0) /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) - /// Storage: `Broker::Workplan` (r:0 w:1) + /// Storage: `Broker::Workplan` (r:0 w:2) /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) fn force_reserve() -> Weight { // Proof Size summary in bytes: - // Measured: `5320` + // Measured: `5073` // Estimated: `7496` - // Minimum execution time: 44_691_000 picoseconds. - Weight::from_parts(47_017_000, 7496) - .saturating_add(RocksDbWeight::get().reads(4_u64)) + // Minimum execution time: 27_298_000 picoseconds. + Weight::from_parts(28_072_000, 7496) + .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } /// Storage: `Broker::Leases` (r:1 w:1) /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`) fn swap_leases() -> Weight { // Proof Size summary in bytes: - // Measured: `239` + // Measured: `39` // Estimated: `1526` - // Minimum execution time: 11_655_000 picoseconds. - Weight::from_parts(12_061_000, 1526) + // Minimum execution time: 4_402_000 picoseconds. + Weight::from_parts(4_626_000, 1526) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -1139,10 +1092,10 @@ impl WeightInfo for () { /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) fn enable_auto_renew() -> Weight { // Proof Size summary in bytes: - // Measured: `1121` + // Measured: `888` // Estimated: `4698` - // Minimum execution time: 94_487_000 picoseconds. - Weight::from_parts(97_722_000, 4698) + // Minimum execution time: 79_617_000 picoseconds. + Weight::from_parts(84_468_000, 4698) .saturating_add(RocksDbWeight::get().reads(6_u64)) .saturating_add(RocksDbWeight::get().writes(6_u64)) } @@ -1150,10 +1103,10 @@ impl WeightInfo for () { /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(101), added: 596, mode: `MaxEncodedLen`) fn disable_auto_renew() -> Weight { // Proof Size summary in bytes: - // Measured: `578` + // Measured: `382` // Estimated: `1586` - // Minimum execution time: 24_599_000 picoseconds. - Weight::from_parts(25_717_000, 1586) + // Minimum execution time: 14_582_000 picoseconds. + Weight::from_parts(15_206_000, 1586) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -1161,17 +1114,17 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 275_000 picoseconds. - Weight::from_parts(324_000, 0) + // Minimum execution time: 227_000 picoseconds. + Weight::from_parts(251_000, 0) } /// Storage: `Broker::Workplan` (r:1 w:1) /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) fn remove_assignment() -> Weight { // Proof Size summary in bytes: - // Measured: `604` + // Measured: `408` // Estimated: `4681` - // Minimum execution time: 21_784_000 picoseconds. - Weight::from_parts(22_797_000, 4681) + // Minimum execution time: 14_911_000 picoseconds. + Weight::from_parts(15_782_000, 4681) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -1179,10 +1132,10 @@ impl WeightInfo for () { /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`) fn remove_potential_renewal() -> Weight { // Proof Size summary in bytes: - // Measured: `452` + // Measured: `450` // Estimated: `4698` - // Minimum execution time: 19_900_000 picoseconds. - Weight::from_parts(21_064_000, 4698) + // Minimum execution time: 21_575_000 picoseconds. + Weight::from_parts(22_584_000, 4698) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } From 6047eb2a3bdb265252c2c3fa8511e49f483b1e49 Mon Sep 17 00:00:00 2001 From: mertwole Date: Mon, 9 Mar 2026 13:00:32 +0100 Subject: [PATCH 09/11] Adjust prdoc and doc-comments according to the feedback --- prdoc/pr_10856.prdoc | 5 +++-- substrate/frame/broker/src/lib.rs | 3 +++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/prdoc/pr_10856.prdoc b/prdoc/pr_10856.prdoc index 1290b447c6976..8ab07bf7d04e1 100644 --- a/prdoc/pr_10856.prdoc +++ b/prdoc/pr_10856.prdoc @@ -2,9 +2,10 @@ title: '[pallet-broker] add extrinsic to force transfer a region' doc: - audience: Runtime User description: |- - Add an extrinsic to the pallet-broker allowing to forcefully transfer a region, ignoring the owner. + Add an extrinsic to `pallet-broker` which allows a privileged origin (`AdminOrigin` or `Root`) to forcefully transfer a region, ignoring its current owner. crates: - name: pallet-broker bump: major - name: coretime-westend-runtime - bump: major \ No newline at end of file + bump: minor + \ No newline at end of file diff --git a/substrate/frame/broker/src/lib.rs b/substrate/frame/broker/src/lib.rs index 0d9f49403c816..78d638e36192b 100644 --- a/substrate/frame/broker/src/lib.rs +++ b/substrate/frame/broker/src/lib.rs @@ -1060,6 +1060,9 @@ pub mod pallet { /// Transfer a Bulk Coretime Region to a new owner, ignoring the previous owner. /// + /// This can also be used to recover regions that have been "burned" (e.g., from an + /// XCM reserve transfer). + /// /// - `origin`: Must be Root or pass `AdminOrigin`. /// - `region_id`: The Region whose ownership should change. /// - `new_owner`: The new owner for the Region. From 3c199712674048ed7aa4fe2a42f515db82a2955c Mon Sep 17 00:00:00 2001 From: mertwole Date: Mon, 9 Mar 2026 13:27:17 +0100 Subject: [PATCH 10/11] Add test --- substrate/frame/broker/src/tests.rs | 37 +++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/substrate/frame/broker/src/tests.rs b/substrate/frame/broker/src/tests.rs index 959159c48bd6a..225c7ae9b6f54 100644 --- a/substrate/frame/broker/src/tests.rs +++ b/substrate/frame/broker/src/tests.rs @@ -2957,3 +2957,40 @@ fn force_transfer_works() { )); }); } + +#[test] +fn force_transfer_can_transfer_burned_region() { + TestExt::new().endow(1, 1000).execute_with(|| { + assert_ok!(Broker::do_start_sales(100, 4)); + advance_to(2); + + const OLD_OWNER: u64 = 1; + const NEW_OWNER: u64 = 222; + + let region_id = Broker::do_purchase(OLD_OWNER, u64::max_value()).unwrap(); + + assert_ok!(>::burn(®ion_id.into(), None)); + + let region = Regions::::get(region_id).unwrap(); + assert_eq!(region.owner, None); + + assert_ok!(Broker::force_transfer(RuntimeOrigin::root(), region_id, NEW_OWNER)); + + System::assert_last_event( + Event::Transferred { + region_id, + duration: region.end - region_id.begin, + old_owner: None, + owner: Some(NEW_OWNER), + } + .into(), + ); + + assert_ok!(Broker::assign( + RuntimeOrigin::signed(NEW_OWNER), + region_id, + 10, + Finality::Final + )); + }); +} From 0a3a306d80ad9b63eb616e203b332b527305263c Mon Sep 17 00:00:00 2001 From: mertwole Date: Mon, 9 Mar 2026 14:03:30 +0100 Subject: [PATCH 11/11] Add test for provisionally assigned region --- substrate/frame/broker/src/tests.rs | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/substrate/frame/broker/src/tests.rs b/substrate/frame/broker/src/tests.rs index 225c7ae9b6f54..7c8abcdb5d8b6 100644 --- a/substrate/frame/broker/src/tests.rs +++ b/substrate/frame/broker/src/tests.rs @@ -2994,3 +2994,31 @@ fn force_transfer_can_transfer_burned_region() { )); }); } + +#[test] +fn force_transfer_can_transfer_provisionally_assigned_region() { + TestExt::new().endow(1, 1000).execute_with(|| { + assert_ok!(Broker::do_start_sales(100, 4)); + advance_to(2); + + const OLD_OWNER: u64 = 1; + const NEW_OWNER: u64 = 222; + + let region_id = Broker::do_purchase(OLD_OWNER, u64::max_value()).unwrap(); + + assert_ok!(Broker::assign(RuntimeOrigin::signed(OLD_OWNER), region_id, 1001, Provisional)); + + assert_ok!(Broker::force_transfer(RuntimeOrigin::root(), region_id, NEW_OWNER)); + + let region = Regions::::get(region_id).unwrap(); + System::assert_last_event( + Event::Transferred { + region_id, + duration: region.end - region_id.begin, + old_owner: Some(OLD_OWNER), + owner: Some(NEW_OWNER), + } + .into(), + ); + }); +}