difftreelog
chore(weight) rebench after rebase
in: master
3 files changed
pallets/common/src/weights.rsdiffbeforeafterboth1// Template adopted from https://github.com/paritytech/substrate/blob/master/.maintain/frame-weight-template.hbs23//! Autogenerated weights for pallet_common4//!5//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev6//! DATE: 2023-03-30, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`7//! WORST CASE MAP SIZE: `1000000`8//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024910// Executed Command:11// target/release/unique-collator12// benchmark13// pallet14// --pallet15// pallet-common16// --wasm-execution17// compiled18// --extrinsic19// *20// --template=.maintain/frame-weight-template.hbs21// --steps=5022// --repeat=8023// --heap-pages=409624// --output=./pallets/common/src/weights.rs2526#![cfg_attr(rustfmt, rustfmt_skip)]27#![allow(unused_parens)]28#![allow(unused_imports)]29#![allow(missing_docs)]30#![allow(clippy::unnecessary_cast)]3132use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};33use sp_std::marker::PhantomData;3435/// Weight functions needed for pallet_common.36pub trait WeightInfo {37 fn set_collection_properties(b: u32, ) -> Weight;38 fn delete_collection_properties(b: u32, ) -> Weight;39 fn check_accesslist() -> Weight;40}4142/// Weights for pallet_common using the Substrate node and recommended hardware.43pub struct SubstrateWeight<T>(PhantomData<T>);44impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {45 /// Storage: Common CollectionProperties (r:1 w:1)46 /// Proof: Common CollectionProperties (max_values: None, max_size: Some(40992), added: 43467, mode: MaxEncodedLen)47 /// The range of component `b` is `[0, 64]`.48 fn set_collection_properties(b: u32, ) -> Weight {49 // Proof Size summary in bytes:50 // Measured: `265`51 // Estimated: `43467`52 // Minimum execution time: 7_163_000 picoseconds.53 Weight::from_parts(586_898, 43467)54 // Standard Error: 23_78355 .saturating_add(Weight::from_parts(6_089_494, 0).saturating_mul(b.into()))56 .saturating_add(T::DbWeight::get().reads(1_u64))57 .saturating_add(T::DbWeight::get().writes(1_u64))58 }59 /// Storage: Common CollectionProperties (r:1 w:1)60 /// Proof: Common CollectionProperties (max_values: None, max_size: Some(40992), added: 43467, mode: MaxEncodedLen)61 /// The range of component `b` is `[0, 64]`.62 fn delete_collection_properties(b: u32, ) -> Weight {63 // Proof Size summary in bytes:64 // Measured: `302 + b * (33030 ±0)`65 // Estimated: `43467`66 // Minimum execution time: 6_540_000 picoseconds.67 Weight::from_parts(6_684_000, 43467)68 // Standard Error: 67_98469 .saturating_add(Weight::from_parts(21_502_829, 0).saturating_mul(b.into()))70 .saturating_add(T::DbWeight::get().writes(1_u64))71 }72// For backwards compatibility and tests73impl WeightInfo for () {74 /// Storage: Common CollectionProperties (r:1 w:1)75 /// Proof: Common CollectionProperties (max_values: None, max_size: Some(40992), added: 43467, mode: MaxEncodedLen)76 /// The range of component `b` is `[0, 64]`.77 fn set_collection_properties(b: u32, ) -> Weight {78 // Proof Size summary in bytes:79 // Measured: `265`80 // Estimated: `43467`81 // Minimum execution time: 7_163_000 picoseconds.82 Weight::from_parts(586_898, 43467)83 // Standard Error: 23_78384 .saturating_add(Weight::from_parts(6_089_494, 0).saturating_mul(b.into()))85 .saturating_add(RocksDbWeight::get().reads(1_u64))86 .saturating_add(RocksDbWeight::get().writes(1_u64))87 }88 /// Storage: Common CollectionProperties (r:1 w:1)89 /// Proof: Common CollectionProperties (max_values: None, max_size: Some(40992), added: 43467, mode: MaxEncodedLen)90 /// The range of component `b` is `[0, 64]`.91 fn delete_collection_properties(b: u32, ) -> Weight {92 // Proof Size summary in bytes:93 // Measured: `302 + b * (33030 ±0)`94 // Estimated: `43467`95 // Minimum execution time: 6_540_000 picoseconds.96 Weight::from_parts(6_684_000, 43467)97 // Standard Error: 67_98498 .saturating_add(Weight::from_parts(21_502_829, 0).saturating_mul(b.into()))99 .saturating_add(RocksDbWeight::get().writes(1_u64))100 }1// Template adopted from https://github.com/paritytech/substrate/blob/master/.maintain/frame-weight-template.hbs23//! Autogenerated weights for pallet_common4//!5//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev6//! DATE: 2023-03-30, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`7//! WORST CASE MAP SIZE: `1000000`8//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024910// Executed Command:11// target/release/unique-collator12// benchmark13// pallet14// --pallet15// pallet-common16// --wasm-execution17// compiled18// --extrinsic19// *20// --template=.maintain/frame-weight-template.hbs21// --steps=5022// --repeat=8023// --heap-pages=409624// --output=./pallets/common/src/weights.rs2526#![cfg_attr(rustfmt, rustfmt_skip)]27#![allow(unused_parens)]28#![allow(unused_imports)]29#![allow(missing_docs)]30#![allow(clippy::unnecessary_cast)]3132use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};33use sp_std::marker::PhantomData;3435/// Weight functions needed for pallet_common.36pub trait WeightInfo {37 fn set_collection_properties(b: u32, ) -> Weight;38 fn delete_collection_properties(b: u32, ) -> Weight;39 fn check_accesslist() -> Weight;40}4142/// Weights for pallet_common using the Substrate node and recommended hardware.43pub struct SubstrateWeight<T>(PhantomData<T>);44impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {45 /// Storage: Common CollectionProperties (r:1 w:1)46 /// Proof: Common CollectionProperties (max_values: None, max_size: Some(40992), added: 43467, mode: MaxEncodedLen)47 /// The range of component `b` is `[0, 64]`.48 fn set_collection_properties(b: u32, ) -> Weight {49 // Proof Size summary in bytes:50 // Measured: `265`51 // Estimated: `43467`52 // Minimum execution time: 7_163_000 picoseconds.53 Weight::from_parts(586_898, 43467)54 // Standard Error: 23_78355 .saturating_add(Weight::from_parts(6_089_494, 0).saturating_mul(b.into()))56 .saturating_add(T::DbWeight::get().reads(1_u64))57 .saturating_add(T::DbWeight::get().writes(1_u64))58 }59 /// Storage: Common CollectionProperties (r:1 w:1)60 /// Proof: Common CollectionProperties (max_values: None, max_size: Some(40992), added: 43467, mode: MaxEncodedLen)61 /// The range of component `b` is `[0, 64]`.62 fn delete_collection_properties(b: u32, ) -> Weight {63 // Proof Size summary in bytes:64 // Measured: `302 + b * (33030 ±0)`65 // Estimated: `43467`66 // Minimum execution time: 6_540_000 picoseconds.67 Weight::from_parts(6_684_000, 43467)68 // Standard Error: 67_98469 .saturating_add(Weight::from_parts(21_502_829, 0).saturating_mul(b.into()))70 .saturating_add(T::DbWeight::get().writes(1_u64))71 }72 /// Storage: Common Allowlist (r:1 w:0)73 /// Proof: Common Allowlist (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen)74 fn check_accesslist() -> Weight {75 // Proof Size summary in bytes:76 // Measured: `340`77 // Estimated: `2545`78 // Minimum execution time: 2_887_000 picoseconds.79 Weight::from_parts(3_072_000, 2545)80 .saturating_add(T::DbWeight::get().reads(1_u64))81 }82}8384// For backwards compatibility and tests85impl WeightInfo for () {86 /// Storage: Common CollectionProperties (r:1 w:1)87 /// Proof: Common CollectionProperties (max_values: None, max_size: Some(40992), added: 43467, mode: MaxEncodedLen)88 /// The range of component `b` is `[0, 64]`.89 fn set_collection_properties(b: u32, ) -> Weight {90 // Proof Size summary in bytes:91 // Measured: `265`92 // Estimated: `43467`93 // Minimum execution time: 7_163_000 picoseconds.94 Weight::from_parts(586_898, 43467)95 // Standard Error: 23_78396 .saturating_add(Weight::from_parts(6_089_494, 0).saturating_mul(b.into()))97 .saturating_add(RocksDbWeight::get().reads(1_u64))98 .saturating_add(RocksDbWeight::get().writes(1_u64))99 }100 /// Storage: Common CollectionProperties (r:1 w:1)101 /// Proof: Common CollectionProperties (max_values: None, max_size: Some(40992), added: 43467, mode: MaxEncodedLen)102 /// The range of component `b` is `[0, 64]`.103 fn delete_collection_properties(b: u32, ) -> Weight {104 // Proof Size summary in bytes:105 // Measured: `302 + b * (33030 ±0)`106 // Estimated: `43467`107 // Minimum execution time: 6_540_000 picoseconds.108 Weight::from_parts(6_684_000, 43467)109 // Standard Error: 67_984110 .saturating_add(Weight::from_parts(21_502_829, 0).saturating_mul(b.into()))111 .saturating_add(RocksDbWeight::get().writes(1_u64))112 }113 /// Storage: Common Allowlist (r:1 w:0)114 /// Proof: Common Allowlist (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen)115 fn check_accesslist() -> Weight {116 // Proof Size summary in bytes:117 // Measured: `340`118 // Estimated: `2545`119 // Minimum execution time: 2_887_000 picoseconds.120 Weight::from_parts(3_072_000, 2545)121 .saturating_add(RocksDbWeight::get().reads(1_u64))122 }123}124pallets/fungible/src/weights.rsdiffbeforeafterboth--- a/pallets/fungible/src/weights.rs
+++ b/pallets/fungible/src/weights.rs
@@ -93,11 +93,16 @@
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
- // Storage: Fungible Balance (r:2 w:2)
+ /// Storage: Fungible Balance (r:2 w:2)
+ /// Proof: Fungible Balance (max_values: None, max_size: Some(77), added: 2552, mode: MaxEncodedLen)
fn transfer_raw() -> Weight {
- Weight::from_ref_time(12_041_000 as u64)
- .saturating_add(T::DbWeight::get().reads(2 as u64))
- .saturating_add(T::DbWeight::get().writes(2 as u64))
+ // Proof Size summary in bytes:
+ // Measured: `182`
+ // Estimated: `5104`
+ // Minimum execution time: 6_678_000 picoseconds.
+ Weight::from_parts(7_151_000, 5104)
+ .saturating_add(T::DbWeight::get().reads(2_u64))
+ .saturating_add(T::DbWeight::get().writes(2_u64))
}
/// Storage: Fungible Balance (r:1 w:0)
/// Proof: Fungible Balance (max_values: None, max_size: Some(77), added: 2552, mode: MaxEncodedLen)
@@ -125,16 +130,25 @@
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
- // Storage: Fungible Allowance (r:1 w:0)
+ /// Storage: Fungible Allowance (r:1 w:0)
+ /// Proof: Fungible Allowance (max_values: None, max_size: Some(93), added: 2568, mode: MaxEncodedLen)
fn check_allowed_raw() -> Weight {
- Weight::from_ref_time(3_550_000 as u64)
- .saturating_add(T::DbWeight::get().reads(1 as u64))
+ // Proof Size summary in bytes:
+ // Measured: `210`
+ // Estimated: `2568`
+ // Minimum execution time: 2_842_000 picoseconds.
+ Weight::from_parts(3_077_000, 2568)
+ .saturating_add(T::DbWeight::get().reads(1_u64))
}
- // Storage: Fungible Allowance (r:1 w:1)
+ /// Storage: Fungible Allowance (r:0 w:1)
+ /// Proof: Fungible Allowance (max_values: None, max_size: Some(93), added: 2568, mode: MaxEncodedLen)
fn set_allowance_unchecked_raw() -> Weight {
- Weight::from_ref_time(10_682_000 as u64)
- .saturating_add(T::DbWeight::get().reads(1 as u64))
- .saturating_add(T::DbWeight::get().writes(1 as u64))
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 2_532_000 picoseconds.
+ Weight::from_parts(2_680_000, 0)
+ .saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: Fungible Allowance (r:1 w:1)
/// Proof: Fungible Allowance (max_values: None, max_size: Some(93), added: 2568, mode: MaxEncodedLen)
@@ -200,11 +214,16 @@
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
- // Storage: Fungible Balance (r:2 w:2)
+ /// Storage: Fungible Balance (r:2 w:2)
+ /// Proof: Fungible Balance (max_values: None, max_size: Some(77), added: 2552, mode: MaxEncodedLen)
fn transfer_raw() -> Weight {
- Weight::from_ref_time(12_041_000 as u64)
- .saturating_add(RocksDbWeight::get().reads(2 as u64))
- .saturating_add(RocksDbWeight::get().writes(2 as u64))
+ // Proof Size summary in bytes:
+ // Measured: `182`
+ // Estimated: `5104`
+ // Minimum execution time: 6_678_000 picoseconds.
+ Weight::from_parts(7_151_000, 5104)
+ .saturating_add(RocksDbWeight::get().reads(2_u64))
+ .saturating_add(RocksDbWeight::get().writes(2_u64))
}
/// Storage: Fungible Balance (r:1 w:0)
/// Proof: Fungible Balance (max_values: None, max_size: Some(77), added: 2552, mode: MaxEncodedLen)
@@ -232,16 +251,25 @@
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
- // Storage: Fungible Allowance (r:1 w:0)
+ /// Storage: Fungible Allowance (r:1 w:0)
+ /// Proof: Fungible Allowance (max_values: None, max_size: Some(93), added: 2568, mode: MaxEncodedLen)
fn check_allowed_raw() -> Weight {
- Weight::from_ref_time(3_550_000 as u64)
- .saturating_add(RocksDbWeight::get().reads(1 as u64))
+ // Proof Size summary in bytes:
+ // Measured: `210`
+ // Estimated: `2568`
+ // Minimum execution time: 2_842_000 picoseconds.
+ Weight::from_parts(3_077_000, 2568)
+ .saturating_add(RocksDbWeight::get().reads(1_u64))
}
- // Storage: Fungible Allowance (r:1 w:1)
+ /// Storage: Fungible Allowance (r:0 w:1)
+ /// Proof: Fungible Allowance (max_values: None, max_size: Some(93), added: 2568, mode: MaxEncodedLen)
fn set_allowance_unchecked_raw() -> Weight {
- Weight::from_ref_time(10_682_000 as u64)
- .saturating_add(RocksDbWeight::get().reads(1 as u64))
- .saturating_add(RocksDbWeight::get().writes(1 as u64))
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 2_532_000 picoseconds.
+ Weight::from_parts(2_680_000, 0)
+ .saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: Fungible Allowance (r:1 w:1)
/// Proof: Fungible Allowance (max_values: None, max_size: Some(93), added: 2568, mode: MaxEncodedLen)
pallets/nonfungible/src/weights.rsdiffbeforeafterboth--- a/pallets/nonfungible/src/weights.rs
+++ b/pallets/nonfungible/src/weights.rs
@@ -209,14 +209,22 @@
.saturating_add(T::DbWeight::get().writes((4_u64).saturating_mul(b.into())))
.saturating_add(Weight::from_parts(0, 10097).saturating_mul(b.into()))
}
- // Storage: Nonfungible TokenData (r:1 w:1)
- // Storage: Nonfungible AccountBalance (r:2 w:2)
- // Storage: Nonfungible Allowance (r:1 w:0)
- // Storage: Nonfungible Owned (r:0 w:2)
+ /// Storage: Nonfungible TokenData (r:1 w:1)
+ /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)
+ /// Storage: Nonfungible AccountBalance (r:2 w:2)
+ /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)
+ /// Storage: Nonfungible Allowance (r:1 w:0)
+ /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)
+ /// Storage: Nonfungible Owned (r:0 w:2)
+ /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)
fn transfer_raw() -> Weight {
- Weight::from_ref_time(14_909_000 as u64)
- .saturating_add(T::DbWeight::get().reads(4 as u64))
- .saturating_add(T::DbWeight::get().writes(5 as u64))
+ // Proof Size summary in bytes:
+ // Measured: `412`
+ // Estimated: `10144`
+ // Minimum execution time: 9_307_000 picoseconds.
+ Weight::from_parts(10_108_000, 10144)
+ .saturating_add(T::DbWeight::get().reads(4_u64))
+ .saturating_add(T::DbWeight::get().writes(5_u64))
}
/// Storage: Nonfungible TokenData (r:1 w:0)
/// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)
@@ -244,10 +252,15 @@
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
- // Storage: Nonfungible Allowance (r:1 w:0)
+ /// Storage: Nonfungible Allowance (r:1 w:0)
+ /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)
fn checks_allowed_raw() -> Weight {
- Weight::from_ref_time(3_341_000 as u64)
- .saturating_add(T::DbWeight::get().reads(1 as u64))
+ // Proof Size summary in bytes:
+ // Measured: `394`
+ // Estimated: `2532`
+ // Minimum execution time: 2_668_000 picoseconds.
+ Weight::from_parts(2_877_000, 2532)
+ .saturating_add(T::DbWeight::get().reads(1_u64))
}
/// Storage: Nonfungible Allowance (r:1 w:1)
/// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)
@@ -515,14 +528,22 @@
.saturating_add(RocksDbWeight::get().writes((4_u64).saturating_mul(b.into())))
.saturating_add(Weight::from_parts(0, 10097).saturating_mul(b.into()))
}
- // Storage: Nonfungible TokenData (r:1 w:1)
- // Storage: Nonfungible AccountBalance (r:2 w:2)
- // Storage: Nonfungible Allowance (r:1 w:0)
- // Storage: Nonfungible Owned (r:0 w:2)
+ /// Storage: Nonfungible TokenData (r:1 w:1)
+ /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)
+ /// Storage: Nonfungible AccountBalance (r:2 w:2)
+ /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)
+ /// Storage: Nonfungible Allowance (r:1 w:0)
+ /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)
+ /// Storage: Nonfungible Owned (r:0 w:2)
+ /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)
fn transfer_raw() -> Weight {
- Weight::from_ref_time(14_909_000 as u64)
- .saturating_add(RocksDbWeight::get().reads(4 as u64))
- .saturating_add(RocksDbWeight::get().writes(5 as u64))
+ // Proof Size summary in bytes:
+ // Measured: `412`
+ // Estimated: `10144`
+ // Minimum execution time: 9_307_000 picoseconds.
+ Weight::from_parts(10_108_000, 10144)
+ .saturating_add(RocksDbWeight::get().reads(4_u64))
+ .saturating_add(RocksDbWeight::get().writes(5_u64))
}
/// Storage: Nonfungible TokenData (r:1 w:0)
/// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)
@@ -550,10 +571,15 @@
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
- // Storage: Nonfungible Allowance (r:1 w:0)
+ /// Storage: Nonfungible Allowance (r:1 w:0)
+ /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)
fn checks_allowed_raw() -> Weight {
- Weight::from_ref_time(3_341_000 as u64)
- .saturating_add(RocksDbWeight::get().reads(1 as u64))
+ // Proof Size summary in bytes:
+ // Measured: `394`
+ // Estimated: `2532`
+ // Minimum execution time: 2_668_000 picoseconds.
+ Weight::from_parts(2_877_000, 2532)
+ .saturating_add(RocksDbWeight::get().reads(1_u64))
}
/// Storage: Nonfungible Allowance (r:1 w:1)
/// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)