Skip to content

Commit a46c1bd

Browse files
committed
chore: temporary common/nft/rft weights
1 parent 7428628 commit a46c1bd

File tree

3 files changed

+739
-1068
lines changed

3 files changed

+739
-1068
lines changed

pallets/common/src/weights.rs

Lines changed: 35 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
//! Autogenerated weights for pallet_common
44
//!
55
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
6-
//! DATE: 2023-10-05, STEPS: `50`, REPEAT: `80`, LOW RANGE: `[]`, HIGH RANGE: `[]`
6+
//! DATE: 2023-10-13, STEPS: `50`, REPEAT: `80`, LOW RANGE: `[]`, HIGH RANGE: `[]`
77
//! WORST CASE MAP SIZE: `1000000`
88
//! HOSTNAME: `hearthstone`, CPU: `AMD Ryzen 9 7950X3D 16-Core Processor`
9-
//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
9+
//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
1010
1111
// Executed Command:
12-
// target/production/unique-collator
12+
// ./target/production/unique-collator
1313
// benchmark
1414
// pallet
1515
// --pallet
@@ -34,116 +34,87 @@ use sp_std::marker::PhantomData;
3434
/// Weight functions needed for pallet_common.
3535
pub trait WeightInfo {
3636
fn set_collection_properties(b: u32, ) -> Weight;
37-
fn delete_collection_properties(b: u32, ) -> Weight;
3837
fn check_accesslist() -> Weight;
3938
fn property_writer_load_collection_info() -> Weight;
4039
}
4140

4241
/// Weights for pallet_common using the Substrate node and recommended hardware.
4342
pub struct SubstrateWeight<T>(PhantomData<T>);
4443
impl<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)
44+
/// Storage: `Common::CollectionProperties` (r:1 w:1)
45+
/// Proof: `Common::CollectionProperties` (`max_values`: None, `max_size`: Some(40992), added: 43467, mode: `MaxEncodedLen`)
4746
/// The range of component `b` is `[0, 64]`.
4847
fn set_collection_properties(b: u32, ) -> Weight {
4948
// Proof Size summary in bytes:
5049
// Measured: `298`
5150
// Estimated: `44457`
52-
// Minimum execution time: 2_840_000 picoseconds.
53-
Weight::from_parts(1_988_405, 44457)
54-
// Standard Error: 7_834
55-
.saturating_add(Weight::from_parts(3_053_965, 0).saturating_mul(b.into()))
51+
// Minimum execution time: 4_560_000 picoseconds.
52+
Weight::from_parts(28_643_440, 44457)
53+
// Standard Error: 28_941
54+
.saturating_add(Weight::from_parts(18_277_422, 0).saturating_mul(b.into()))
5655
.saturating_add(T::DbWeight::get().reads(1_u64))
5756
.saturating_add(T::DbWeight::get().writes(1_u64))
5857
}
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: `303 + b * (33030 ±0)`
65-
// Estimated: `44457`
66-
// Minimum execution time: 2_770_000 picoseconds.
67-
Weight::from_parts(2_940_000, 44457)
68-
// Standard Error: 30_686
69-
.saturating_add(Weight::from_parts(9_801_835, 0).saturating_mul(b.into()))
70-
.saturating_add(T::DbWeight::get().reads(1_u64))
71-
.saturating_add(T::DbWeight::get().writes(1_u64))
72-
}
73-
/// Storage: Common Allowlist (r:1 w:0)
74-
/// Proof: Common Allowlist (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen)
58+
/// Storage: `Common::Allowlist` (r:1 w:0)
59+
/// Proof: `Common::Allowlist` (`max_values`: None, `max_size`: Some(70), added: 2545, mode: `MaxEncodedLen`)
7560
fn check_accesslist() -> Weight {
7661
// Proof Size summary in bytes:
7762
// Measured: `373`
7863
// Estimated: `3535`
79-
// Minimum execution time: 2_830_000 picoseconds.
80-
Weight::from_parts(2_950_000, 3535)
64+
// Minimum execution time: 4_290_000 picoseconds.
65+
Weight::from_parts(4_460_000, 3535)
8166
.saturating_add(T::DbWeight::get().reads(1_u64))
8267
}
83-
/// Storage: Common IsAdmin (r:1 w:0)
84-
/// Proof: Common IsAdmin (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen)
85-
/// Storage: Common CollectionPropertyPermissions (r:1 w:0)
86-
/// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)
68+
/// Storage: `Common::IsAdmin` (r:1 w:0)
69+
/// Proof: `Common::IsAdmin` (`max_values`: None, `max_size`: Some(70), added: 2545, mode: `MaxEncodedLen`)
70+
/// Storage: `Common::CollectionPropertyPermissions` (r:1 w:0)
71+
/// Proof: `Common::CollectionPropertyPermissions` (`max_values`: None, `max_size`: Some(16726), added: 19201, mode: `MaxEncodedLen`)
8772
fn property_writer_load_collection_info() -> Weight {
8873
// Proof Size summary in bytes:
8974
// Measured: `326`
9075
// Estimated: `20191`
91-
// Minimum execution time: 3_970_000 picoseconds.
92-
Weight::from_parts(4_140_000, 20191)
76+
// Minimum execution time: 6_100_000 picoseconds.
77+
Weight::from_parts(6_350_000, 20191)
9378
.saturating_add(T::DbWeight::get().reads(2_u64))
9479
}
9580
}
9681

