1
- // Copyright (C) Parity Technologies (UK) Ltd.
2
- // This file is part of Cumulus.
1
+ // Copied from: https://github.com/paritytech/polkadot-sdk/blob/polkadot-stable2503/substrate/.maintain/frame-weight-template.hbs
2
+
3
+ // This file is part of Substrate.
3
4
4
- // Cumulus is free software: you can redistribute it and/or modify
5
- // it under the terms of the GNU General Public License as published by
6
- // the Free Software Foundation, either version 3 of the License, or
7
- // (at your option) any later version.
5
+ // Copyright (C) Parity Technologies (UK) Ltd.
6
+ // SPDX-License-Identifier: Apache-2.0
8
7
9
- // Cumulus is distributed in the hope that it will be useful,
10
- // but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- // GNU General Public License for more details.
8
+ // Licensed under the Apache License, Version 2.0 (the "License");
9
+ // you may not use this file except in compliance with the License.
10
+ // You may obtain a copy of the License at
11
+ //
12
+ // http://www.apache.org/licenses/LICENSE-2.0
13
+ //
14
+ // Unless required by applicable law or agreed to in writing, software
15
+ // distributed under the License is distributed on an "AS IS" BASIS,
16
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ // See the License for the specific language governing permissions and
18
+ // limitations under the License.
13
19
14
- // You should have received a copy of the GNU General Public License
15
- // along with Cumulus. If not, see <http://www.gnu.org/licenses/>.
16
20
17
21
//! Autogenerated weights for `frame_system_extensions`
18
22
//!
19
- //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4 .0.0-dev
20
- //! DATE: 2023-12-21 , STEPS: `2 `, REPEAT: `2 `, LOW RANGE: `[]`, HIGH RANGE: `[]`
23
+ //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 47 .0.0
24
+ //! DATE: 2025-04-18 , STEPS: `50 `, REPEAT: `20 `, LOW RANGE: `[]`, HIGH RANGE: `[]`
21
25
//! WORST CASE MAP SIZE: `1000000`
22
- //! HOSTNAME: `gleipnir `, CPU: `AMD Ryzen 9 7900X 12-Core Processor `
23
- //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("asset-hub-rococo-dev") `, DB CACHE: 1024
26
+ //! HOSTNAME: `Joes-Work-MBP.local `, CPU: `<UNKNOWN> `
27
+ //! WASM-EXECUTION: `Compiled`, CHAIN: `None `, DB CACHE: ` 1024`
24
28
25
29
// Executed Command:
26
- // ./target/release/polkadot-parachain
30
+ // ./scripts/../target/bench-dev/frequency
27
31
// benchmark
28
32
// pallet
29
- // --wasm-execution=compiled
30
33
// --pallet=frame_system_extensions
31
- // --no-storage-info
32
- // --no-median-slopes
33
- // --no-min-squares
34
- // --extrinsic=*
35
- // --steps=2
36
- // --repeat=2
37
- // --json
38
- // --header=./cumulus/file_header.txt
39
- // --output =./cumulus/parachains/runtimes/assets/asset-hub-rococo/src/weights/
40
- // --chain=asset-hub-rococo-dev
34
+ // --extrinsic
35
+ // *
36
+ // --heap-pages=4096
37
+ // --steps=50
38
+ // --repeat=20
39
+ // --output=./scripts/../runtime/common/src/weights
40
+ // --template=./scripts/../.maintain/frame-system-extensions-weight-template.hbs
41
+ // --additional-trie-layers=3
42
+ // --runtime =./scripts/../target/bench-dev/wbuild/frequency-runtime/frequency_runtime.wasm
43
+ // --genesis-builder=runtime
41
44
42
45
#![ cfg_attr( rustfmt, rustfmt_skip) ]
43
46
#![ allow( unused_parens) ]
44
47
#![ allow( unused_imports) ]
45
48
#![ allow( missing_docs) ]
49
+ #![ allow( dead_code) ]
46
50
47
- use frame_support:: { traits:: Get , weights:: Weight } ;
51
+ use frame_support:: { traits:: Get , weights:: { Weight , constants :: RocksDbWeight } } ;
48
52
use core:: marker:: PhantomData ;
49
53
50
- /// Weight functions for `frame_system_extensions`.
54
+ /// Weights for `frame_system_extensions` using the Substrate node and recommended hardware .
51
55
pub struct WeightInfo < T > ( PhantomData < T > ) ;
52
56
impl < T : frame_system:: Config > frame_system:: ExtensionsWeightInfo for WeightInfo < T > {
53
- /// Storage: `System::BlockHash` (r:1 w:0)
54
- /// Proof: `System::BlockHash` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
55
57
fn check_genesis ( ) -> Weight {
56
58
// Proof Size summary in bytes:
57
59
// Measured: `30`
58
- // Estimated: `3509`
59
- // Minimum execution time: 3_388_000 picoseconds.
60
- Weight :: from_parts ( 3_577_000 , 3509 )
61
- . saturating_add ( T :: DbWeight :: get ( ) . reads ( 1_u64 ) )
60
+ // Estimated: `0`
61
+ // Minimum execution time: 2_000_000 picoseconds.
62
+ Weight :: from_parts ( 3_000_000 , 0 )
62
63
}
63
- /// Storage: `System::BlockHash` (r:1 w:0)
64
- /// Proof: `System::BlockHash` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
65
64
fn check_mortality_mortal_transaction ( ) -> Weight {
66
65
// Proof Size summary in bytes:
67
66
// Measured: `68`
68
- // Estimated: `3509`
69
- // Minimum execution time: 6_442_000 picoseconds.
70
- Weight :: from_parts ( 6_703_000 , 3509 )
71
- . saturating_add ( T :: DbWeight :: get ( ) . reads ( 1_u64 ) )
67
+ // Estimated: `0`
68
+ // Minimum execution time: 5_000_000 picoseconds.
69
+ Weight :: from_parts ( 6_000_000 , 0 )
72
70
}
73
- /// Storage: `System::BlockHash` (r:1 w:0)
74
- /// Proof: `System::BlockHash` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
75
71
fn check_mortality_immortal_transaction ( ) -> Weight {
76
72
// Proof Size summary in bytes:
77
73
// Measured: `68`
78
- // Estimated: `3509`
79
- // Minimum execution time: 6_357_000 picoseconds.
80
- Weight :: from_parts ( 6_605_000 , 3509 )
81
- . saturating_add ( T :: DbWeight :: get ( ) . reads ( 1_u64 ) )
74
+ // Estimated: `0`
75
+ // Minimum execution time: 5_000_000 picoseconds.
76
+ Weight :: from_parts ( 5_000_000 , 0 )
82
77
}
83
78
fn check_non_zero_sender ( ) -> Weight {
84
79
// Proof Size summary in bytes:
85
80
// Measured: `0`
86
81
// Estimated: `0`
87
- // Minimum execution time: 457_000 picoseconds.
88
- Weight :: from_parts ( 570_000 , 0 )
82
+ // Minimum execution time: 0_000 picoseconds.
83
+ Weight :: from_parts ( 1_000_000 , 0 )
89
84
}
90
85
/// Storage: `System::Account` (r:1 w:1)
91
86
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
92
87
fn check_nonce ( ) -> Weight {
93
88
// Proof Size summary in bytes:
94
89
// Measured: `101`
95
- // Estimated: `3593 `
96
- // Minimum execution time: 6_936_000 picoseconds.
97
- Weight :: from_parts ( 7_261_000 , 3593 )
90
+ // Estimated: `4088 `
91
+ // Minimum execution time: 5_000_000 picoseconds.
92
+ Weight :: from_parts ( 6_000_000 , 4088 )
98
93
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 1_u64 ) )
99
94
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 1_u64 ) )
100
95
}
101
96
fn check_spec_version ( ) -> Weight {
102
97
// Proof Size summary in bytes:
103
98
// Measured: `0`
104
99
// Estimated: `0`
105
- // Minimum execution time: 336_000 picoseconds.
106
- Weight :: from_parts ( 430_000 , 0 )
100
+ // Minimum execution time: 0_000 picoseconds.
101
+ Weight :: from_parts ( 0 , 0 )
107
102
}
108
103
fn check_tx_version ( ) -> Weight {
109
104
// Proof Size summary in bytes:
110
105
// Measured: `0`
111
106
// Estimated: `0`
112
- // Minimum execution time: 348_000 picoseconds.
113
- Weight :: from_parts ( 455_000 , 0 )
107
+ // Minimum execution time: 0_000 picoseconds.
108
+ Weight :: from_parts ( 0 , 0 )
114
109
}
115
110
fn check_weight ( ) -> Weight {
116
111
// Proof Size summary in bytes:
117
112
// Measured: `0`
118
113
// Estimated: `0`
119
- // Minimum execution time: 2_887_000 picoseconds.
120
- Weight :: from_parts ( 3_006_000 , 0 )
114
+ // Minimum execution time: 3_000_000 picoseconds.
115
+ Weight :: from_parts ( 4_000_000 , 0 )
121
116
}
122
- /// Storage: `System::AllExtrinsicsLen` (r:1 w:1)
123
- /// Proof: `System::AllExtrinsicsLen` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
124
117
fn weight_reclaim ( ) -> Weight {
125
118
// Proof Size summary in bytes:
126
- // Measured: `24`
127
- // Estimated: `1489`
128
- // Minimum execution time: 4_375_000 picoseconds.
129
- Weight :: from_parts ( 4_747_000 , 1489 )
130
- . saturating_add ( T :: DbWeight :: get ( ) . reads ( 1_u64 ) )
131
- . saturating_add ( T :: DbWeight :: get ( ) . writes ( 1_u64 ) )
119
+ // Measured: `0`
120
+ // Estimated: `0`
121
+ // Minimum execution time: 2_000_000 picoseconds.
122
+ Weight :: from_parts ( 2_000_000 , 0 )
132
123
}
133
- }
124
+ }
0 commit comments