[benchmarks] pr with weights (#1946) (#1971)

Co-authored-by: paritytech-ci <paritytech-ci@parity.io>

Co-authored-by: Egor_P <egor@parity.io>
Co-authored-by: paritytech-ci <paritytech-ci@parity.io>
This commit is contained in:
Squirrel
2022-12-08 12:38:58 +00:00
committed by GitHub
parent 5401c47113
commit 97bc16ba7c
39 changed files with 1042 additions and 1010 deletions
@@ -17,8 +17,8 @@
//! Autogenerated weights for `pallet_uniques`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2022-11-10, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! HOSTNAME: `bm6`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
//! DATE: 2022-12-05, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! HOSTNAME: `bm4`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("westmint-dev"), DB CACHE: 1024
// Executed Command:
@@ -49,16 +49,16 @@ impl<T: frame_system::Config> pallet_uniques::WeightInfo for WeightInfo<T> {
// Storage: Uniques Class (r:1 w:1)
// Storage: Uniques ClassAccount (r:0 w:1)
fn create() -> Weight {
// Minimum execution time: 34_128 nanoseconds.
Weight::from_ref_time(34_756_000 as u64)
// Minimum execution time: 35_061 nanoseconds.
Weight::from_ref_time(35_721_000 as u64)
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
}
// Storage: Uniques Class (r:1 w:1)
// Storage: Uniques ClassAccount (r:0 w:1)
fn force_create() -> Weight {
// Minimum execution time: 22_112 nanoseconds.
Weight::from_ref_time(22_776_000 as u64)
// Minimum execution time: 22_812 nanoseconds.
Weight::from_ref_time(23_268_000 as u64)
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
}
@@ -74,13 +74,14 @@ impl<T: frame_system::Config> pallet_uniques::WeightInfo for WeightInfo<T> {
/// The range of component `m` is `[0, 1000]`.
/// The range of component `a` is `[0, 1000]`.
fn destroy(n: u32, m: u32, a: u32, ) -> Weight {
Weight::from_ref_time(0 as u64)
// Standard Error: 13_000
.saturating_add(Weight::from_ref_time(10_002_000 as u64).saturating_mul(n as u64))
// Standard Error: 13_000
.saturating_add(Weight::from_ref_time(1_796_000 as u64).saturating_mul(m as u64))
// Standard Error: 13_000
.saturating_add(Weight::from_ref_time(1_646_000 as u64).saturating_mul(a as u64))
// Minimum execution time: 2_518_363 nanoseconds.
Weight::from_ref_time(2_538_933_000 as u64)
// Standard Error: 29_142
.saturating_add(Weight::from_ref_time(8_817_380 as u64).saturating_mul(n as u64))
// Standard Error: 29_142
.saturating_add(Weight::from_ref_time(355_519 as u64).saturating_mul(m as u64))
// Standard Error: 29_142
.saturating_add(Weight::from_ref_time(218_699 as u64).saturating_mul(a as u64))
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(n as u64)))
.saturating_add(T::DbWeight::get().writes(4 as u64))
@@ -93,8 +94,8 @@ impl<T: frame_system::Config> pallet_uniques::WeightInfo for WeightInfo<T> {
// Storage: Uniques CollectionMaxSupply (r:1 w:0)
// Storage: Uniques Account (r:0 w:1)
fn mint() -> Weight {
// Minimum execution time: 43_312 nanoseconds.
Weight::from_ref_time(43_855_000 as u64)
// Minimum execution time: 43_717 nanoseconds.
Weight::from_ref_time(44_025_000 as u64)
.saturating_add(T::DbWeight::get().reads(3 as u64))
.saturating_add(T::DbWeight::get().writes(3 as u64))
}
@@ -103,8 +104,8 @@ impl<T: frame_system::Config> pallet_uniques::WeightInfo for WeightInfo<T> {
// Storage: Uniques Account (r:0 w:1)
// Storage: Uniques ItemPriceOf (r:0 w:1)
fn burn() -> Weight {
// Minimum execution time: 46_655 nanoseconds.
Weight::from_ref_time(47_326_000 as u64)
// Minimum execution time: 45_450 nanoseconds.
Weight::from_ref_time(46_246_000 as u64)
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(4 as u64))
}
@@ -113,8 +114,8 @@ impl<T: frame_system::Config> pallet_uniques::WeightInfo for WeightInfo<T> {
// Storage: Uniques Account (r:0 w:2)
// Storage: Uniques ItemPriceOf (r:0 w:1)
fn transfer() -> Weight {
// Minimum execution time: 35_543 nanoseconds.
Weight::from_ref_time(36_056_000 as u64)
// Minimum execution time: 35_863 nanoseconds.
Weight::from_ref_time(36_532_000 as u64)
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(4 as u64))
}
@@ -122,10 +123,10 @@ impl<T: frame_system::Config> pallet_uniques::WeightInfo for WeightInfo<T> {
// Storage: Uniques Asset (r:102 w:102)
/// The range of component `i` is `[0, 5000]`.
fn redeposit(i: u32, ) -> Weight {
// Minimum execution time: 24_807 nanoseconds.
Weight::from_ref_time(24_934_000 as u64)
// Standard Error: 10_238
.saturating_add(Weight::from_ref_time(11_411_461 as u64).saturating_mul(i as u64))
// Minimum execution time: 23_882 nanoseconds.
Weight::from_ref_time(24_152_000 as u64)
// Standard Error: 9_316
.saturating_add(Weight::from_ref_time(11_330_503 as u64).saturating_mul(i as u64))
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(i as u64)))
.saturating_add(T::DbWeight::get().writes(1 as u64))
@@ -134,30 +135,30 @@ impl<T: frame_system::Config> pallet_uniques::WeightInfo for WeightInfo<T> {
// Storage: Uniques Asset (r:1 w:1)
// Storage: Uniques Class (r:1 w:0)
fn freeze() -> Weight {
// Minimum execution time: 27_996 nanoseconds.
Weight::from_ref_time(28_315_000 as u64)
// Minimum execution time: 27_969 nanoseconds.
Weight::from_ref_time(28_436_000 as u64)
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: Uniques Asset (r:1 w:1)
// Storage: Uniques Class (r:1 w:0)
fn thaw() -> Weight {
// Minimum execution time: 27_905 nanoseconds.
Weight::from_ref_time(28_351_000 as u64)
// Minimum execution time: 28_177 nanoseconds.
Weight::from_ref_time(28_854_000 as u64)
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: Uniques Class (r:1 w:1)
fn freeze_collection() -> Weight {
// Minimum execution time: 23_316 nanoseconds.
Weight::from_ref_time(23_795_000 as u64)
// Minimum execution time: 22_800 nanoseconds.
Weight::from_ref_time(23_233_000 as u64)
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: Uniques Class (r:1 w:1)
fn thaw_collection() -> Weight {
// Minimum execution time: 22_641 nanoseconds.
Weight::from_ref_time(23_468_000 as u64)
// Minimum execution time: 23_001 nanoseconds.
Weight::from_ref_time(23_547_000 as u64)
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
@@ -165,23 +166,23 @@ impl<T: frame_system::Config> pallet_uniques::WeightInfo for WeightInfo<T> {
// Storage: Uniques Class (r:1 w:1)
// Storage: Uniques ClassAccount (r:0 w:2)
fn transfer_ownership() -> Weight {
// Minimum execution time: 31_605 nanoseconds.
Weight::from_ref_time(32_363_000 as u64)
// Minimum execution time: 32_315 nanoseconds.
Weight::from_ref_time(32_877_000 as u64)
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(4 as u64))
}
// Storage: Uniques Class (r:1 w:1)
fn set_team() -> Weight {
// Minimum execution time: 24_165 nanoseconds.
Weight::from_ref_time(24_604_000 as u64)
// Minimum execution time: 24_174 nanoseconds.
Weight::from_ref_time(24_798_000 as u64)
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: Uniques Class (r:1 w:1)
// Storage: Uniques ClassAccount (r:0 w:1)
fn force_item_status() -> Weight {
// Minimum execution time: 26_614 nanoseconds.
Weight::from_ref_time(27_158_000 as u64)
// Minimum execution time: 26_640 nanoseconds.
Weight::from_ref_time(27_351_000 as u64)
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
}
@@ -189,8 +190,8 @@ impl<T: frame_system::Config> pallet_uniques::WeightInfo for WeightInfo<T> {
// Storage: Uniques InstanceMetadataOf (r:1 w:0)
// Storage: Uniques Attribute (r:1 w:1)
fn set_attribute() -> Weight {
// Minimum execution time: 50_007 nanoseconds.
Weight::from_ref_time(51_013_000 as u64)
// Minimum execution time: 50_668 nanoseconds.
Weight::from_ref_time(51_056_000 as u64)
.saturating_add(T::DbWeight::get().reads(3 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
}
@@ -198,79 +199,79 @@ impl<T: frame_system::Config> pallet_uniques::WeightInfo for WeightInfo<T> {
// Storage: Uniques InstanceMetadataOf (r:1 w:0)
// Storage: Uniques Attribute (r:1 w:1)
fn clear_attribute() -> Weight {
// Minimum execution time: 49_228 nanoseconds.
Weight::from_ref_time(51_142_000 as u64)
// Minimum execution time: 49_995 nanoseconds.
Weight::from_ref_time(51_266_000 as u64)
.saturating_add(T::DbWeight::get().reads(3 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
}
// Storage: Uniques Class (r:1 w:1)
// Storage: Uniques InstanceMetadataOf (r:1 w:1)
fn set_metadata() -> Weight {
// Minimum execution time: 40_898 nanoseconds.
Weight::from_ref_time(41_453_000 as u64)
// Minimum execution time: 40_384 nanoseconds.
Weight::from_ref_time(41_639_000 as u64)
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
}
// Storage: Uniques Class (r:1 w:1)
// Storage: Uniques InstanceMetadataOf (r:1 w:1)
fn clear_metadata() -> Weight {
// Minimum execution time: 42_863 nanoseconds.
Weight::from_ref_time(43_868_000 as u64)
// Minimum execution time: 43_745 nanoseconds.
Weight::from_ref_time(44_187_000 as u64)
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
}
// Storage: Uniques Class (r:1 w:1)
// Storage: Uniques ClassMetadataOf (r:1 w:1)
fn set_collection_metadata() -> Weight {
// Minimum execution time: 39_108 nanoseconds.
Weight::from_ref_time(39_897_000 as u64)
// Minimum execution time: 39_481 nanoseconds.
Weight::from_ref_time(40_153_000 as u64)
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
}
// Storage: Uniques Class (r:1 w:0)
// Storage: Uniques ClassMetadataOf (r:1 w:1)
fn clear_collection_metadata() -> Weight {
// Minimum execution time: 40_116 nanoseconds.
Weight::from_ref_time(40_778_000 as u64)
// Minimum execution time: 40_472 nanoseconds.
Weight::from_ref_time(41_092_000 as u64)
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: Uniques Class (r:1 w:0)
// Storage: Uniques Asset (r:1 w:1)
fn approve_transfer() -> Weight {
// Minimum execution time: 29_416 nanoseconds.
Weight::from_ref_time(29_816_000 as u64)
// Minimum execution time: 29_967 nanoseconds.
Weight::from_ref_time(30_479_000 as u64)
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: Uniques Class (r:1 w:0)
// Storage: Uniques Asset (r:1 w:1)
fn cancel_approval() -> Weight {
// Minimum execution time: 30_057 nanoseconds.
Weight::from_ref_time(30_646_000 as u64)
// Minimum execution time: 29_132 nanoseconds.
Weight::from_ref_time(29_360_000 as u64)
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: Uniques OwnershipAcceptance (r:1 w:1)
fn set_accept_ownership() -> Weight {
// Minimum execution time: 26_916 nanoseconds.
Weight::from_ref_time(27_515_000 as u64)
// Minimum execution time: 27_273 nanoseconds.
Weight::from_ref_time(27_836_000 as u64)
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: Uniques CollectionMaxSupply (r:1 w:1)
// Storage: Uniques Class (r:1 w:0)
fn set_collection_max_supply() -> Weight {
// Minimum execution time: 25_734 nanoseconds.
Weight::from_ref_time(26_421_000 as u64)
// Minimum execution time: 25_679 nanoseconds.
Weight::from_ref_time(26_205_000 as u64)
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: Uniques Asset (r:1 w:0)
// Storage: Uniques ItemPriceOf (r:0 w:1)
fn set_price() -> Weight {
// Minimum execution time: 26_624 nanoseconds.
Weight::from_ref_time(27_238_000 as u64)
// Minimum execution time: 26_653 nanoseconds.
Weight::from_ref_time(27_304_000 as u64)
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
@@ -279,8 +280,8 @@ impl<T: frame_system::Config> pallet_uniques::WeightInfo for WeightInfo<T> {
// Storage: Uniques Class (r:1 w:0)
// Storage: Uniques Account (r:0 w:2)
fn buy_item() -> Weight {
// Minimum execution time: 46_714 nanoseconds.
Weight::from_ref_time(47_535_000 as u64)
// Minimum execution time: 46_651 nanoseconds.
Weight::from_ref_time(47_179_000 as u64)
.saturating_add(T::DbWeight::get().reads(3 as u64))
.saturating_add(T::DbWeight::get().writes(4 as u64))
}