17
17
//! Autogenerated weights for `pallet_bridge_messages`
18
18
//!
19
19
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
20
- //! DATE: 2022-07-20 , STEPS: 50, REPEAT: 20
20
+ //! DATE: 2022-10-04 , STEPS: 50, REPEAT: 20
21
21
//! LOW RANGE: [], HIGH RANGE: []
22
22
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled
23
23
//! CHAIN: Some("dev"), DB CACHE: 1024
@@ -66,26 +66,28 @@ pub trait WeightInfo {
66
66
fn receive_delivery_proof_for_two_messages_by_two_relayers ( ) -> Weight ;
67
67
}
68
68
69
- /// Weights for `pallet_bridge_messages` using the Millau node and recommended hardware.
70
- pub struct MillauWeight < T > ( PhantomData < T > ) ;
71
- impl < T : frame_system:: Config > WeightInfo for MillauWeight < T > {
69
+ /// Weights for `pallet_bridge_messages` that are generated using one of the Bridge testnets.
70
+ ///
71
+ /// Those weights are test only and must never be used in production.
72
+ pub struct BridgeWeight < T > ( PhantomData < T > ) ;
73
+ impl < T : frame_system:: Config > WeightInfo for BridgeWeight < T > {
72
74
fn send_minimal_message_worst_case ( ) -> Weight {
73
- ( 38_822_000 as Weight )
75
+ ( 62_300_000 as Weight )
74
76
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 5 as Weight ) )
75
77
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 10 as Weight ) )
76
78
}
77
79
fn send_1_kb_message_worst_case ( ) -> Weight {
78
- ( 39_799_000 as Weight )
80
+ ( 63_176_000 as Weight )
79
81
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 5 as Weight ) )
80
82
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 10 as Weight ) )
81
83
}
82
84
fn send_16_kb_message_worst_case ( ) -> Weight {
83
- ( 47_772_000 as Weight )
85
+ ( 73_472_000 as Weight )
84
86
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 5 as Weight ) )
85
87
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 10 as Weight ) )
86
88
}
87
89
fn maximal_increase_message_fee ( ) -> Weight {
88
- ( 3_081_804_000 as Weight )
90
+ ( 2_539_209_000 as Weight )
89
91
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 3 as Weight ) )
90
92
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 1 as Weight ) )
91
93
}
@@ -96,47 +98,47 @@ impl<T: frame_system::Config> WeightInfo for MillauWeight<T> {
96
98
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 1 as Weight ) )
97
99
}
98
100
fn receive_single_message_proof ( ) -> Weight {
99
- ( 26_523_000 as Weight )
101
+ ( 49_205_000 as Weight )
100
102
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 4 as Weight ) )
101
103
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 2 as Weight ) )
102
104
}
103
105
fn receive_two_messages_proof ( ) -> Weight {
104
- ( 39_278_000 as Weight )
106
+ ( 62_182_000 as Weight )
105
107
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 4 as Weight ) )
106
108
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 2 as Weight ) )
107
109
}
108
110
fn receive_single_message_proof_with_outbound_lane_state ( ) -> Weight {
109
- ( 32_416_000 as Weight )
111
+ ( 55_928_000 as Weight )
110
112
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 4 as Weight ) )
111
113
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 2 as Weight ) )
112
114
}
113
115
fn receive_single_message_proof_1_kb ( ) -> Weight {
114
- ( 27_078_000 as Weight )
116
+ ( 47_298_000 as Weight )
115
117
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 3 as Weight ) )
116
118
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 1 as Weight ) )
117
119
}
118
120
fn receive_single_message_proof_16_kb ( ) -> Weight {
119
- ( 78_235_000 as Weight )
121
+ ( 105_016_000 as Weight )
120
122
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 3 as Weight ) )
121
123
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 1 as Weight ) )
122
124
}
123
125
fn receive_single_prepaid_message_proof ( ) -> Weight {
124
- ( 27_635_000 as Weight )
126
+ ( 49_067_000 as Weight )
125
127
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 4 as Weight ) )
126
128
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 2 as Weight ) )
127
129
}
128
130
fn receive_delivery_proof_for_single_message ( ) -> Weight {
129
- ( 34_576_000 as Weight )
131
+ ( 58_520_000 as Weight )
130
132
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 5 as Weight ) )
131
133
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 2 as Weight ) )
132
134
}
133
135
fn receive_delivery_proof_for_two_messages_by_single_relayer ( ) -> Weight {
134
- ( 37_318_000 as Weight )
136
+ ( 61_563_000 as Weight )
135
137
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 6 as Weight ) )
136
138
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 2 as Weight ) )
137
139
}
138
140
fn receive_delivery_proof_for_two_messages_by_two_relayers ( ) -> Weight {
139
- ( 41_245_000 as Weight )
141
+ ( 63_197_000 as Weight )
140
142
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 7 as Weight ) )
141
143
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 3 as Weight ) )
142
144
}
@@ -145,22 +147,22 @@ impl<T: frame_system::Config> WeightInfo for MillauWeight<T> {
145
147
// For backwards compatibility and tests
146
148
impl WeightInfo for ( ) {
147
149
fn send_minimal_message_worst_case ( ) -> Weight {
148
- ( 38_822_000 as Weight )
150
+ ( 62_300_000 as Weight )
149
151
. saturating_add ( RocksDbWeight :: get ( ) . reads ( 5 as Weight ) )
150
152
. saturating_add ( RocksDbWeight :: get ( ) . writes ( 10 as Weight ) )
151
153
}
152
154
fn send_1_kb_message_worst_case ( ) -> Weight {
153
- ( 39_799_000 as Weight )
155
+ ( 63_176_000 as Weight )
154
156
. saturating_add ( RocksDbWeight :: get ( ) . reads ( 5 as Weight ) )
155
157
. saturating_add ( RocksDbWeight :: get ( ) . writes ( 10 as Weight ) )
156
158
}
157
159
fn send_16_kb_message_worst_case ( ) -> Weight {
158
- ( 47_772_000 as Weight )
160
+ ( 73_472_000 as Weight )
159
161
. saturating_add ( RocksDbWeight :: get ( ) . reads ( 5 as Weight ) )
160
162
. saturating_add ( RocksDbWeight :: get ( ) . writes ( 10 as Weight ) )
161
163
}
162
164
fn maximal_increase_message_fee ( ) -> Weight {
163
- ( 3_081_804_000 as Weight )
165
+ ( 2_539_209_000 as Weight )
164
166
. saturating_add ( RocksDbWeight :: get ( ) . reads ( 3 as Weight ) )
165
167
. saturating_add ( RocksDbWeight :: get ( ) . writes ( 1 as Weight ) )
166
168
}
@@ -171,47 +173,47 @@ impl WeightInfo for () {
171
173
. saturating_add ( RocksDbWeight :: get ( ) . writes ( 1 as Weight ) )
172
174
}
173
175
fn receive_single_message_proof ( ) -> Weight {
174
- ( 26_523_000 as Weight )
176
+ ( 49_205_000 as Weight )
175
177
. saturating_add ( RocksDbWeight :: get ( ) . reads ( 4 as Weight ) )
176
178
. saturating_add ( RocksDbWeight :: get ( ) . writes ( 2 as Weight ) )
177
179
}
178
180
fn receive_two_messages_proof ( ) -> Weight {
179
- ( 39_278_000 as Weight )
181
+ ( 62_182_000 as Weight )
180
182
. saturating_add ( RocksDbWeight :: get ( ) . reads ( 4 as Weight ) )
181
183
. saturating_add ( RocksDbWeight :: get ( ) . writes ( 2 as Weight ) )
182
184
}
183
185
fn receive_single_message_proof_with_outbound_lane_state ( ) -> Weight {
184
- ( 32_416_000 as Weight )
186
+ ( 55_928_000 as Weight )
185
187
. saturating_add ( RocksDbWeight :: get ( ) . reads ( 4 as Weight ) )
186
188
. saturating_add ( RocksDbWeight :: get ( ) . writes ( 2 as Weight ) )
187
189
}
188
190
fn receive_single_message_proof_1_kb ( ) -> Weight {
189
- ( 27_078_000 as Weight )
191
+ ( 47_298_000 as Weight )
190
192
. saturating_add ( RocksDbWeight :: get ( ) . reads ( 3 as Weight ) )
191
193
. saturating_add ( RocksDbWeight :: get ( ) . writes ( 1 as Weight ) )
192
194
}
193
195
fn receive_single_message_proof_16_kb ( ) -> Weight {
194
- ( 78_235_000 as Weight )
196
+ ( 105_016_000 as Weight )
195
197
. saturating_add ( RocksDbWeight :: get ( ) . reads ( 3 as Weight ) )
196
198
. saturating_add ( RocksDbWeight :: get ( ) . writes ( 1 as Weight ) )
197
199
}
198
200
fn receive_single_prepaid_message_proof ( ) -> Weight {
199
- ( 27_635_000 as Weight )
201
+ ( 49_067_000 as Weight )
200
202
. saturating_add ( RocksDbWeight :: get ( ) . reads ( 4 as Weight ) )
201
203
. saturating_add ( RocksDbWeight :: get ( ) . writes ( 2 as Weight ) )
202
204
}
203
205
fn receive_delivery_proof_for_single_message ( ) -> Weight {
204
- ( 34_576_000 as Weight )
206
+ ( 58_520_000 as Weight )
205
207
. saturating_add ( RocksDbWeight :: get ( ) . reads ( 5 as Weight ) )
206
208
. saturating_add ( RocksDbWeight :: get ( ) . writes ( 2 as Weight ) )
207
209
}
208
210
fn receive_delivery_proof_for_two_messages_by_single_relayer ( ) -> Weight {
209
- ( 37_318_000 as Weight )
211
+ ( 61_563_000 as Weight )
210
212
. saturating_add ( RocksDbWeight :: get ( ) . reads ( 6 as Weight ) )
211
213
. saturating_add ( RocksDbWeight :: get ( ) . writes ( 2 as Weight ) )
212
214
}
213
215
fn receive_delivery_proof_for_two_messages_by_two_relayers ( ) -> Weight {
214
- ( 41_245_000 as Weight )
216
+ ( 63_197_000 as Weight )
215
217
. saturating_add ( RocksDbWeight :: get ( ) . reads ( 7 as Weight ) )
216
218
. saturating_add ( RocksDbWeight :: get ( ) . writes ( 3 as Weight ) )
217
219
}
0 commit comments