1414// You should have received a copy of the GNU General Public License
1515// along with Parity Bridges Common. If not, see <http://www.gnu.org/licenses/>.
1616
17- //! Autogenerated weights for ` pallet_bridge_grandpa`
17+ //! Autogenerated weights for pallet_bridge_grandpa
1818//!
1919//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
20- //! DATE: 2022-12-21 , STEPS: 50 , REPEAT: 20
21- //! LOW RANGE: [], HIGH RANGE: []
22- //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled
23- //! CHAIN: Some("dev"), DB CACHE: 1024
20+ //! DATE: 2023-02-06 , STEPS: `50` , REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
21+ //! WORST CASE MAP SIZE: `1000000`
22+ //! HOSTNAME: `covid`, CPU: `11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz`
23+ //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
2424
2525// Executed Command:
2626// target/release/millau-bridge-node
@@ -48,7 +48,7 @@ use frame_support::{
4848} ;
4949use sp_std:: marker:: PhantomData ;
5050
51- /// Weight functions needed for ` pallet_bridge_grandpa` .
51+ /// Weight functions needed for pallet_bridge_grandpa.
5252pub trait WeightInfo {
5353 fn submit_finality_proof ( p : u32 , v : u32 ) -> Weight ;
5454}
@@ -58,22 +58,110 @@ pub trait WeightInfo {
5858/// Those weights are test only and must never be used in production.
5959pub struct BridgeWeight < T > ( PhantomData < T > ) ;
6060impl < T : frame_system:: Config > WeightInfo for BridgeWeight < T > {
61+ /// Storage: BridgeRialtoGrandpa PalletOperatingMode (r:1 w:0)
62+ ///
63+ /// Proof: BridgeRialtoGrandpa PalletOperatingMode (max_values: Some(1), max_size: Some(1),
64+ /// added: 496, mode: MaxEncodedLen)
65+ ///
66+ /// Storage: BridgeRialtoGrandpa RequestCount (r:1 w:1)
67+ ///
68+ /// Proof: BridgeRialtoGrandpa RequestCount (max_values: Some(1), max_size: Some(4), added: 499,
69+ /// mode: MaxEncodedLen)
70+ ///
71+ /// Storage: BridgeRialtoGrandpa BestFinalized (r:1 w:1)
72+ ///
73+ /// Proof: BridgeRialtoGrandpa BestFinalized (max_values: Some(1), max_size: Some(36), added:
74+ /// 531, mode: MaxEncodedLen)
75+ ///
76+ /// Storage: BridgeRialtoGrandpa CurrentAuthoritySet (r:1 w:0)
77+ ///
78+ /// Proof: BridgeRialtoGrandpa CurrentAuthoritySet (max_values: Some(1), max_size: Some(40970),
79+ /// added: 41465, mode: MaxEncodedLen)
80+ ///
81+ /// Storage: BridgeRialtoGrandpa ImportedHashesPointer (r:1 w:1)
82+ ///
83+ /// Proof: BridgeRialtoGrandpa ImportedHashesPointer (max_values: Some(1), max_size: Some(4),
84+ /// added: 499, mode: MaxEncodedLen)
85+ ///
86+ /// Storage: BridgeRialtoGrandpa ImportedHashes (r:1 w:1)
87+ ///
88+ /// Proof: BridgeRialtoGrandpa ImportedHashes (max_values: None, max_size: Some(36), added:
89+ /// 2511, mode: MaxEncodedLen)
90+ ///
91+ /// Storage: BridgeRialtoGrandpa ImportedHeaders (r:0 w:2)
92+ ///
93+ /// Proof: BridgeRialtoGrandpa ImportedHeaders (max_values: None, max_size: Some(68), added:
94+ /// 2543, mode: MaxEncodedLen)
95+ ///
96+ /// The range of component `p` is `[51, 102]`.
97+ ///
98+ /// The range of component `v` is `[50, 100]`.
6199 fn submit_finality_proof ( p : u32 , v : u32 ) -> Weight {
62- Weight :: from_ref_time ( 192_130_822 as u64 )
63- . saturating_add ( Weight :: from_ref_time ( 39_781_096 as u64 ) . saturating_mul ( p as u64 ) )
64- . saturating_add ( Weight :: from_ref_time ( 1_365_108 as u64 ) . saturating_mul ( v as u64 ) )
65- . saturating_add ( T :: DbWeight :: get ( ) . reads ( 6 as u64 ) )
66- . saturating_add ( T :: DbWeight :: get ( ) . writes ( 6 as u64 ) )
100+ // Proof Size summary in bytes:
101+ // Measured: `2524 + p * (40 ±0)`
102+ // Estimated: `46001`
103+ // Minimum execution time: 2_282_140 nanoseconds.
104+ Weight :: from_parts ( 142_496_714 , 46001 )
105+ // Standard Error: 32_796
106+ . saturating_add ( Weight :: from_ref_time ( 40_232_935 ) . saturating_mul ( p. into ( ) ) )
107+ // Standard Error: 33_574
108+ . saturating_add ( Weight :: from_ref_time ( 1_185_407 ) . saturating_mul ( v. into ( ) ) )
109+ . saturating_add ( T :: DbWeight :: get ( ) . reads ( 6_u64 ) )
110+ . saturating_add ( T :: DbWeight :: get ( ) . writes ( 6_u64 ) )
67111 }
68112}
69113
70114// For backwards compatibility and tests
71115impl WeightInfo for ( ) {
116+ /// Storage: BridgeRialtoGrandpa PalletOperatingMode (r:1 w:0)
117+ ///
118+ /// Proof: BridgeRialtoGrandpa PalletOperatingMode (max_values: Some(1), max_size: Some(1),
119+ /// added: 496, mode: MaxEncodedLen)
120+ ///
121+ /// Storage: BridgeRialtoGrandpa RequestCount (r:1 w:1)
122+ ///
123+ /// Proof: BridgeRialtoGrandpa RequestCount (max_values: Some(1), max_size: Some(4), added: 499,
124+ /// mode: MaxEncodedLen)
125+ ///
126+ /// Storage: BridgeRialtoGrandpa BestFinalized (r:1 w:1)
127+ ///
128+ /// Proof: BridgeRialtoGrandpa BestFinalized (max_values: Some(1), max_size: Some(36), added:
129+ /// 531, mode: MaxEncodedLen)
130+ ///
131+ /// Storage: BridgeRialtoGrandpa CurrentAuthoritySet (r:1 w:0)
132+ ///
133+ /// Proof: BridgeRialtoGrandpa CurrentAuthoritySet (max_values: Some(1), max_size: Some(40970),
134+ /// added: 41465, mode: MaxEncodedLen)
135+ ///
136+ /// Storage: BridgeRialtoGrandpa ImportedHashesPointer (r:1 w:1)
137+ ///
138+ /// Proof: BridgeRialtoGrandpa ImportedHashesPointer (max_values: Some(1), max_size: Some(4),
139+ /// added: 499, mode: MaxEncodedLen)
140+ ///
141+ /// Storage: BridgeRialtoGrandpa ImportedHashes (r:1 w:1)
142+ ///
143+ /// Proof: BridgeRialtoGrandpa ImportedHashes (max_values: None, max_size: Some(36), added:
144+ /// 2511, mode: MaxEncodedLen)
145+ ///
146+ /// Storage: BridgeRialtoGrandpa ImportedHeaders (r:0 w:2)
147+ ///
148+ /// Proof: BridgeRialtoGrandpa ImportedHeaders (max_values: None, max_size: Some(68), added:
149+ /// 2543, mode: MaxEncodedLen)
150+ ///
151+ /// The range of component `p` is `[51, 102]`.
152+ ///
153+ /// The range of component `v` is `[50, 100]`.
72154 fn submit_finality_proof ( p : u32 , v : u32 ) -> Weight {
73- Weight :: from_ref_time ( 192_130_822 as u64 )
74- . saturating_add ( Weight :: from_ref_time ( 39_781_096 as u64 ) . saturating_mul ( p as u64 ) )
75- . saturating_add ( Weight :: from_ref_time ( 1_365_108 as u64 ) . saturating_mul ( v as u64 ) )
76- . saturating_add ( RocksDbWeight :: get ( ) . reads ( 6 as u64 ) )
77- . saturating_add ( RocksDbWeight :: get ( ) . writes ( 6 as u64 ) )
155+ // Proof Size summary in bytes:
156+ // Measured: `2524 + p * (40 ±0)`
157+ // Estimated: `46001`
158+ // Minimum execution time: 2_282_140 nanoseconds.
159+ Weight :: from_parts ( 142_496_714 , 46001 )
160+ // Standard Error: 32_796
161+ . saturating_add ( Weight :: from_ref_time ( 40_232_935 ) . saturating_mul ( p. into ( ) ) )
162+ // Standard Error: 33_574
163+ . saturating_add ( Weight :: from_ref_time ( 1_185_407 ) . saturating_mul ( v. into ( ) ) )
164+ . saturating_add ( RocksDbWeight :: get ( ) . reads ( 6_u64 ) )
165+ . saturating_add ( RocksDbWeight :: get ( ) . writes ( 6_u64 ) )
78166 }
79167}
0 commit comments