Fixes PoV over-estimation (#13766)

* Align log

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Use max instead of sum

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Make comment ordering deterministic

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Dont add Pov overhead when all is ignored

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Update test pallet weights

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Re-run weights on bm2

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Fix test

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Actually use new weights

Fucked up the merge for this file...

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Update contract weights

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

---------

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
This commit is contained in:
Oliver Tale-Yazdi
2023-04-13 15:11:58 +02:00
committed by GitHub
parent 46e2d3e5f8
commit ebfe00d590
54 changed files with 5526 additions and 5534 deletions
+176 -171
View File
@@ -18,9 +18,9 @@
//! Autogenerated weights for pallet_assets
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-03-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2023-04-06, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `bm3`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
//! HOSTNAME: `bm2`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
// Executed Command:
@@ -31,9 +31,6 @@
// --steps=50
// --repeat=20
// --pallet=pallet_assets
// --no-storage-info
// --no-median-slopes
// --no-min-squares
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
@@ -90,9 +87,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn create() -> Weight {
// Proof Size summary in bytes:
// Measured: `293`
// Estimated: `7268`
// Minimum execution time: 27_756_000 picoseconds.
Weight::from_parts(28_637_000, 7268)
// Estimated: `3675`
// Minimum execution time: 33_678_000 picoseconds.
Weight::from_parts(34_320_000, 3675)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
@@ -102,8 +99,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `153`
// Estimated: `3675`
// Minimum execution time: 15_402_000 picoseconds.
Weight::from_parts(15_803_000, 3675)
// Minimum execution time: 15_521_000 picoseconds.
Weight::from_parts(16_035_000, 3675)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -113,8 +110,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `385`
// Estimated: `3675`
// Minimum execution time: 16_027_000 picoseconds.
Weight::from_parts(16_372_000, 3675)
// Minimum execution time: 15_921_000 picoseconds.
Weight::from_parts(16_153_000, 3675)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -128,16 +125,16 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn destroy_accounts(c: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `0 + c * (208 ±0)`
// Estimated: `8232 + c * (5180 ±0)`
// Minimum execution time: 20_667_000 picoseconds.
Weight::from_parts(20_930_000, 8232)
// Standard Error: 7_226
.saturating_add(Weight::from_parts(12_759_091, 0).saturating_mul(c.into()))
// Estimated: `3675 + c * (2603 ±0)`
// Minimum execution time: 21_242_000 picoseconds.
Weight::from_parts(21_532_000, 3675)
// Standard Error: 6_449
.saturating_add(Weight::from_parts(13_150_845, 0).saturating_mul(c.into()))
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(c.into())))
.saturating_add(T::DbWeight::get().writes(1_u64))
.saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(c.into())))
.saturating_add(Weight::from_parts(0, 5180).saturating_mul(c.into()))
.saturating_add(Weight::from_parts(0, 2603).saturating_mul(c.into()))
}
/// Storage: Assets Asset (r:1 w:1)
/// Proof: Assets Asset (max_values: None, max_size: Some(210), added: 2685, mode: MaxEncodedLen)
@@ -147,11 +144,11 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn destroy_approvals(a: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `522 + a * (86 ±0)`
// Estimated: `7288 + a * (2623 ±0)`
// Minimum execution time: 20_798_000 picoseconds.
Weight::from_parts(21_129_000, 7288)
// Standard Error: 7_484
.saturating_add(Weight::from_parts(12_761_996, 0).saturating_mul(a.into()))
// Estimated: `3675 + a * (2623 ±0)`
// Minimum execution time: 21_604_000 picoseconds.
Weight::from_parts(21_881_000, 3675)
// Standard Error: 4_225
.saturating_add(Weight::from_parts(15_968_205, 0).saturating_mul(a.into()))
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(a.into())))
.saturating_add(T::DbWeight::get().writes(1_u64))
@@ -165,9 +162,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn finish_destroy() -> Weight {
// Proof Size summary in bytes:
// Measured: `351`
// Estimated: `7280`
// Minimum execution time: 15_870_000 picoseconds.
Weight::from_parts(16_280_000, 7280)
// Estimated: `3675`
// Minimum execution time: 16_465_000 picoseconds.
Weight::from_parts(16_775_000, 3675)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -178,9 +175,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn mint() -> Weight {
// Proof Size summary in bytes:
// Measured: `351`
// Estimated: `7242`
// Minimum execution time: 28_556_000 picoseconds.
Weight::from_parts(28_972_000, 7242)
// Estimated: `3675`
// Minimum execution time: 30_709_000 picoseconds.
Weight::from_parts(31_159_000, 3675)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
@@ -191,9 +188,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn burn() -> Weight {
// Proof Size summary in bytes:
// Measured: `459`
// Estimated: `7242`
// Minimum execution time: 35_379_000 picoseconds.
Weight::from_parts(35_826_000, 7242)
// Estimated: `3675`
// Minimum execution time: 36_944_000 picoseconds.
Weight::from_parts(38_166_000, 3675)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
@@ -206,9 +203,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn transfer() -> Weight {
// Proof Size summary in bytes:
// Measured: `498`
// Estimated: `13412`
// Minimum execution time: 48_837_000 picoseconds.
Weight::from_parts(49_305_000, 13412)
// Estimated: `6144`
// Minimum execution time: 52_497_000 picoseconds.
Weight::from_parts(53_147_000, 6144)
.saturating_add(T::DbWeight::get().reads(4_u64))
.saturating_add(T::DbWeight::get().writes(4_u64))
}
@@ -221,9 +218,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn transfer_keep_alive() -> Weight {
// Proof Size summary in bytes:
// Measured: `498`
// Estimated: `13412`
// Minimum execution time: 43_603_000 picoseconds.
Weight::from_parts(44_142_000, 13412)
// Estimated: `6144`
// Minimum execution time: 46_203_000 picoseconds.
Weight::from_parts(46_853_000, 6144)
.saturating_add(T::DbWeight::get().reads(4_u64))
.saturating_add(T::DbWeight::get().writes(4_u64))
}
@@ -236,9 +233,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn force_transfer() -> Weight {
// Proof Size summary in bytes:
// Measured: `498`
// Estimated: `13412`
// Minimum execution time: 49_691_000 picoseconds.
Weight::from_parts(50_402_000, 13412)
// Estimated: `6144`
// Minimum execution time: 52_911_000 picoseconds.
Weight::from_parts(55_511_000, 6144)
.saturating_add(T::DbWeight::get().reads(4_u64))
.saturating_add(T::DbWeight::get().writes(4_u64))
}
@@ -249,9 +246,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn freeze() -> Weight {
// Proof Size summary in bytes:
// Measured: `459`
// Estimated: `7242`
// Minimum execution time: 19_600_000 picoseconds.
Weight::from_parts(20_435_000, 7242)
// Estimated: `3675`
// Minimum execution time: 20_308_000 picoseconds.
Weight::from_parts(20_524_000, 3675)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -262,9 +259,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn thaw() -> Weight {
// Proof Size summary in bytes:
// Measured: `459`
// Estimated: `7242`
// Minimum execution time: 19_396_000 picoseconds.
Weight::from_parts(19_745_000, 7242)
// Estimated: `3675`
// Minimum execution time: 20_735_000 picoseconds.
Weight::from_parts(21_026_000, 3675)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -274,8 +271,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `385`
// Estimated: `3675`
// Minimum execution time: 15_503_000 picoseconds.
Weight::from_parts(15_788_000, 3675)
// Minimum execution time: 16_148_000 picoseconds.
Weight::from_parts(16_404_000, 3675)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -285,8 +282,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `385`
// Estimated: `3675`
// Minimum execution time: 15_874_000 picoseconds.
Weight::from_parts(16_190_000, 3675)
// Minimum execution time: 16_075_000 picoseconds.
Weight::from_parts(16_542_000, 3675)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -297,9 +294,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn transfer_ownership() -> Weight {
// Proof Size summary in bytes:
// Measured: `351`
// Estimated: `7280`
// Minimum execution time: 17_067_000 picoseconds.
Weight::from_parts(17_355_000, 7280)
// Estimated: `3675`
// Minimum execution time: 17_866_000 picoseconds.
Weight::from_parts(18_129_000, 3675)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -309,8 +306,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `351`
// Estimated: `3675`
// Minimum execution time: 16_155_000 picoseconds.
Weight::from_parts(16_442_000, 3675)
// Minimum execution time: 16_637_000 picoseconds.
Weight::from_parts(16_918_000, 3675)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -320,12 +317,14 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Proof: Assets Metadata (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen)
/// The range of component `n` is `[0, 50]`.
/// The range of component `s` is `[0, 50]`.
fn set_metadata(_n: u32, _s: u32, ) -> Weight {
fn set_metadata(_n: u32, s: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `351`
// Estimated: `7280`
// Minimum execution time: 27_270_000 picoseconds.
Weight::from_parts(28_634_060, 7280)
// Estimated: `3675`
// Minimum execution time: 33_304_000 picoseconds.
Weight::from_parts(34_764_544, 3675)
// Standard Error: 634
.saturating_add(Weight::from_parts(4_733, 0).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -336,9 +335,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn clear_metadata() -> Weight {
// Proof Size summary in bytes:
// Measured: `515`
// Estimated: `7280`
// Minimum execution time: 27_469_000 picoseconds.
Weight::from_parts(27_911_000, 7280)
// Estimated: `3675`
// Minimum execution time: 33_640_000 picoseconds.
Weight::from_parts(34_100_000, 3675)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -348,14 +347,16 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Proof: Assets Metadata (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen)
/// The range of component `n` is `[0, 50]`.
/// The range of component `s` is `[0, 50]`.
fn force_set_metadata(_n: u32, s: u32, ) -> Weight {
fn force_set_metadata(n: u32, s: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `190`
// Estimated: `7280`
// Minimum execution time: 16_008_000 picoseconds.
Weight::from_parts(17_007_654, 7280)
// Standard Error: 527
.saturating_add(Weight::from_parts(4_158, 0).saturating_mul(s.into()))
// Estimated: `3675`
// Minimum execution time: 16_549_000 picoseconds.
Weight::from_parts(17_337_982, 3675)
// Standard Error: 586
.saturating_add(Weight::from_parts(4_584, 0).saturating_mul(n.into()))
// Standard Error: 586
.saturating_add(Weight::from_parts(4_288, 0).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -366,9 +367,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn force_clear_metadata() -> Weight {
// Proof Size summary in bytes:
// Measured: `515`
// Estimated: `7280`
// Minimum execution time: 27_118_000 picoseconds.
Weight::from_parts(27_776_000, 7280)
// Estimated: `3675`
// Minimum execution time: 34_183_000 picoseconds.
Weight::from_parts(34_577_000, 3675)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -378,8 +379,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `351`
// Estimated: `3675`
// Minimum execution time: 14_776_000 picoseconds.
Weight::from_parts(15_281_000, 3675)
// Minimum execution time: 15_505_000 picoseconds.
Weight::from_parts(15_784_000, 3675)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -390,9 +391,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn approve_transfer() -> Weight {
// Proof Size summary in bytes:
// Measured: `385`
// Estimated: `7288`
// Minimum execution time: 31_324_000 picoseconds.
Weight::from_parts(32_161_000, 7288)
// Estimated: `3675`
// Minimum execution time: 38_762_000 picoseconds.
Weight::from_parts(39_138_000, 3675)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
@@ -407,9 +408,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn transfer_approved() -> Weight {
// Proof Size summary in bytes:
// Measured: `668`
// Estimated: `17025`
// Minimum execution time: 63_750_000 picoseconds.
Weight::from_parts(64_828_000, 17025)
// Estimated: `6144`
// Minimum execution time: 73_396_000 picoseconds.
Weight::from_parts(73_986_000, 6144)
.saturating_add(T::DbWeight::get().reads(5_u64))
.saturating_add(T::DbWeight::get().writes(5_u64))
}
@@ -420,9 +421,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn cancel_approval() -> Weight {
// Proof Size summary in bytes:
// Measured: `555`
// Estimated: `7288`
// Minimum execution time: 32_698_000 picoseconds.
Weight::from_parts(33_309_000, 7288)
// Estimated: `3675`
// Minimum execution time: 39_707_000 picoseconds.
Weight::from_parts(40_222_000, 3675)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
@@ -433,9 +434,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn force_cancel_approval() -> Weight {
// Proof Size summary in bytes:
// Measured: `555`
// Estimated: `7288`
// Minimum execution time: 33_147_000 picoseconds.
Weight::from_parts(33_620_000, 7288)
// Estimated: `3675`
// Minimum execution time: 40_357_000 picoseconds.
Weight::from_parts(40_731_000, 3675)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
@@ -445,8 +446,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `351`
// Estimated: `3675`
// Minimum execution time: 15_910_000 picoseconds.
Weight::from_parts(16_315_000, 3675)
// Minimum execution time: 16_937_000 picoseconds.
Weight::from_parts(17_219_000, 3675)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -461,9 +462,9 @@ impl WeightInfo for () {
fn create() -> Weight {
// Proof Size summary in bytes:
// Measured: `293`
// Estimated: `7268`
// Minimum execution time: 27_756_000 picoseconds.
Weight::from_parts(28_637_000, 7268)
// Estimated: `3675`
// Minimum execution time: 33_678_000 picoseconds.
Weight::from_parts(34_320_000, 3675)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
@@ -473,8 +474,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `153`
// Estimated: `3675`
// Minimum execution time: 15_402_000 picoseconds.
Weight::from_parts(15_803_000, 3675)
// Minimum execution time: 15_521_000 picoseconds.
Weight::from_parts(16_035_000, 3675)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -484,8 +485,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `385`
// Estimated: `3675`
// Minimum execution time: 16_027_000 picoseconds.
Weight::from_parts(16_372_000, 3675)
// Minimum execution time: 15_921_000 picoseconds.
Weight::from_parts(16_153_000, 3675)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -499,16 +500,16 @@ impl WeightInfo for () {
fn destroy_accounts(c: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `0 + c * (208 ±0)`
// Estimated: `8232 + c * (5180 ±0)`
// Minimum execution time: 20_667_000 picoseconds.
Weight::from_parts(20_930_000, 8232)
// Standard Error: 7_226
.saturating_add(Weight::from_parts(12_759_091, 0).saturating_mul(c.into()))
// Estimated: `3675 + c * (2603 ±0)`
// Minimum execution time: 21_242_000 picoseconds.
Weight::from_parts(21_532_000, 3675)
// Standard Error: 6_449
.saturating_add(Weight::from_parts(13_150_845, 0).saturating_mul(c.into()))
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().reads((2_u64).saturating_mul(c.into())))
.saturating_add(RocksDbWeight::get().writes(1_u64))
.saturating_add(RocksDbWeight::get().writes((2_u64).saturating_mul(c.into())))
.saturating_add(Weight::from_parts(0, 5180).saturating_mul(c.into()))
.saturating_add(Weight::from_parts(0, 2603).saturating_mul(c.into()))
}
/// Storage: Assets Asset (r:1 w:1)
/// Proof: Assets Asset (max_values: None, max_size: Some(210), added: 2685, mode: MaxEncodedLen)
@@ -518,11 +519,11 @@ impl WeightInfo for () {
fn destroy_approvals(a: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `522 + a * (86 ±0)`
// Estimated: `7288 + a * (2623 ±0)`
// Minimum execution time: 20_798_000 picoseconds.
Weight::from_parts(21_129_000, 7288)
// Standard Error: 7_484
.saturating_add(Weight::from_parts(12_761_996, 0).saturating_mul(a.into()))
// Estimated: `3675 + a * (2623 ±0)`
// Minimum execution time: 21_604_000 picoseconds.
Weight::from_parts(21_881_000, 3675)
// Standard Error: 4_225
.saturating_add(Weight::from_parts(15_968_205, 0).saturating_mul(a.into()))
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(a.into())))
.saturating_add(RocksDbWeight::get().writes(1_u64))
@@ -536,9 +537,9 @@ impl WeightInfo for () {
fn finish_destroy() -> Weight {
// Proof Size summary in bytes:
// Measured: `351`
// Estimated: `7280`
// Minimum execution time: 15_870_000 picoseconds.
Weight::from_parts(16_280_000, 7280)
// Estimated: `3675`
// Minimum execution time: 16_465_000 picoseconds.
Weight::from_parts(16_775_000, 3675)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -549,9 +550,9 @@ impl WeightInfo for () {
fn mint() -> Weight {
// Proof Size summary in bytes:
// Measured: `351`
// Estimated: `7242`
// Minimum execution time: 28_556_000 picoseconds.
Weight::from_parts(28_972_000, 7242)
// Estimated: `3675`
// Minimum execution time: 30_709_000 picoseconds.
Weight::from_parts(31_159_000, 3675)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
@@ -562,9 +563,9 @@ impl WeightInfo for () {
fn burn() -> Weight {
// Proof Size summary in bytes:
// Measured: `459`
// Estimated: `7242`
// Minimum execution time: 35_379_000 picoseconds.
Weight::from_parts(35_826_000, 7242)
// Estimated: `3675`
// Minimum execution time: 36_944_000 picoseconds.
Weight::from_parts(38_166_000, 3675)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
@@ -577,9 +578,9 @@ impl WeightInfo for () {
fn transfer() -> Weight {
// Proof Size summary in bytes:
// Measured: `498`
// Estimated: `13412`
// Minimum execution time: 48_837_000 picoseconds.
Weight::from_parts(49_305_000, 13412)
// Estimated: `6144`
// Minimum execution time: 52_497_000 picoseconds.
Weight::from_parts(53_147_000, 6144)
.saturating_add(RocksDbWeight::get().reads(4_u64))
.saturating_add(RocksDbWeight::get().writes(4_u64))
}
@@ -592,9 +593,9 @@ impl WeightInfo for () {
fn transfer_keep_alive() -> Weight {
// Proof Size summary in bytes:
// Measured: `498`
// Estimated: `13412`
// Minimum execution time: 43_603_000 picoseconds.
Weight::from_parts(44_142_000, 13412)
// Estimated: `6144`
// Minimum execution time: 46_203_000 picoseconds.
Weight::from_parts(46_853_000, 6144)
.saturating_add(RocksDbWeight::get().reads(4_u64))
.saturating_add(RocksDbWeight::get().writes(4_u64))
}
@@ -607,9 +608,9 @@ impl WeightInfo for () {
fn force_transfer() -> Weight {
// Proof Size summary in bytes:
// Measured: `498`
// Estimated: `13412`
// Minimum execution time: 49_691_000 picoseconds.
Weight::from_parts(50_402_000, 13412)
// Estimated: `6144`
// Minimum execution time: 52_911_000 picoseconds.
Weight::from_parts(55_511_000, 6144)
.saturating_add(RocksDbWeight::get().reads(4_u64))
.saturating_add(RocksDbWeight::get().writes(4_u64))
}
@@ -620,9 +621,9 @@ impl WeightInfo for () {
fn freeze() -> Weight {
// Proof Size summary in bytes:
// Measured: `459`
// Estimated: `7242`
// Minimum execution time: 19_600_000 picoseconds.
Weight::from_parts(20_435_000, 7242)
// Estimated: `3675`
// Minimum execution time: 20_308_000 picoseconds.
Weight::from_parts(20_524_000, 3675)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -633,9 +634,9 @@ impl WeightInfo for () {
fn thaw() -> Weight {
// Proof Size summary in bytes:
// Measured: `459`
// Estimated: `7242`
// Minimum execution time: 19_396_000 picoseconds.
Weight::from_parts(19_745_000, 7242)
// Estimated: `3675`
// Minimum execution time: 20_735_000 picoseconds.
Weight::from_parts(21_026_000, 3675)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -645,8 +646,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `385`
// Estimated: `3675`
// Minimum execution time: 15_503_000 picoseconds.
Weight::from_parts(15_788_000, 3675)
// Minimum execution time: 16_148_000 picoseconds.
Weight::from_parts(16_404_000, 3675)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -656,8 +657,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `385`
// Estimated: `3675`
// Minimum execution time: 15_874_000 picoseconds.
Weight::from_parts(16_190_000, 3675)
// Minimum execution time: 16_075_000 picoseconds.
Weight::from_parts(16_542_000, 3675)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -668,9 +669,9 @@ impl WeightInfo for () {
fn transfer_ownership() -> Weight {
// Proof Size summary in bytes:
// Measured: `351`
// Estimated: `7280`
// Minimum execution time: 17_067_000 picoseconds.
Weight::from_parts(17_355_000, 7280)
// Estimated: `3675`
// Minimum execution time: 17_866_000 picoseconds.
Weight::from_parts(18_129_000, 3675)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -680,8 +681,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `351`
// Estimated: `3675`
// Minimum execution time: 16_155_000 picoseconds.
Weight::from_parts(16_442_000, 3675)
// Minimum execution time: 16_637_000 picoseconds.
Weight::from_parts(16_918_000, 3675)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -691,12 +692,14 @@ impl WeightInfo for () {
/// Proof: Assets Metadata (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen)
/// The range of component `n` is `[0, 50]`.
/// The range of component `s` is `[0, 50]`.
fn set_metadata(_n: u32, _s: u32, ) -> Weight {
fn set_metadata(_n: u32, s: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `351`
// Estimated: `7280`
// Minimum execution time: 27_270_000 picoseconds.
Weight::from_parts(28_634_060, 7280)
// Estimated: `3675`
// Minimum execution time: 33_304_000 picoseconds.
Weight::from_parts(34_764_544, 3675)
// Standard Error: 634
.saturating_add(Weight::from_parts(4_733, 0).saturating_mul(s.into()))
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -707,9 +710,9 @@ impl WeightInfo for () {
fn clear_metadata() -> Weight {
// Proof Size summary in bytes:
// Measured: `515`
// Estimated: `7280`
// Minimum execution time: 27_469_000 picoseconds.
Weight::from_parts(27_911_000, 7280)
// Estimated: `3675`
// Minimum execution time: 33_640_000 picoseconds.
Weight::from_parts(34_100_000, 3675)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -719,14 +722,16 @@ impl WeightInfo for () {
/// Proof: Assets Metadata (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen)
/// The range of component `n` is `[0, 50]`.
/// The range of component `s` is `[0, 50]`.
fn force_set_metadata(_n: u32, s: u32, ) -> Weight {
fn force_set_metadata(n: u32, s: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `190`
// Estimated: `7280`
// Minimum execution time: 16_008_000 picoseconds.
Weight::from_parts(17_007_654, 7280)
// Standard Error: 527
.saturating_add(Weight::from_parts(4_158, 0).saturating_mul(s.into()))
// Estimated: `3675`
// Minimum execution time: 16_549_000 picoseconds.
Weight::from_parts(17_337_982, 3675)
// Standard Error: 586
.saturating_add(Weight::from_parts(4_584, 0).saturating_mul(n.into()))
// Standard Error: 586
.saturating_add(Weight::from_parts(4_288, 0).saturating_mul(s.into()))
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -737,9 +742,9 @@ impl WeightInfo for () {
fn force_clear_metadata() -> Weight {
// Proof Size summary in bytes:
// Measured: `515`
// Estimated: `7280`
// Minimum execution time: 27_118_000 picoseconds.
Weight::from_parts(27_776_000, 7280)
// Estimated: `3675`
// Minimum execution time: 34_183_000 picoseconds.
Weight::from_parts(34_577_000, 3675)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -749,8 +754,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `351`
// Estimated: `3675`
// Minimum execution time: 14_776_000 picoseconds.
Weight::from_parts(15_281_000, 3675)
// Minimum execution time: 15_505_000 picoseconds.
Weight::from_parts(15_784_000, 3675)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -761,9 +766,9 @@ impl WeightInfo for () {
fn approve_transfer() -> Weight {
// Proof Size summary in bytes:
// Measured: `385`
// Estimated: `7288`
// Minimum execution time: 31_324_000 picoseconds.
Weight::from_parts(32_161_000, 7288)
// Estimated: `3675`
// Minimum execution time: 38_762_000 picoseconds.
Weight::from_parts(39_138_000, 3675)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
@@ -778,9 +783,9 @@ impl WeightInfo for () {
fn transfer_approved() -> Weight {
// Proof Size summary in bytes:
// Measured: `668`
// Estimated: `17025`
// Minimum execution time: 63_750_000 picoseconds.
Weight::from_parts(64_828_000, 17025)
// Estimated: `6144`
// Minimum execution time: 73_396_000 picoseconds.
Weight::from_parts(73_986_000, 6144)
.saturating_add(RocksDbWeight::get().reads(5_u64))
.saturating_add(RocksDbWeight::get().writes(5_u64))
}
@@ -791,9 +796,9 @@ impl WeightInfo for () {
fn cancel_approval() -> Weight {
// Proof Size summary in bytes:
// Measured: `555`
// Estimated: `7288`
// Minimum execution time: 32_698_000 picoseconds.
Weight::from_parts(33_309_000, 7288)
// Estimated: `3675`
// Minimum execution time: 39_707_000 picoseconds.
Weight::from_parts(40_222_000, 3675)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
@@ -804,9 +809,9 @@ impl WeightInfo for () {
fn force_cancel_approval() -> Weight {
// Proof Size summary in bytes:
// Measured: `555`
// Estimated: `7288`
// Minimum execution time: 33_147_000 picoseconds.
Weight::from_parts(33_620_000, 7288)
// Estimated: `3675`
// Minimum execution time: 40_357_000 picoseconds.
Weight::from_parts(40_731_000, 3675)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
@@ -816,8 +821,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `351`
// Estimated: `3675`
// Minimum execution time: 15_910_000 picoseconds.
Weight::from_parts(16_315_000, 3675)
// Minimum execution time: 16_937_000 picoseconds.
Weight::from_parts(17_219_000, 3675)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}