1+ // Copyright (C) Parity Technologies and the various Polkadot contributors, see Contributions.md
2+ // for a list of specific contributors.
3+ // SPDX-License-Identifier: Apache-2.0
4+
5+ // Licensed under the Apache License, Version 2.0 (the "License");
6+ // you may not use this file except in compliance with the License.
7+ // You may obtain a copy of the License at
8+ //
9+ // http://www.apache.org/licenses/LICENSE-2.0
10+ //
11+ // Unless required by applicable law or agreed to in writing, software
12+ // distributed under the License is distributed on an "AS IS" BASIS,
13+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+ // See the License for the specific language governing permissions and
15+ // limitations under the License.
16+
17+ //! Autogenerated weights for `pallet_bridge_grandpa`
18+ //!
19+ //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
20+ //! DATE: 2025-08-28, STEPS: `2`, REPEAT: `1`, LOW RANGE: `[]`, HIGH RANGE: `[]`
21+ //! WORST CASE MAP SIZE: `1000000`
22+ //! HOSTNAME: `toaster1`, CPU: `AMD Ryzen Threadripper 7980X 64-Cores`
23+ //! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024
24+
25+ // Executed Command:
26+ // frame-omni-bencher
27+ // v1
28+ // benchmark
29+ // pallet
30+ // --extrinsic=*
31+ // --runtime=target/production/wbuild/bulletin-polkadot-runtime/bulletin_polkadot_runtime.wasm
32+ // --pallet=pallet_bridge_grandpa
33+ // --header=/home/bkontur/cargo-remote-builds-bulletin/9907520327012243881/scripts/cmd/file_header.txt
34+ // --output=./runtimes/bulletin-polkadot/src/weights
35+ // --wasm-execution=compiled
36+ // --steps=2
37+ // --repeat=1
38+ // --heap-pages=4096
39+
40+ #![ cfg_attr( rustfmt, rustfmt_skip) ]
41+ #![ allow( unused_parens) ]
42+ #![ allow( unused_imports) ]
43+ #![ allow( missing_docs) ]
44+
45+ use frame_support:: { traits:: Get , weights:: Weight } ;
46+ use core:: marker:: PhantomData ;
47+
48+ /// Weight functions for `pallet_bridge_grandpa`.
49+ pub struct WeightInfo < T > ( PhantomData < T > ) ;
50+ impl < T : frame_system:: Config > pallet_bridge_grandpa:: WeightInfo for WeightInfo < T > {
51+ /// Storage: `BridgePolkadotGrandpa::CurrentAuthoritySet` (r:1 w:0)
52+ /// Proof: `BridgePolkadotGrandpa::CurrentAuthoritySet` (`max_values`: Some(1), `max_size`: Some(50250), added: 50745, mode: `MaxEncodedLen`)
53+ /// Storage: `BridgePolkadotGrandpa::PalletOperatingMode` (r:1 w:0)
54+ /// Proof: `BridgePolkadotGrandpa::PalletOperatingMode` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
55+ /// Storage: `BridgePolkadotGrandpa::BestFinalized` (r:1 w:1)
56+ /// Proof: `BridgePolkadotGrandpa::BestFinalized` (`max_values`: Some(1), `max_size`: Some(36), added: 531, mode: `MaxEncodedLen`)
57+ /// Storage: `BridgePolkadotGrandpa::ImportedHashesPointer` (r:1 w:1)
58+ /// Proof: `BridgePolkadotGrandpa::ImportedHashesPointer` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
59+ /// Storage: `BridgePolkadotGrandpa::ImportedHashes` (r:1 w:1)
60+ /// Proof: `BridgePolkadotGrandpa::ImportedHashes` (`max_values`: Some(1200), `max_size`: Some(36), added: 1521, mode: `MaxEncodedLen`)
61+ /// Storage: `BridgePolkadotGrandpa::ImportedHeaders` (r:0 w:2)
62+ /// Proof: `BridgePolkadotGrandpa::ImportedHeaders` (`max_values`: Some(1200), `max_size`: Some(68), added: 1553, mode: `MaxEncodedLen`)
63+ /// The range of component `p` is `[1, 168]`.
64+ /// The range of component `v` is `[50, 100]`.
65+ fn submit_finality_proof ( p : u32 , v : u32 , ) -> Weight {
66+ // Proof Size summary in bytes:
67+ // Measured: `49 + p * (59 ±0)`
68+ // Estimated: `51735`
69+ // Minimum execution time: 258_153_000 picoseconds.
70+ Weight :: from_parts ( 40_939_721 , 0 )
71+ . saturating_add ( Weight :: from_parts ( 0 , 51735 ) )
72+ // Standard Error: 148_691
73+ . saturating_add ( Weight :: from_parts ( 25_170_278 , 0 ) . saturating_mul ( p. into ( ) ) )
74+ // Standard Error: 496_630
75+ . saturating_add ( Weight :: from_parts ( 1_920_430 , 0 ) . saturating_mul ( v. into ( ) ) )
76+ . saturating_add ( T :: DbWeight :: get ( ) . reads ( 5 ) )
77+ . saturating_add ( T :: DbWeight :: get ( ) . writes ( 5 ) )
78+ }
79+ /// Storage: `BridgePolkadotGrandpa::CurrentAuthoritySet` (r:1 w:1)
80+ /// Proof: `BridgePolkadotGrandpa::CurrentAuthoritySet` (`max_values`: Some(1), `max_size`: Some(50250), added: 50745, mode: `MaxEncodedLen`)
81+ /// Storage: `BridgePolkadotGrandpa::ImportedHashesPointer` (r:1 w:1)
82+ /// Proof: `BridgePolkadotGrandpa::ImportedHashesPointer` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
83+ /// Storage: `BridgePolkadotGrandpa::ImportedHashes` (r:1 w:1)
84+ /// Proof: `BridgePolkadotGrandpa::ImportedHashes` (`max_values`: Some(1200), `max_size`: Some(36), added: 1521, mode: `MaxEncodedLen`)
85+ /// Storage: `BridgePolkadotGrandpa::BestFinalized` (r:0 w:1)
86+ /// Proof: `BridgePolkadotGrandpa::BestFinalized` (`max_values`: Some(1), `max_size`: Some(36), added: 531, mode: `MaxEncodedLen`)
87+ /// Storage: `BridgePolkadotGrandpa::ImportedHeaders` (r:0 w:2)
88+ /// Proof: `BridgePolkadotGrandpa::ImportedHeaders` (`max_values`: Some(1200), `max_size`: Some(68), added: 1553, mode: `MaxEncodedLen`)
89+ fn force_set_pallet_state ( ) -> Weight {
90+ // Proof Size summary in bytes:
91+ // Measured: `84`
92+ // Estimated: `51735`
93+ // Minimum execution time: 92_470_000 picoseconds.
94+ Weight :: from_parts ( 92_470_000 , 0 )
95+ . saturating_add ( Weight :: from_parts ( 0 , 51735 ) )
96+ . saturating_add ( T :: DbWeight :: get ( ) . reads ( 3 ) )
97+ . saturating_add ( T :: DbWeight :: get ( ) . writes ( 6 ) )
98+ }
99+ }
0 commit comments