3
3
//! Autogenerated weights for pallet_common
4
4
//!
5
5
//! 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: `[]`
7
7
//! WORST CASE MAP SIZE: `1000000`
8
8
//! 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
10
10
11
11
// Executed Command:
12
- // target/production/unique-collator
12
+ // ./ target/production/unique-collator
13
13
// benchmark
14
14
// pallet
15
15
// --pallet
@@ -34,116 +34,87 @@ use sp_std::marker::PhantomData;
34
34
/// Weight functions needed for pallet_common.
35
35
pub trait WeightInfo {
36
36
fn set_collection_properties ( b : u32 , ) -> Weight ;
37
- fn delete_collection_properties ( b : u32 , ) -> Weight ;
38
37
fn check_accesslist ( ) -> Weight ;
39
38
fn property_writer_load_collection_info ( ) -> Weight ;
40
39
}
41
40
42
41
/// Weights for pallet_common using the Substrate node and recommended hardware.
43
42
pub struct SubstrateWeight < T > ( PhantomData < T > ) ;
44
43
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` )
47
46
/// The range of component `b` is `[0, 64]`.
48
47
fn set_collection_properties ( b : u32 , ) -> Weight {
49
48
// Proof Size summary in bytes:
50
49
// Measured: `298`
51
50
// 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 ( ) ) )
56
55
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 1_u64 ) )
57
56
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 1_u64 ) )
58
57
}
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`)
75
60
fn check_accesslist ( ) -> Weight {
76
61
// Proof Size summary in bytes:
77
62
// Measured: `373`
78
63
// 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 )
81
66
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 1_u64 ) )
82
67
}
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` )
87
72
fn property_writer_load_collection_info ( ) -> Weight {
88
73
// Proof Size summary in bytes:
89
74
// Measured: `326`
90
75
// 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 )
93
78
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 2_u64 ) )
94
79
}
95
80
}
96
81
97
82
// For backwards compatibility and tests
98
83
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` )
101
86
/// The range of component `b` is `[0, 64]`.
102
87
fn set_collection_properties ( b : u32 , ) -> Weight {
103
88
// Proof Size summary in bytes:
104
89
// Measured: `298`
105
90
// 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 ( ) ) )
124
95
. saturating_add ( RocksDbWeight :: get ( ) . reads ( 1_u64 ) )
125
96
. saturating_add ( RocksDbWeight :: get ( ) . writes ( 1_u64 ) )
126
97
}
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` )
129
100
fn check_accesslist ( ) -> Weight {
130
101
// Proof Size summary in bytes:
131
102
// Measured: `373`
132
103
// 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 )
135
106
. saturating_add ( RocksDbWeight :: get ( ) . reads ( 1_u64 ) )
136
107
}
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` )
141
112
fn property_writer_load_collection_info ( ) -> Weight {
142
113
// Proof Size summary in bytes:
143
114
// Measured: `326`
144
115
// 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 )
147
118
. saturating_add ( RocksDbWeight :: get ( ) . reads ( 2_u64 ) )
148
119
}
149
120
}
0 commit comments