1
- // Copyright 2021 Parity Technologies (UK) Ltd.
1
+ // Copyright Parity Technologies (UK) Ltd.
2
2
// This file is part of Cumulus.
3
3
4
4
// Cumulus is free software: you can redistribute it and/or modify
17
17
//! Autogenerated weights for `pallet_bridge_relayers`
18
18
//!
19
19
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
20
- //! DATE: 2023-03-15 , STEPS: `50`, REPEAT: `2 `, LOW RANGE: `[]`, HIGH RANGE: `[]`
20
+ //! DATE: 2023-05-03 , STEPS: `50`, REPEAT: `20 `, LOW RANGE: `[]`, HIGH RANGE: `[]`
21
21
//! WORST CASE MAP SIZE: `1000000`
22
- //! HOSTNAME: `bkontur-ThinkPad-P14s-Gen-2i `, CPU: `11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz `
22
+ //! HOSTNAME: `bm3 `, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz `
23
23
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("bridge-hub-rococo-dev"), DB CACHE: 1024
24
24
25
25
// Executed Command:
26
- // ./ target/production/polkadot-parachain
26
+ // target/production/polkadot-parachain
27
27
// benchmark
28
28
// pallet
29
29
// --steps=50
30
- // --repeat=2
30
+ // --repeat=20
31
31
// --extrinsic=*
32
32
// --execution=wasm
33
33
// --wasm-execution=compiled
34
34
// --heap-pages=4096
35
- // --json-file=./bench.json
36
- // --header=./file_header.txt
37
- // --chain=bridge-hub-rococo-dev
35
+ // --json-file=/var/lib/gitlab-runner/builds/zyw4fam_/0/parity/mirrors/cumulus/.git/.artifacts/bench.json
38
36
// --pallet=pallet_bridge_relayers
39
- // --output=./parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/weights
37
+ // --chain=bridge-hub-rococo-dev
38
+ // --header=./file_header.txt
39
+ // --output=./parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/weights/
40
40
41
41
#![ cfg_attr( rustfmt, rustfmt_skip) ]
42
42
#![ allow( unused_parens) ]
43
43
#![ allow( unused_imports) ]
44
+ #![ allow( missing_docs) ]
44
45
45
46
use frame_support:: { traits:: Get , weights:: Weight } ;
46
- use sp_std :: marker:: PhantomData ;
47
+ use core :: marker:: PhantomData ;
47
48
48
49
/// Weight functions for `pallet_bridge_relayers`.
49
50
pub struct WeightInfo < T > ( PhantomData < T > ) ;
@@ -54,84 +55,70 @@ impl<T: frame_system::Config> pallet_bridge_relayers::WeightInfo for WeightInfo<
54
55
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
55
56
fn claim_rewards ( ) -> Weight {
56
57
// Proof Size summary in bytes:
57
- // Measured: `239 `
58
- // Estimated: `7131 `
59
- // Minimum execution time: 37_638_000 picoseconds.
60
- Weight :: from_parts ( 43_222_000 , 0 )
61
- . saturating_add ( Weight :: from_parts ( 0 , 7131 ) )
58
+ // Measured: `207 `
59
+ // Estimated: `3593 `
60
+ // Minimum execution time: 53_286_000 picoseconds.
61
+ Weight :: from_parts ( 53_905_000 , 0 )
62
+ . saturating_add ( Weight :: from_parts ( 0 , 3593 ) )
62
63
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 2 ) )
63
64
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 2 ) )
64
65
}
65
66
/// Storage: BridgeRelayers RegisteredRelayers (r:1 w:1)
66
- ///
67
- /// Proof: BridgeRelayers RegisteredRelayers (max_values: None, max_size: Some(64), added: 2539,
68
- /// mode: MaxEncodedLen)
69
- ///
67
+ /// Proof: BridgeRelayers RegisteredRelayers (max_values: None, max_size: Some(68), added: 2543, mode: MaxEncodedLen)
68
+ /// Storage: unknown `0x1e8445dc201eeb8560e5579a5dd54655` (r:1 w:0)
69
+ /// Proof Skipped: unknown `0x1e8445dc201eeb8560e5579a5dd54655` (r:1 w:0)
70
70
/// Storage: Balances Reserves (r:1 w:1)
71
- ///
72
- /// Proof: Balances Reserves (max_values: None, max_size: Some(849), added: 3324, mode:
73
- /// MaxEncodedLen)
71
+ /// Proof: Balances Reserves (max_values: None, max_size: Some(1249), added: 3724, mode: MaxEncodedLen)
74
72
fn register ( ) -> Weight {
75
73
// Proof Size summary in bytes:
76
- // Measured: `87`
77
- // Estimated: `7843`
78
- // Minimum execution time: 39_590 nanoseconds.
79
- Weight :: from_parts ( 40_546_000 , 7843 )
80
- . saturating_add ( T :: DbWeight :: get ( ) . reads ( 2_u64 ) )
81
- . saturating_add ( T :: DbWeight :: get ( ) . writes ( 2_u64 ) )
74
+ // Measured: `61`
75
+ // Estimated: `4714`
76
+ // Minimum execution time: 29_145_000 picoseconds.
77
+ Weight :: from_parts ( 29_698_000 , 0 )
78
+ . saturating_add ( Weight :: from_parts ( 0 , 4714 ) )
79
+ . saturating_add ( T :: DbWeight :: get ( ) . reads ( 3 ) )
80
+ . saturating_add ( T :: DbWeight :: get ( ) . writes ( 2 ) )
82
81
}
83
82
/// Storage: BridgeRelayers RegisteredRelayers (r:1 w:1)
84
- ///
85
- /// Proof: BridgeRelayers RegisteredRelayers (max_values: None, max_size: Some(64), added: 2539,
86
- /// mode: MaxEncodedLen)
87
- ///
83
+ /// Proof: BridgeRelayers RegisteredRelayers (max_values: None, max_size: Some(68), added: 2543, mode: MaxEncodedLen)
88
84
/// Storage: Balances Reserves (r:1 w:1)
89
- ///
90
- /// Proof: Balances Reserves (max_values: None, max_size: Some(849), added: 3324, mode:
91
- /// MaxEncodedLen)
85
+ /// Proof: Balances Reserves (max_values: None, max_size: Some(1249), added: 3724, mode: MaxEncodedLen)
92
86
fn deregister ( ) -> Weight {
93
87
// Proof Size summary in bytes:
94
- // Measured: `264`
95
- // Estimated: `7843`
96
- // Minimum execution time: 43_332 nanoseconds.
97
- Weight :: from_parts ( 45_087_000 , 7843 )
98
- . saturating_add ( T :: DbWeight :: get ( ) . reads ( 2_u64 ) )
99
- . saturating_add ( T :: DbWeight :: get ( ) . writes ( 2_u64 ) )
88
+ // Measured: `160`
89
+ // Estimated: `4714`
90
+ // Minimum execution time: 30_298_000 picoseconds.
91
+ Weight :: from_parts ( 30_754_000 , 0 )
92
+ . saturating_add ( Weight :: from_parts ( 0 , 4714 ) )
93
+ . saturating_add ( T :: DbWeight :: get ( ) . reads ( 2 ) )
94
+ . saturating_add ( T :: DbWeight :: get ( ) . writes ( 2 ) )
100
95
}
101
96
/// Storage: BridgeRelayers RegisteredRelayers (r:1 w:1)
102
- ///
103
- /// Proof: BridgeRelayers RegisteredRelayers (max_values: None, max_size: Some(64), added: 2539,
104
- /// mode: MaxEncodedLen)
105
- ///
97
+ /// Proof: BridgeRelayers RegisteredRelayers (max_values: None, max_size: Some(68), added: 2543, mode: MaxEncodedLen)
106
98
/// Storage: Balances Reserves (r:1 w:1)
107
- ///
108
- /// Proof: Balances Reserves (max_values: None, max_size: Some(849), added: 3324, mode:
109
- /// MaxEncodedLen)
110
- ///
99
+ /// Proof: Balances Reserves (max_values: None, max_size: Some(1249), added: 3724, mode: MaxEncodedLen)
111
100
/// Storage: System Account (r:1 w:1)
112
- ///
113
- /// Proof: System Account (max_values: None, max_size: Some(104), added: 2579, mode:
114
- /// MaxEncodedLen)
101
+ /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
115
102
fn slash_and_deregister ( ) -> Weight {
116
103
// Proof Size summary in bytes:
117
- // Measured: `380`
118
- // Estimated: `11412`
119
- // Minimum execution time: 42_358 nanoseconds.
120
- Weight :: from_parts ( 43_539_000 , 11412 )
121
- . saturating_add ( T :: DbWeight :: get ( ) . reads ( 3_u64 ) )
122
- . saturating_add ( T :: DbWeight :: get ( ) . writes ( 3_u64 ) )
104
+ // Measured: `263`
105
+ // Estimated: `4714`
106
+ // Minimum execution time: 30_109_000 picoseconds.
107
+ Weight :: from_parts ( 30_330_000 , 0 )
108
+ . saturating_add ( Weight :: from_parts ( 0 , 4714 ) )
109
+ . saturating_add ( T :: DbWeight :: get ( ) . reads ( 3 ) )
110
+ . saturating_add ( T :: DbWeight :: get ( ) . writes ( 3 ) )
123
111
}
124
112
/// Storage: BridgeRelayers RelayerRewards (r:1 w:1)
125
- ///
126
- /// Proof: BridgeRelayers RelayerRewards (max_values: None, max_size: Some(65), added: 2540,
127
- /// mode: MaxEncodedLen)
113
+ /// Proof: BridgeRelayers RelayerRewards (max_values: None, max_size: Some(73), added: 2548, mode: MaxEncodedLen)
128
114
fn register_relayer_reward ( ) -> Weight {
129
115
// Proof Size summary in bytes:
130
- // Measured: `12`
131
- // Estimated: `3530`
132
- // Minimum execution time: 6_338 nanoseconds.
133
- Weight :: from_parts ( 6_526_000 , 3530 )
134
- . saturating_add ( T :: DbWeight :: get ( ) . reads ( 1_u64 ) )
135
- . saturating_add ( T :: DbWeight :: get ( ) . writes ( 1_u64 ) )
116
+ // Measured: `6`
117
+ // Estimated: `3538`
118
+ // Minimum execution time: 3_016_000 picoseconds.
119
+ Weight :: from_parts ( 3_130_000 , 0 )
120
+ . saturating_add ( Weight :: from_parts ( 0 , 3538 ) )
121
+ . saturating_add ( T :: DbWeight :: get ( ) . reads ( 1 ) )
122
+ . saturating_add ( T :: DbWeight :: get ( ) . writes ( 1 ) )
136
123
}
137
124
}
0 commit comments