mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 19:11:04 +00:00
Update benchmarking macros (#3934)
Current benchmarking macro returns a closure with the captured
benchmarked code.
This can cause issues when the benchmarked code has complex lifetime
requirements.
This PR updates the existing macro by injecting the recording parameter
and invoking the start / stop method around the benchmarked block
instead of returning a closure
One other added benefit is that you can write this kind of code now as
well:
```rust
let v;
#[block]
{ v = func.call(); }
dbg!(v); // or assert something on v
```
[Weights compare
link](https://weights.tasty.limo/compare?unit=weight&ignore_errors=true&threshold=10&method=asymptotic&repo=polkadot-sdk&old=pg/fix-weights&new=pg/bench_update&path_pattern=substrate/frame/**/src/weights.rs,polkadot/runtime/*/src/weights/**/*.rs,polkadot/bridges/modules/*/src/weights.rs,cumulus/**/weights/*.rs,cumulus/**/weights/xcm/*.rs,cumulus/**/src/weights.rs)
---------
Co-authored-by: command-bot <>
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: Alexander Theißen <alex.theissen@me.com>
This commit is contained in:
Generated
+141
-139
@@ -18,25 +18,27 @@
|
||||
//! Autogenerated weights for `pallet_broker`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2024-03-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! DATE: 2024-04-08, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! WORST CASE MAP SIZE: `1000000`
|
||||
//! HOSTNAME: `runner-h2rr8wx7-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! HOSTNAME: `runner-anb7yjbi-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
|
||||
|
||||
// Executed Command:
|
||||
// target/production/substrate-node
|
||||
// ./target/production/substrate-node
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=dev
|
||||
// --steps=50
|
||||
// --repeat=20
|
||||
// --pallet=pallet_broker
|
||||
// --no-storage-info
|
||||
// --no-median-slopes
|
||||
// --no-min-squares
|
||||
// --extrinsic=*
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --json-file=/builds/parity/mirrors/polkadot-sdk/.git/.artifacts/bench.json
|
||||
// --pallet=pallet_broker
|
||||
// --chain=dev
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --output=./substrate/frame/broker/src/weights.rs
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --template=./substrate/.maintain/frame-weight-template.hbs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
@@ -88,8 +90,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 2_865_000 picoseconds.
|
||||
Weight::from_parts(3_061_000, 0)
|
||||
// Minimum execution time: 2_624_000 picoseconds.
|
||||
Weight::from_parts(2_804_000, 0)
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: `Broker::Reservations` (r:1 w:1)
|
||||
@@ -98,8 +100,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `5016`
|
||||
// Estimated: `7496`
|
||||
// Minimum execution time: 18_431_000 picoseconds.
|
||||
Weight::from_parts(19_558_000, 7496)
|
||||
// Minimum execution time: 18_451_000 picoseconds.
|
||||
Weight::from_parts(18_853_000, 7496)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -109,8 +111,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `6218`
|
||||
// Estimated: `7496`
|
||||
// Minimum execution time: 17_724_000 picoseconds.
|
||||
Weight::from_parts(18_688_000, 7496)
|
||||
// Minimum execution time: 16_899_000 picoseconds.
|
||||
Weight::from_parts(17_645_000, 7496)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -120,8 +122,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `239`
|
||||
// Estimated: `1526`
|
||||
// Minimum execution time: 10_513_000 picoseconds.
|
||||
Weight::from_parts(11_138_000, 1526)
|
||||
// Minimum execution time: 10_239_000 picoseconds.
|
||||
Weight::from_parts(10_754_000, 1526)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -140,12 +142,14 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// 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 {
|
||||
fn start_sales(n: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `6330`
|
||||
// Estimated: `8499`
|
||||
// Minimum execution time: 50_864_000 picoseconds.
|
||||
Weight::from_parts(54_000_280, 8499)
|
||||
// Minimum execution time: 51_250_000 picoseconds.
|
||||
Weight::from_parts(54_643_012, 8499)
|
||||
// Standard Error: 147
|
||||
.saturating_add(Weight::from_parts(18, 0).saturating_mul(n.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(6_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(16_u64))
|
||||
}
|
||||
@@ -163,8 +167,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `635`
|
||||
// Estimated: `2120`
|
||||
// Minimum execution time: 43_630_000 picoseconds.
|
||||
Weight::from_parts(44_622_000, 2120)
|
||||
// Minimum execution time: 43_660_000 picoseconds.
|
||||
Weight::from_parts(45_543_000, 2120)
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
@@ -186,8 +190,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `753`
|
||||
// Estimated: `4698`
|
||||
// Minimum execution time: 62_453_000 picoseconds.
|
||||
Weight::from_parts(63_882_000, 4698)
|
||||
// Minimum execution time: 63_122_000 picoseconds.
|
||||
Weight::from_parts(64_366_000, 4698)
|
||||
.saturating_add(T::DbWeight::get().reads(6_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(4_u64))
|
||||
}
|
||||
@@ -197,8 +201,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `495`
|
||||
// Estimated: `3550`
|
||||
// Minimum execution time: 17_237_000 picoseconds.
|
||||
Weight::from_parts(17_757_000, 3550)
|
||||
// Minimum execution time: 17_552_000 picoseconds.
|
||||
Weight::from_parts(18_251_000, 3550)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -208,8 +212,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `495`
|
||||
// Estimated: `3550`
|
||||
// Minimum execution time: 18_504_000 picoseconds.
|
||||
Weight::from_parts(19_273_000, 3550)
|
||||
// Minimum execution time: 18_551_000 picoseconds.
|
||||
Weight::from_parts(19_727_000, 3550)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
@@ -219,8 +223,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `495`
|
||||
// Estimated: `3550`
|
||||
// Minimum execution time: 20_477_000 picoseconds.
|
||||
Weight::from_parts(21_328_000, 3550)
|
||||
// Minimum execution time: 20_636_000 picoseconds.
|
||||
Weight::from_parts(21_060_000, 3550)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
@@ -236,8 +240,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `740`
|
||||
// Estimated: `4681`
|
||||
// Minimum execution time: 31_815_000 picoseconds.
|
||||
Weight::from_parts(32_700_000, 4681)
|
||||
// Minimum execution time: 32_394_000 picoseconds.
|
||||
Weight::from_parts(33_324_000, 4681)
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
@@ -255,8 +259,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `775`
|
||||
// Estimated: `5996`
|
||||
// Minimum execution time: 38_313_000 picoseconds.
|
||||
Weight::from_parts(38_985_000, 5996)
|
||||
// Minimum execution time: 38_128_000 picoseconds.
|
||||
Weight::from_parts(39_274_000, 5996)
|
||||
.saturating_add(T::DbWeight::get().reads(5_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(5_u64))
|
||||
}
|
||||
@@ -271,10 +275,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `859`
|
||||
// Estimated: `6196 + m * (2520 ±0)`
|
||||
// Minimum execution time: 70_170_000 picoseconds.
|
||||
Weight::from_parts(71_245_388, 6196)
|
||||
// Standard Error: 54_382
|
||||
.saturating_add(Weight::from_parts(1_488_794, 0).saturating_mul(m.into()))
|
||||
// Minimum execution time: 70_453_000 picoseconds.
|
||||
Weight::from_parts(70_652_822, 6196)
|
||||
// Standard Error: 75_524
|
||||
.saturating_add(Weight::from_parts(2_335_289, 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))
|
||||
@@ -286,8 +290,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `103`
|
||||
// Estimated: `3593`
|
||||
// Minimum execution time: 43_414_000 picoseconds.
|
||||
Weight::from_parts(44_475_000, 3593)
|
||||
// Minimum execution time: 43_945_000 picoseconds.
|
||||
Weight::from_parts(45_249_000, 3593)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -299,8 +303,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `603`
|
||||
// Estimated: `3550`
|
||||
// Minimum execution time: 31_327_000 picoseconds.
|
||||
Weight::from_parts(32_050_000, 3550)
|
||||
// Minimum execution time: 30_680_000 picoseconds.
|
||||
Weight::from_parts(32_995_000, 3550)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -314,8 +318,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `601`
|
||||
// Estimated: `3533`
|
||||
// Minimum execution time: 41_315_000 picoseconds.
|
||||
Weight::from_parts(42_421_000, 3533)
|
||||
// Minimum execution time: 48_053_000 picoseconds.
|
||||
Weight::from_parts(51_364_000, 3533)
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -331,8 +335,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `995`
|
||||
// Estimated: `3593`
|
||||
// Minimum execution time: 49_707_000 picoseconds.
|
||||
Weight::from_parts(51_516_000, 3593)
|
||||
// Minimum execution time: 57_372_000 picoseconds.
|
||||
Weight::from_parts(59_466_000, 3593)
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -344,20 +348,18 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `661`
|
||||
// Estimated: `4698`
|
||||
// Minimum execution time: 26_207_000 picoseconds.
|
||||
Weight::from_parts(27_227_000, 4698)
|
||||
// Minimum execution time: 27_768_000 picoseconds.
|
||||
Weight::from_parts(29_000_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: 4_670_000 picoseconds.
|
||||
Weight::from_parts(5_170_450, 0)
|
||||
// Standard Error: 16
|
||||
.saturating_add(Weight::from_parts(37, 0).saturating_mul(n.into()))
|
||||
// Minimum execution time: 4_588_000 picoseconds.
|
||||
Weight::from_parts(5_201_705, 0)
|
||||
}
|
||||
/// Storage: `Broker::CoreCountInbox` (r:1 w:1)
|
||||
/// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
|
||||
@@ -366,10 +368,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `404`
|
||||
// Estimated: `1487`
|
||||
// Minimum execution time: 6_916_000 picoseconds.
|
||||
Weight::from_parts(7_485_053, 1487)
|
||||
// Standard Error: 23
|
||||
.saturating_add(Weight::from_parts(30, 0).saturating_mul(n.into()))
|
||||
// Minimum execution time: 6_889_000 picoseconds.
|
||||
Weight::from_parts(7_380_363, 1487)
|
||||
// Standard Error: 21
|
||||
.saturating_add(Weight::from_parts(63, 0).saturating_mul(n.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -387,8 +389,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `972`
|
||||
// Estimated: `4437`
|
||||
// Minimum execution time: 50_987_000 picoseconds.
|
||||
Weight::from_parts(52_303_000, 4437)
|
||||
// Minimum execution time: 50_156_000 picoseconds.
|
||||
Weight::from_parts(51_610_000, 4437)
|
||||
.saturating_add(T::DbWeight::get().reads(5_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
@@ -407,10 +409,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `6281`
|
||||
// Estimated: `8499`
|
||||
// Minimum execution time: 38_334_000 picoseconds.
|
||||
Weight::from_parts(40_517_609, 8499)
|
||||
// Standard Error: 90
|
||||
.saturating_add(Weight::from_parts(338, 0).saturating_mul(n.into()))
|
||||
// Minimum execution time: 38_246_000 picoseconds.
|
||||
Weight::from_parts(40_008_850, 8499)
|
||||
// Standard Error: 94
|
||||
.saturating_add(Weight::from_parts(964, 0).saturating_mul(n.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(5_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(15_u64))
|
||||
}
|
||||
@@ -422,8 +424,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `180`
|
||||
// Estimated: `3493`
|
||||
// Minimum execution time: 7_850_000 picoseconds.
|
||||
Weight::from_parts(8_157_000, 3493)
|
||||
// Minimum execution time: 7_962_000 picoseconds.
|
||||
Weight::from_parts(8_313_000, 3493)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -435,8 +437,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1423`
|
||||
// Estimated: `4681`
|
||||
// Minimum execution time: 17_313_000 picoseconds.
|
||||
Weight::from_parts(17_727_000, 4681)
|
||||
// Minimum execution time: 17_457_000 picoseconds.
|
||||
Weight::from_parts(18_387_000, 4681)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
@@ -444,8 +446,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 171_000 picoseconds.
|
||||
Weight::from_parts(196_000, 0)
|
||||
// Minimum execution time: 133_000 picoseconds.
|
||||
Weight::from_parts(149_000, 0)
|
||||
}
|
||||
/// Storage: `Broker::CoreCountInbox` (r:0 w:1)
|
||||
/// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
|
||||
@@ -453,8 +455,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 2_413_000 picoseconds.
|
||||
Weight::from_parts(2_587_000, 0)
|
||||
// Minimum execution time: 2_407_000 picoseconds.
|
||||
Weight::from_parts(2_634_000, 0)
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: `Broker::Status` (r:1 w:1)
|
||||
@@ -469,8 +471,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `603`
|
||||
// Estimated: `4068`
|
||||
// Minimum execution time: 13_121_000 picoseconds.
|
||||
Weight::from_parts(13_685_000, 4068)
|
||||
// Minimum execution time: 13_043_000 picoseconds.
|
||||
Weight::from_parts(13_541_000, 4068)
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
@@ -480,8 +482,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `239`
|
||||
// Estimated: `1526`
|
||||
// Minimum execution time: 6_847_000 picoseconds.
|
||||
Weight::from_parts(7_185_000, 1526)
|
||||
// Minimum execution time: 6_606_000 picoseconds.
|
||||
Weight::from_parts(6_964_000, 1526)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -495,8 +497,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 2_865_000 picoseconds.
|
||||
Weight::from_parts(3_061_000, 0)
|
||||
// Minimum execution time: 2_624_000 picoseconds.
|
||||
Weight::from_parts(2_804_000, 0)
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: `Broker::Reservations` (r:1 w:1)
|
||||
@@ -505,8 +507,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `5016`
|
||||
// Estimated: `7496`
|
||||
// Minimum execution time: 18_431_000 picoseconds.
|
||||
Weight::from_parts(19_558_000, 7496)
|
||||
// Minimum execution time: 18_451_000 picoseconds.
|
||||
Weight::from_parts(18_853_000, 7496)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -516,8 +518,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `6218`
|
||||
// Estimated: `7496`
|
||||
// Minimum execution time: 17_724_000 picoseconds.
|
||||
Weight::from_parts(18_688_000, 7496)
|
||||
// Minimum execution time: 16_899_000 picoseconds.
|
||||
Weight::from_parts(17_645_000, 7496)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -527,8 +529,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `239`
|
||||
// Estimated: `1526`
|
||||
// Minimum execution time: 10_513_000 picoseconds.
|
||||
Weight::from_parts(11_138_000, 1526)
|
||||
// Minimum execution time: 10_239_000 picoseconds.
|
||||
Weight::from_parts(10_754_000, 1526)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -547,12 +549,14 @@ impl WeightInfo for () {
|
||||
/// 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 {
|
||||
fn start_sales(n: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `6330`
|
||||
// Estimated: `8499`
|
||||
// Minimum execution time: 50_864_000 picoseconds.
|
||||
Weight::from_parts(54_000_280, 8499)
|
||||
// Minimum execution time: 51_250_000 picoseconds.
|
||||
Weight::from_parts(54_643_012, 8499)
|
||||
// Standard Error: 147
|
||||
.saturating_add(Weight::from_parts(18, 0).saturating_mul(n.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(6_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(16_u64))
|
||||
}
|
||||
@@ -570,8 +574,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `635`
|
||||
// Estimated: `2120`
|
||||
// Minimum execution time: 43_630_000 picoseconds.
|
||||
Weight::from_parts(44_622_000, 2120)
|
||||
// Minimum execution time: 43_660_000 picoseconds.
|
||||
Weight::from_parts(45_543_000, 2120)
|
||||
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
@@ -593,8 +597,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `753`
|
||||
// Estimated: `4698`
|
||||
// Minimum execution time: 62_453_000 picoseconds.
|
||||
Weight::from_parts(63_882_000, 4698)
|
||||
// Minimum execution time: 63_122_000 picoseconds.
|
||||
Weight::from_parts(64_366_000, 4698)
|
||||
.saturating_add(RocksDbWeight::get().reads(6_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(4_u64))
|
||||
}
|
||||
@@ -604,8 +608,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `495`
|
||||
// Estimated: `3550`
|
||||
// Minimum execution time: 17_237_000 picoseconds.
|
||||
Weight::from_parts(17_757_000, 3550)
|
||||
// Minimum execution time: 17_552_000 picoseconds.
|
||||
Weight::from_parts(18_251_000, 3550)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -615,8 +619,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `495`
|
||||
// Estimated: `3550`
|
||||
// Minimum execution time: 18_504_000 picoseconds.
|
||||
Weight::from_parts(19_273_000, 3550)
|
||||
// Minimum execution time: 18_551_000 picoseconds.
|
||||
Weight::from_parts(19_727_000, 3550)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
@@ -626,8 +630,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `495`
|
||||
// Estimated: `3550`
|
||||
// Minimum execution time: 20_477_000 picoseconds.
|
||||
Weight::from_parts(21_328_000, 3550)
|
||||
// Minimum execution time: 20_636_000 picoseconds.
|
||||
Weight::from_parts(21_060_000, 3550)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
@@ -643,8 +647,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `740`
|
||||
// Estimated: `4681`
|
||||
// Minimum execution time: 31_815_000 picoseconds.
|
||||
Weight::from_parts(32_700_000, 4681)
|
||||
// Minimum execution time: 32_394_000 picoseconds.
|
||||
Weight::from_parts(33_324_000, 4681)
|
||||
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
@@ -662,8 +666,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `775`
|
||||
// Estimated: `5996`
|
||||
// Minimum execution time: 38_313_000 picoseconds.
|
||||
Weight::from_parts(38_985_000, 5996)
|
||||
// Minimum execution time: 38_128_000 picoseconds.
|
||||
Weight::from_parts(39_274_000, 5996)
|
||||
.saturating_add(RocksDbWeight::get().reads(5_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(5_u64))
|
||||
}
|
||||
@@ -678,10 +682,10 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `859`
|
||||
// Estimated: `6196 + m * (2520 ±0)`
|
||||
// Minimum execution time: 70_170_000 picoseconds.
|
||||
Weight::from_parts(71_245_388, 6196)
|
||||
// Standard Error: 54_382
|
||||
.saturating_add(Weight::from_parts(1_488_794, 0).saturating_mul(m.into()))
|
||||
// Minimum execution time: 70_453_000 picoseconds.
|
||||
Weight::from_parts(70_652_822, 6196)
|
||||
// Standard Error: 75_524
|
||||
.saturating_add(Weight::from_parts(2_335_289, 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))
|
||||
@@ -693,8 +697,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `103`
|
||||
// Estimated: `3593`
|
||||
// Minimum execution time: 43_414_000 picoseconds.
|
||||
Weight::from_parts(44_475_000, 3593)
|
||||
// Minimum execution time: 43_945_000 picoseconds.
|
||||
Weight::from_parts(45_249_000, 3593)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -706,8 +710,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `603`
|
||||
// Estimated: `3550`
|
||||
// Minimum execution time: 31_327_000 picoseconds.
|
||||
Weight::from_parts(32_050_000, 3550)
|
||||
// Minimum execution time: 30_680_000 picoseconds.
|
||||
Weight::from_parts(32_995_000, 3550)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -721,8 +725,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `601`
|
||||
// Estimated: `3533`
|
||||
// Minimum execution time: 41_315_000 picoseconds.
|
||||
Weight::from_parts(42_421_000, 3533)
|
||||
// Minimum execution time: 48_053_000 picoseconds.
|
||||
Weight::from_parts(51_364_000, 3533)
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -738,8 +742,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `995`
|
||||
// Estimated: `3593`
|
||||
// Minimum execution time: 49_707_000 picoseconds.
|
||||
Weight::from_parts(51_516_000, 3593)
|
||||
// Minimum execution time: 57_372_000 picoseconds.
|
||||
Weight::from_parts(59_466_000, 3593)
|
||||
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -751,20 +755,18 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `661`
|
||||
// Estimated: `4698`
|
||||
// Minimum execution time: 26_207_000 picoseconds.
|
||||
Weight::from_parts(27_227_000, 4698)
|
||||
// Minimum execution time: 27_768_000 picoseconds.
|
||||
Weight::from_parts(29_000_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: 4_670_000 picoseconds.
|
||||
Weight::from_parts(5_170_450, 0)
|
||||
// Standard Error: 16
|
||||
.saturating_add(Weight::from_parts(37, 0).saturating_mul(n.into()))
|
||||
// Minimum execution time: 4_588_000 picoseconds.
|
||||
Weight::from_parts(5_201_705, 0)
|
||||
}
|
||||
/// Storage: `Broker::CoreCountInbox` (r:1 w:1)
|
||||
/// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
|
||||
@@ -773,10 +775,10 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `404`
|
||||
// Estimated: `1487`
|
||||
// Minimum execution time: 6_916_000 picoseconds.
|
||||
Weight::from_parts(7_485_053, 1487)
|
||||
// Standard Error: 23
|
||||
.saturating_add(Weight::from_parts(30, 0).saturating_mul(n.into()))
|
||||
// Minimum execution time: 6_889_000 picoseconds.
|
||||
Weight::from_parts(7_380_363, 1487)
|
||||
// Standard Error: 21
|
||||
.saturating_add(Weight::from_parts(63, 0).saturating_mul(n.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -794,8 +796,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `972`
|
||||
// Estimated: `4437`
|
||||
// Minimum execution time: 50_987_000 picoseconds.
|
||||
Weight::from_parts(52_303_000, 4437)
|
||||
// Minimum execution time: 50_156_000 picoseconds.
|
||||
Weight::from_parts(51_610_000, 4437)
|
||||
.saturating_add(RocksDbWeight::get().reads(5_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
@@ -814,10 +816,10 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `6281`
|
||||
// Estimated: `8499`
|
||||
// Minimum execution time: 38_334_000 picoseconds.
|
||||
Weight::from_parts(40_517_609, 8499)
|
||||
// Standard Error: 90
|
||||
.saturating_add(Weight::from_parts(338, 0).saturating_mul(n.into()))
|
||||
// Minimum execution time: 38_246_000 picoseconds.
|
||||
Weight::from_parts(40_008_850, 8499)
|
||||
// Standard Error: 94
|
||||
.saturating_add(Weight::from_parts(964, 0).saturating_mul(n.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(5_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(15_u64))
|
||||
}
|
||||
@@ -829,8 +831,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `180`
|
||||
// Estimated: `3493`
|
||||
// Minimum execution time: 7_850_000 picoseconds.
|
||||
Weight::from_parts(8_157_000, 3493)
|
||||
// Minimum execution time: 7_962_000 picoseconds.
|
||||
Weight::from_parts(8_313_000, 3493)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -842,8 +844,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1423`
|
||||
// Estimated: `4681`
|
||||
// Minimum execution time: 17_313_000 picoseconds.
|
||||
Weight::from_parts(17_727_000, 4681)
|
||||
// Minimum execution time: 17_457_000 picoseconds.
|
||||
Weight::from_parts(18_387_000, 4681)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
@@ -851,8 +853,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 171_000 picoseconds.
|
||||
Weight::from_parts(196_000, 0)
|
||||
// Minimum execution time: 133_000 picoseconds.
|
||||
Weight::from_parts(149_000, 0)
|
||||
}
|
||||
/// Storage: `Broker::CoreCountInbox` (r:0 w:1)
|
||||
/// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
|
||||
@@ -860,8 +862,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 2_413_000 picoseconds.
|
||||
Weight::from_parts(2_587_000, 0)
|
||||
// Minimum execution time: 2_407_000 picoseconds.
|
||||
Weight::from_parts(2_634_000, 0)
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: `Broker::Status` (r:1 w:1)
|
||||
@@ -876,8 +878,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `603`
|
||||
// Estimated: `4068`
|
||||
// Minimum execution time: 13_121_000 picoseconds.
|
||||
Weight::from_parts(13_685_000, 4068)
|
||||
// Minimum execution time: 13_043_000 picoseconds.
|
||||
Weight::from_parts(13_541_000, 4068)
|
||||
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
@@ -887,8 +889,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `239`
|
||||
// Estimated: `1526`
|
||||
// Minimum execution time: 6_847_000 picoseconds.
|
||||
Weight::from_parts(7_185_000, 1526)
|
||||
// Minimum execution time: 6_606_000 picoseconds.
|
||||
Weight::from_parts(6_964_000, 1526)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user