|
| 1 | +// This file is part of Substrate. |
| 2 | + |
1 | 3 | // Copyright (C) 2020 Parity Technologies (UK) Ltd. |
2 | 4 | // SPDX-License-Identifier: Apache-2.0 |
3 | 5 |
|
|
13 | 15 | // See the License for the specific language governing permissions and |
14 | 16 | // limitations under the License. |
15 | 17 |
|
16 | | -//! Weights for the Democracy Pallet |
17 | | -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 2.0.0-rc5 |
| 18 | +//! Weights for pallet_democracy |
| 19 | +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 2.0.0 |
| 20 | +//! DATE: 2020-09-24, STEPS: [50], REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] |
| 21 | +
|
| 22 | +#![allow(unused_parens)] |
| 23 | +#![allow(unused_imports)] |
18 | 24 |
|
19 | 25 | use frame_support::{traits::Get, weights::Weight}; |
20 | 26 | use sp_std::marker::PhantomData; |
21 | 27 |
|
22 | 28 | pub struct WeightInfo<T>(PhantomData<T>); |
23 | 29 | impl<T: frame_system::Trait> pallet_democracy::WeightInfo for WeightInfo<T> { |
24 | 30 | fn propose() -> Weight { |
25 | | - (49113000 as Weight) |
26 | | - .saturating_add(T::DbWeight::get().reads(2 as Weight)) |
| 31 | + (96_316_000 as Weight) |
| 32 | + .saturating_add(T::DbWeight::get().reads(3 as Weight)) |
27 | 33 | .saturating_add(T::DbWeight::get().writes(3 as Weight)) |
28 | 34 | } |
29 | 35 | fn second(s: u32, ) -> Weight { |
30 | | - (42067000 as Weight) |
31 | | - .saturating_add((220000 as Weight).saturating_mul(s as Weight)) |
| 36 | + (58_386_000 as Weight) |
| 37 | + .saturating_add((259_000 as Weight).saturating_mul(s as Weight)) |
32 | 38 | .saturating_add(T::DbWeight::get().reads(1 as Weight)) |
33 | 39 | .saturating_add(T::DbWeight::get().writes(1 as Weight)) |
34 | 40 | } |
35 | 41 | fn vote_new(r: u32, ) -> Weight { |
36 | | - (54159000 as Weight) |
37 | | - .saturating_add((252000 as Weight).saturating_mul(r as Weight)) |
| 42 | + (70_374_000 as Weight) |
| 43 | + .saturating_add((291_000 as Weight).saturating_mul(r as Weight)) |
38 | 44 | .saturating_add(T::DbWeight::get().reads(3 as Weight)) |
39 | 45 | .saturating_add(T::DbWeight::get().writes(3 as Weight)) |
40 | 46 | } |
41 | 47 | fn vote_existing(r: u32, ) -> Weight { |
42 | | - (54145000 as Weight) |
43 | | - .saturating_add((262000 as Weight).saturating_mul(r as Weight)) |
| 48 | + (70_097_000 as Weight) |
| 49 | + .saturating_add((296_000 as Weight).saturating_mul(r as Weight)) |
44 | 50 | .saturating_add(T::DbWeight::get().reads(3 as Weight)) |
45 | 51 | .saturating_add(T::DbWeight::get().writes(3 as Weight)) |
46 | 52 | } |
47 | 53 | fn emergency_cancel() -> Weight { |
48 | | - (31071000 as Weight) |
| 54 | + (41_731_000 as Weight) |
49 | 55 | .saturating_add(T::DbWeight::get().reads(2 as Weight)) |
50 | 56 | .saturating_add(T::DbWeight::get().writes(2 as Weight)) |
51 | 57 | } |
| 58 | + fn blacklist(p: u32, ) -> Weight { |
| 59 | + (117_847_000 as Weight) |
| 60 | + .saturating_add((871_000 as Weight).saturating_mul(p as Weight)) |
| 61 | + .saturating_add(T::DbWeight::get().reads(5 as Weight)) |
| 62 | + .saturating_add(T::DbWeight::get().writes(6 as Weight)) |
| 63 | + } |
52 | 64 | fn external_propose(v: u32, ) -> Weight { |
53 | | - (14282000 as Weight) |
54 | | - .saturating_add((109000 as Weight).saturating_mul(v as Weight)) |
| 65 | + (20_972_000 as Weight) |
| 66 | + .saturating_add((114_000 as Weight).saturating_mul(v as Weight)) |
55 | 67 | .saturating_add(T::DbWeight::get().reads(2 as Weight)) |
56 | 68 | .saturating_add(T::DbWeight::get().writes(1 as Weight)) |
57 | 69 | } |
58 | 70 | fn external_propose_majority() -> Weight { |
59 | | - (3478000 as Weight) |
| 71 | + (5_030_000 as Weight) |
60 | 72 | .saturating_add(T::DbWeight::get().writes(1 as Weight)) |
61 | 73 | } |
62 | 74 | fn external_propose_default() -> Weight { |
63 | | - (3442000 as Weight) |
| 75 | + (4_981_000 as Weight) |
64 | 76 | .saturating_add(T::DbWeight::get().writes(1 as Weight)) |
65 | 77 | } |
66 | 78 | fn fast_track() -> Weight { |
67 | | - (30820000 as Weight) |
| 79 | + (42_801_000 as Weight) |
68 | 80 | .saturating_add(T::DbWeight::get().reads(2 as Weight)) |
69 | 81 | .saturating_add(T::DbWeight::get().writes(3 as Weight)) |
70 | 82 | } |
71 | 83 | fn veto_external(v: u32, ) -> Weight { |
72 | | - (30971000 as Weight) |
73 | | - .saturating_add((184000 as Weight).saturating_mul(v as Weight)) |
| 84 | + (44_115_000 as Weight) |
| 85 | + .saturating_add((194_000 as Weight).saturating_mul(v as Weight)) |
74 | 86 | .saturating_add(T::DbWeight::get().reads(2 as Weight)) |
75 | 87 | .saturating_add(T::DbWeight::get().writes(2 as Weight)) |
76 | 88 | } |
| 89 | + fn cancel_proposal(p: u32, ) -> Weight { |
| 90 | + (73_937_000 as Weight) |
| 91 | + .saturating_add((962_000 as Weight).saturating_mul(p as Weight)) |
| 92 | + .saturating_add(T::DbWeight::get().reads(3 as Weight)) |
| 93 | + .saturating_add(T::DbWeight::get().writes(3 as Weight)) |
| 94 | + } |
77 | 95 | fn cancel_referendum() -> Weight { |
78 | | - (20431000 as Weight) |
| 96 | + (25_233_000 as Weight) |
79 | 97 | .saturating_add(T::DbWeight::get().writes(1 as Weight)) |
80 | 98 | } |
81 | 99 | fn cancel_queued(r: u32, ) -> Weight { |
82 | | - (42438000 as Weight) |
83 | | - .saturating_add((3284000 as Weight).saturating_mul(r as Weight)) |
| 100 | + (48_251_000 as Weight) |
| 101 | + .saturating_add((3_590_000 as Weight).saturating_mul(r as Weight)) |
84 | 102 | .saturating_add(T::DbWeight::get().reads(2 as Weight)) |
85 | 103 | .saturating_add(T::DbWeight::get().writes(2 as Weight)) |
86 | 104 | } |
87 | 105 | fn on_initialize_base(r: u32, ) -> Weight { |
88 | | - (70826000 as Weight) |
89 | | - .saturating_add((10716000 as Weight).saturating_mul(r as Weight)) |
90 | | - .saturating_add(T::DbWeight::get().reads(6 as Weight)) |
91 | | - .saturating_add(T::DbWeight::get().reads((2 as Weight).saturating_mul(r as Weight))) |
92 | | - .saturating_add(T::DbWeight::get().writes(5 as Weight)) |
| 106 | + (17_597_000 as Weight) |
| 107 | + .saturating_add((7_248_000 as Weight).saturating_mul(r as Weight)) |
| 108 | + .saturating_add(T::DbWeight::get().reads(5 as Weight)) |
| 109 | + .saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(r as Weight))) |
93 | 110 | } |
94 | 111 | fn delegate(r: u32, ) -> Weight { |
95 | | - (72046000 as Weight) |
96 | | - .saturating_add((7837000 as Weight).saturating_mul(r as Weight)) |
| 112 | + (93_916_000 as Weight) |
| 113 | + .saturating_add((10_794_000 as Weight).saturating_mul(r as Weight)) |
97 | 114 | .saturating_add(T::DbWeight::get().reads(4 as Weight)) |
98 | 115 | .saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(r as Weight))) |
99 | 116 | .saturating_add(T::DbWeight::get().writes(4 as Weight)) |
100 | 117 | .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(r as Weight))) |
101 | 118 | } |
102 | 119 | fn undelegate(r: u32, ) -> Weight { |
103 | | - (41028000 as Weight) |
104 | | - .saturating_add((7810000 as Weight).saturating_mul(r as Weight)) |
| 120 | + (47_855_000 as Weight) |
| 121 | + .saturating_add((10_805_000 as Weight).saturating_mul(r as Weight)) |
105 | 122 | .saturating_add(T::DbWeight::get().reads(2 as Weight)) |
106 | 123 | .saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(r as Weight))) |
107 | 124 | .saturating_add(T::DbWeight::get().writes(2 as Weight)) |
108 | 125 | .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(r as Weight))) |
109 | 126 | } |
110 | 127 | fn clear_public_proposals() -> Weight { |
111 | | - (3643000 as Weight) |
| 128 | + (4_864_000 as Weight) |
112 | 129 | .saturating_add(T::DbWeight::get().writes(1 as Weight)) |
113 | 130 | } |
114 | 131 | fn note_preimage(b: u32, ) -> Weight { |
115 | | - (46629000 as Weight) |
116 | | - .saturating_add((4000 as Weight).saturating_mul(b as Weight)) |
| 132 | + (66_754_000 as Weight) |
| 133 | + .saturating_add((4_000 as Weight).saturating_mul(b as Weight)) |
117 | 134 | .saturating_add(T::DbWeight::get().reads(1 as Weight)) |
118 | 135 | .saturating_add(T::DbWeight::get().writes(1 as Weight)) |
119 | 136 | } |
120 | 137 | fn note_imminent_preimage(b: u32, ) -> Weight { |
121 | | - (31147000 as Weight) |
122 | | - .saturating_add((3000 as Weight).saturating_mul(b as Weight)) |
| 138 | + (44_664_000 as Weight) |
| 139 | + .saturating_add((3_000 as Weight).saturating_mul(b as Weight)) |
123 | 140 | .saturating_add(T::DbWeight::get().reads(1 as Weight)) |
124 | 141 | .saturating_add(T::DbWeight::get().writes(1 as Weight)) |
125 | 142 | } |
126 | 143 | fn reap_preimage(b: u32, ) -> Weight { |
127 | | - (42848000 as Weight) |
128 | | - .saturating_add((3000 as Weight).saturating_mul(b as Weight)) |
| 144 | + (59_968_000 as Weight) |
| 145 | + .saturating_add((3_000 as Weight).saturating_mul(b as Weight)) |
129 | 146 | .saturating_add(T::DbWeight::get().reads(2 as Weight)) |
130 | 147 | .saturating_add(T::DbWeight::get().writes(1 as Weight)) |
131 | 148 | } |
132 | 149 | fn unlock_remove(r: u32, ) -> Weight { |
133 | | - (45333000 as Weight) |
134 | | - .saturating_add((171000 as Weight).saturating_mul(r as Weight)) |
| 150 | + (58_573_000 as Weight) |
| 151 | + .saturating_add((131_000 as Weight).saturating_mul(r as Weight)) |
135 | 152 | .saturating_add(T::DbWeight::get().reads(3 as Weight)) |
136 | 153 | .saturating_add(T::DbWeight::get().writes(3 as Weight)) |
137 | 154 | } |
138 | 155 | fn unlock_set(r: u32, ) -> Weight { |
139 | | - (44424000 as Weight) |
140 | | - .saturating_add((291000 as Weight).saturating_mul(r as Weight)) |
| 156 | + (53_831_000 as Weight) |
| 157 | + .saturating_add((324_000 as Weight).saturating_mul(r as Weight)) |
141 | 158 | .saturating_add(T::DbWeight::get().reads(3 as Weight)) |
142 | 159 | .saturating_add(T::DbWeight::get().writes(3 as Weight)) |
143 | 160 | } |
144 | 161 | fn remove_vote(r: u32, ) -> Weight { |
145 | | - (28250000 as Weight) |
146 | | - .saturating_add((283000 as Weight).saturating_mul(r as Weight)) |
| 162 | + (31_846_000 as Weight) |
| 163 | + .saturating_add((327_000 as Weight).saturating_mul(r as Weight)) |
147 | 164 | .saturating_add(T::DbWeight::get().reads(2 as Weight)) |
148 | 165 | .saturating_add(T::DbWeight::get().writes(2 as Weight)) |
149 | 166 | } |
150 | 167 | fn remove_other_vote(r: u32, ) -> Weight { |
151 | | - (28250000 as Weight) |
152 | | - .saturating_add((283000 as Weight).saturating_mul(r as Weight)) |
| 168 | + (31_880_000 as Weight) |
| 169 | + .saturating_add((222_000 as Weight).saturating_mul(r as Weight)) |
153 | 170 | .saturating_add(T::DbWeight::get().reads(2 as Weight)) |
154 | 171 | .saturating_add(T::DbWeight::get().writes(2 as Weight)) |
155 | 172 | } |
|
0 commit comments