9782
// For backwards compatibility and tests
9883
impl WeightInfo for () {
99-
/// Storage: Common CollectionProperties (r:1 w:1)
100-
/// Proof: Common CollectionProperties (max_values: None, max_size: Some(40992), added: 43467, mode: MaxEncodedLen)
84+
/// Storage: `Common::CollectionProperties` (r:1 w:1)
85+
/// Proof: `Common::CollectionProperties` (`max_values`: None, `max_size`: Some(40992), added: 43467, mode: `MaxEncodedLen`)
10186
/// The range of component `b` is `[0, 64]`.
10287
fn set_collection_properties(b: u32, ) -> Weight {
10388
// Proof Size summary in bytes:
10489
// Measured: `298`
10590
// Estimated: `44457`
106-
// Minimum execution time: 2_840_000 picoseconds.
107-
Weight::from_parts(1_988_405, 44457)
108-
// Standard Error: 7_834
109-
.saturating_add(Weight::from_parts(3_053_965, 0).saturating_mul(b.into()))
110-
.saturating_add(RocksDbWeight::get().reads(1_u64))
111-
.saturating_add(RocksDbWeight::get().writes(1_u64))
112-
}
113-
/// Storage: Common CollectionProperties (r:1 w:1)
114-
/// Proof: Common CollectionProperties (max_values: None, max_size: Some(40992), added: 43467, mode: MaxEncodedLen)
115-
/// The range of component `b` is `[0, 64]`.
116-
fn delete_collection_properties(b: u32, ) -> Weight {
117-
// Proof Size summary in bytes:
118-
// Measured: `303 + b * (33030 ±0)`
119-
// Estimated: `44457`
120-
// Minimum execution time: 2_770_000 picoseconds.
121-
Weight::from_parts(2_940_000, 44457)
122-
// Standard Error: 30_686
123-
.saturating_add(Weight::from_parts(9_801_835, 0).saturating_mul(b.into()))
91+
// Minimum execution time: 4_560_000 picoseconds.
92+
Weight::from_parts(28_643_440, 44457)
93+
// Standard Error: 28_941
94+
.saturating_add(Weight::from_parts(18_277_422, 0).saturating_mul(b.into()))
12495
.saturating_add(RocksDbWeight::get().reads(1_u64))
12596
.saturating_add(RocksDbWeight::get().writes(1_u64))
12697
}
127-
/// Storage: Common Allowlist (r:1 w:0)
128-
/// Proof: Common Allowlist (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen)
98+
/// Storage: `Common::Allowlist` (r:1 w:0)
99+
/// Proof: `Common::Allowlist` (`max_values`: None, `max_size`: Some(70), added: 2545, mode: `MaxEncodedLen`)
129100
fn check_accesslist() -> Weight {
130101
// Proof Size summary in bytes:
131102
// Measured: `373`
132103
// Estimated: `3535`
133-
// Minimum execution time: 2_830_000 picoseconds.
134-
Weight::from_parts(2_950_000, 3535)
104+
// Minimum execution time: 4_290_000 picoseconds.
105+
Weight::from_parts(4_460_000, 3535)
135106
.saturating_add(RocksDbWeight::get().reads(1_u64))
136107
}
137-
/// Storage: Common IsAdmin (r:1 w:0)
138-
/// Proof: Common IsAdmin (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen)
139-
/// Storage: Common CollectionPropertyPermissions (r:1 w:0)
140-
/// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)
108+
/// Storage: `Common::IsAdmin` (r:1 w:0)
109+
/// Proof: `Common::IsAdmin` (`max_values`: None, `max_size`: Some(70), added: 2545, mode: `MaxEncodedLen`)
110+
/// Storage: `Common::CollectionPropertyPermissions` (r:1 w:0)
111+
/// Proof: `Common::CollectionPropertyPermissions` (`max_values`: None, `max_size`: Some(16726), added: 19201, mode: `MaxEncodedLen`)
141112
fn property_writer_load_collection_info() -> Weight {
142113
// Proof Size summary in bytes:
143114
// Measured: `326`
144115
// Estimated: `20191`
145-
// Minimum execution time: 3_970_000 picoseconds.
146-
Weight::from_parts(4_140_000, 20191)
116+
// Minimum execution time: 6_100_000 picoseconds.
117+
Weight::from_parts(6_350_000, 20191)
147118
.saturating_add(RocksDbWeight::get().reads(2_u64))
148119
}
149120
}

0 commit comments

Comments
 (0)