/home/runner/work/creditcoin/creditcoin/pallets/creditcoin/src/weights.rs
Line | Count | Source (jump to first uncovered line) |
1 | | |
2 | | //! Autogenerated weights for `super` |
3 | | //! |
4 | | //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev |
5 | | //! DATE: 2022-11-09, STEPS: `8`, REPEAT: 8, LOW RANGE: `[]`, HIGH RANGE: `[]` |
6 | | //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 |
7 | | |
8 | | // Executed Command: |
9 | | // ./target/release/creditcoin-node |
10 | | // benchmark |
11 | | // --chain |
12 | | // dev |
13 | | // --steps=8 |
14 | | // --repeat=8 |
15 | | // --pallet |
16 | | // super |
17 | | // --extrinsic=* |
18 | | // --execution |
19 | | // wasm |
20 | | // --wasm-execution=compiled |
21 | | // --heap-pages=10000 |
22 | | // --output |
23 | | // ./pallets/creditcoin/src/weights.rs |
24 | | |
25 | | #![cfg_attr(rustfmt, rustfmt_skip)] |
26 | | #![allow(unused_parens)] |
27 | | #![allow(unused_imports)] |
28 | | |
29 | | use frame_support::{traits::Get, weights::Weight}; |
30 | | use sp_std::marker::PhantomData; |
31 | | |
32 | | /// Weight functions for `super`. |
33 | | pub struct WeightInfo<T>(PhantomData<T>); |
34 | | impl<T: frame_system::Config> super::WeightInfo for WeightInfo<T> { |
35 | | // Storage: Creditcoin DealOrders (r:511 w:510) |
36 | | // Storage: Creditcoin BidOrders (r:0 w:255) |
37 | | // Storage: Creditcoin Offers (r:0 w:255) |
38 | | // Storage: Creditcoin PendingTasks (r:0 w:510) |
39 | | // Storage: Creditcoin AskOrders (r:0 w:31) |
40 | 75 | fn on_initialize(a: u32, b: u32, o: u32, d: u32, f: u32, u: u32, c: u32, ) -> Weight { |
41 | 75 | (0 as Weight) |
42 | 75 | // Standard Error: 20_580_000 |
43 | 75 | .saturating_add((41_853_000 as Weight).saturating_mul(a as Weight)) |
44 | 75 | // Standard Error: 20_580_000 |
45 | 75 | .saturating_add((42_567_000 as Weight).saturating_mul(b as Weight)) |
46 | 75 | // Standard Error: 20_580_000 |
47 | 75 | .saturating_add((68_676_000 as Weight).saturating_mul(o as Weight)) |
48 | 75 | // Standard Error: 20_580_000 |
49 | 75 | .saturating_add((80_742_000 as Weight).saturating_mul(d as Weight)) |
50 | 75 | // Standard Error: 20_580_000 |
51 | 75 | .saturating_add((62_392_000 as Weight).saturating_mul(f as Weight)) |
52 | 75 | // Standard Error: 20_580_000 |
53 | 75 | .saturating_add((65_465_000 as Weight).saturating_mul(u as Weight)) |
54 | 75 | // Standard Error: 20_580_000 |
55 | 75 | .saturating_add((71_023_000 as Weight).saturating_mul(c as Weight)) |
56 | 75 | .saturating_add(T::DbWeight::get().reads(1 as Weight)) |
57 | 75 | .saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(d as Weight))) |
58 | 75 | .saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(f as Weight))) |
59 | 75 | .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(a as Weight))) |
60 | 75 | .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(b as Weight))) |
61 | 75 | .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(o as Weight))) |
62 | 75 | .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(d as Weight))) |
63 | 75 | .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(f as Weight))) |
64 | 75 | .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(u as Weight))) |
65 | 75 | .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(c as Weight))) |
66 | 75 | } |
67 | | // Storage: Creditcoin Addresses (r:1 w:1) |
68 | 1 | fn register_address() -> Weight { |
69 | 1 | (280_902_000 as Weight) |
70 | 1 | .saturating_add(T::DbWeight::get().reads(1 as Weight)) |
71 | 1 | .saturating_add(T::DbWeight::get().writes(1 as Weight)) |
72 | 1 | } |
73 | | // Storage: Creditcoin LegacyWallets (r:1 w:1) |
74 | | // Storage: Creditcoin LegacyBalanceKeeper (r:1 w:0) |
75 | | // Storage: System Account (r:1 w:1) |
76 | 1 | fn claim_legacy_wallet() -> Weight { |
77 | 1 | (73_100_000 as Weight) |
78 | 1 | .saturating_add(T::DbWeight::get().reads(3 as Weight)) |
79 | 1 | .saturating_add(T::DbWeight::get().writes(2 as Weight)) |
80 | 1 | } |
81 | | // Storage: Creditcoin AskOrders (r:1 w:1) |
82 | | // Storage: Creditcoin Addresses (r:1 w:0) |
83 | | // Storage: Creditcoin Currencies (r:1 w:0) |
84 | | // Storage: Creditcoin UsedGuids (r:1 w:1) |
85 | 1 | fn add_ask_order() -> Weight { |
86 | 1 | (48_500_000 as Weight) |
87 | 1 | .saturating_add(T::DbWeight::get().reads(4 as Weight)) |
88 | 1 | .saturating_add(T::DbWeight::get().writes(2 as Weight)) |
89 | 1 | } |
90 | | // Storage: Creditcoin BidOrders (r:1 w:1) |
91 | | // Storage: Creditcoin Addresses (r:1 w:0) |
92 | | // Storage: Creditcoin Currencies (r:1 w:0) |
93 | | // Storage: Creditcoin UsedGuids (r:1 w:1) |
94 | 1 | fn add_bid_order() -> Weight { |
95 | 1 | (48_100_000 as Weight) |
96 | 1 | .saturating_add(T::DbWeight::get().reads(4 as Weight)) |
97 | 1 | .saturating_add(T::DbWeight::get().writes(2 as Weight)) |
98 | 1 | } |
99 | | // Storage: Creditcoin AskOrders (r:1 w:0) |
100 | | // Storage: Creditcoin BidOrders (r:1 w:0) |
101 | | // Storage: Creditcoin Addresses (r:2 w:0) |
102 | | // Storage: Creditcoin Offers (r:1 w:1) |
103 | 1 | fn add_offer() -> Weight { |
104 | 1 | (60_700_000 as Weight) |
105 | 1 | .saturating_add(T::DbWeight::get().reads(5 as Weight)) |
106 | 1 | .saturating_add(T::DbWeight::get().writes(1 as Weight)) |
107 | 1 | } |
108 | | // Storage: Creditcoin DealOrders (r:1 w:1) |
109 | | // Storage: Creditcoin Offers (r:1 w:0) |
110 | | // Storage: Creditcoin AskOrders (r:1 w:0) |
111 | | // Storage: Creditcoin BidOrders (r:1 w:0) |
112 | | // Storage: Timestamp Now (r:1 w:0) |
113 | 1 | fn add_deal_order() -> Weight { |
114 | 1 | (54_900_000 as Weight) |
115 | 1 | .saturating_add(T::DbWeight::get().reads(5 as Weight)) |
116 | 1 | .saturating_add(T::DbWeight::get().writes(1 as Weight)) |
117 | 1 | } |
118 | | // Storage: Creditcoin Authorities (r:1 w:1) |
119 | 1 | fn add_authority() -> Weight { |
120 | 1 | (7_300_000 as Weight) |
121 | 1 | .saturating_add(T::DbWeight::get().reads(1 as Weight)) |
122 | 1 | .saturating_add(T::DbWeight::get().writes(1 as Weight)) |
123 | 1 | } |
124 | | // Storage: Creditcoin Authorities (r:1 w:0) |
125 | | // Storage: Creditcoin Transfers (r:1 w:1) |
126 | | // Storage: Creditcoin PendingTasks (r:0 w:1) |
127 | 1 | fn persist_transfer() -> Weight { |
128 | 1 | (39_600_000 as Weight) |
129 | 1 | .saturating_add(T::DbWeight::get().reads(2 as Weight)) |
130 | 1 | .saturating_add(T::DbWeight::get().writes(2 as Weight)) |
131 | 1 | } |
132 | | // Storage: Creditcoin Authorities (r:1 w:0) |
133 | | // Storage: Creditcoin Transfers (r:1 w:0) |
134 | | // Storage: Creditcoin PendingTasks (r:0 w:1) |
135 | 1 | fn fail_transfer() -> Weight { |
136 | 1 | (31_100_000 as Weight) |
137 | 1 | .saturating_add(T::DbWeight::get().reads(2 as Weight)) |
138 | 1 | .saturating_add(T::DbWeight::get().writes(1 as Weight)) |
139 | 1 | } |
140 | | // Storage: Creditcoin DealOrders (r:1 w:1) |
141 | | // Storage: Creditcoin Addresses (r:1 w:0) |
142 | | // Storage: Timestamp Now (r:1 w:0) |
143 | | // Storage: Creditcoin Transfers (r:1 w:1) |
144 | 1 | fn fund_deal_order() -> Weight { |
145 | 1 | (57_200_000 as Weight) |
146 | 1 | .saturating_add(T::DbWeight::get().reads(4 as Weight)) |
147 | 1 | .saturating_add(T::DbWeight::get().writes(2 as Weight)) |
148 | 1 | } |
149 | | // Storage: Creditcoin DealOrders (r:1 w:1) |
150 | 1 | fn lock_deal_order() -> Weight { |
151 | 1 | (32_000_000 as Weight) |
152 | 1 | .saturating_add(T::DbWeight::get().reads(1 as Weight)) |
153 | 1 | .saturating_add(T::DbWeight::get().writes(1 as Weight)) |
154 | 1 | } |
155 | | // Storage: Creditcoin DealOrders (r:1 w:0) |
156 | | // Storage: Creditcoin Addresses (r:2 w:0) |
157 | | // Storage: Creditcoin Transfers (r:1 w:0) |
158 | | // Storage: Creditcoin Currencies (r:1 w:0) |
159 | | // Storage: Creditcoin PendingTasks (r:0 w:1) |
160 | 1 | fn register_funding_transfer() -> Weight { |
161 | 1 | (59_300_000 as Weight) |
162 | 1 | .saturating_add(T::DbWeight::get().reads(5 as Weight)) |
163 | 1 | .saturating_add(T::DbWeight::get().writes(1 as Weight)) |
164 | 1 | } |
165 | | // Storage: Creditcoin DealOrders (r:1 w:0) |
166 | | // Storage: Creditcoin Addresses (r:2 w:0) |
167 | | // Storage: Creditcoin Transfers (r:1 w:0) |
168 | | // Storage: Creditcoin Currencies (r:1 w:0) |
169 | | // Storage: Creditcoin PendingTasks (r:0 w:1) |
170 | 1 | fn register_repayment_transfer() -> Weight { |
171 | 1 | (57_500_000 as Weight) |
172 | 1 | .saturating_add(T::DbWeight::get().reads(5 as Weight)) |
173 | 1 | .saturating_add(T::DbWeight::get().writes(1 as Weight)) |
174 | 1 | } |
175 | | // Storage: Creditcoin DealOrders (r:1 w:1) |
176 | | // Storage: Creditcoin Addresses (r:2 w:0) |
177 | | // Storage: Creditcoin Transfers (r:1 w:0) |
178 | | // Storage: Creditcoin PendingTasks (r:0 w:1) |
179 | 0 | fn register_funding_transfer_legacy() -> Weight { |
180 | 0 | (56_701_000 as Weight) |
181 | 0 | .saturating_add(T::DbWeight::get().reads(4 as Weight)) |
182 | 0 | .saturating_add(T::DbWeight::get().writes(2 as Weight)) |
183 | 0 | } |
184 | | // Storage: Creditcoin DealOrders (r:1 w:1) |
185 | | // Storage: Creditcoin Addresses (r:2 w:0) |
186 | | // Storage: Creditcoin Transfers (r:1 w:0) |
187 | | // Storage: Creditcoin PendingTasks (r:0 w:1) |
188 | 0 | fn register_repayment_transfer_legacy() -> Weight { |
189 | 0 | (57_600_000 as Weight) |
190 | 0 | .saturating_add(T::DbWeight::get().reads(4 as Weight)) |
191 | 0 | .saturating_add(T::DbWeight::get().writes(2 as Weight)) |
192 | 0 | } |
193 | | // Storage: Creditcoin DealOrders (r:1 w:1) |
194 | | // Storage: Creditcoin Addresses (r:1 w:0) |
195 | | // Storage: Timestamp Now (r:1 w:0) |
196 | | // Storage: Creditcoin Transfers (r:1 w:1) |
197 | 1 | fn close_deal_order() -> Weight { |
198 | 1 | (59_601_000 as Weight) |
199 | 1 | .saturating_add(T::DbWeight::get().reads(4 as Weight)) |
200 | 1 | .saturating_add(T::DbWeight::get().writes(2 as Weight)) |
201 | 1 | } |
202 | | // Storage: Creditcoin DealOrders (r:1 w:1) |
203 | | // Storage: Creditcoin Addresses (r:1 w:0) |
204 | | // Storage: Timestamp Now (r:1 w:0) |
205 | 1 | fn exempt() -> Weight { |
206 | 1 | (42_400_000 as Weight) |
207 | 1 | .saturating_add(T::DbWeight::get().reads(3 as Weight)) |
208 | 1 | .saturating_add(T::DbWeight::get().writes(1 as Weight)) |
209 | 1 | } |
210 | | // Storage: Creditcoin Currencies (r:1 w:0) |
211 | | // Storage: Creditcoin Addresses (r:2 w:0) |
212 | | // Storage: Creditcoin AskOrders (r:1 w:1) |
213 | | // Storage: Creditcoin BidOrders (r:1 w:1) |
214 | | // Storage: Creditcoin Offers (r:1 w:1) |
215 | | // Storage: Creditcoin DealOrders (r:1 w:1) |
216 | | // Storage: Timestamp Now (r:1 w:0) |
217 | 1 | fn register_deal_order() -> Weight { |
218 | 1 | (339_301_000 as Weight) |
219 | 1 | .saturating_add(T::DbWeight::get().reads(8 as Weight)) |
220 | 1 | .saturating_add(T::DbWeight::get().writes(4 as Weight)) |
221 | 1 | } |
222 | | // Storage: Creditcoin CollectCoinsContract (r:1 w:0) |
223 | | // Storage: Creditcoin CollectedCoins (r:1 w:0) |
224 | | // Storage: Creditcoin PendingTasks (r:1 w:1) |
225 | | // Storage: Creditcoin Addresses (r:1 w:0) |
226 | 1 | fn request_collect_coins() -> Weight { |
227 | 1 | (43_001_000 as Weight) |
228 | 1 | .saturating_add(T::DbWeight::get().reads(4 as Weight)) |
229 | 1 | .saturating_add(T::DbWeight::get().writes(1 as Weight)) |
230 | 1 | } |
231 | | // Storage: Creditcoin Authorities (r:1 w:0) |
232 | | // Storage: Creditcoin CollectedCoins (r:1 w:0) |
233 | | // Storage: Creditcoin PendingTasks (r:0 w:1) |
234 | 1 | fn fail_collect_coins() -> Weight { |
235 | 1 | (23_900_000 as Weight) |
236 | 1 | .saturating_add(T::DbWeight::get().reads(2 as Weight)) |
237 | 1 | .saturating_add(T::DbWeight::get().writes(1 as Weight)) |
238 | 1 | } |
239 | | // Storage: Creditcoin Authorities (r:1 w:0) |
240 | | // Storage: Creditcoin CollectedCoins (r:1 w:1) |
241 | | // Storage: Creditcoin Addresses (r:1 w:0) |
242 | | // Storage: Creditcoin PendingTasks (r:0 w:1) |
243 | 1 | fn persist_collect_coins() -> Weight { |
244 | 1 | (77_800_000 as Weight) |
245 | 1 | .saturating_add(T::DbWeight::get().reads(3 as Weight)) |
246 | 1 | .saturating_add(T::DbWeight::get().writes(2 as Weight)) |
247 | 1 | } |
248 | | // Storage: Creditcoin Authorities (r:1 w:1) |
249 | 1 | fn remove_authority() -> Weight { |
250 | 1 | (8_500_000 as Weight) |
251 | 1 | .saturating_add(T::DbWeight::get().reads(1 as Weight)) |
252 | 1 | .saturating_add(T::DbWeight::get().writes(1 as Weight)) |
253 | 1 | } |
254 | | // Storage: Creditcoin Currencies (r:1 w:1) |
255 | 1 | fn register_currency() -> Weight { |
256 | 1 | (20_700_000 as Weight) |
257 | 1 | .saturating_add(T::DbWeight::get().reads(1 as Weight)) |
258 | 1 | .saturating_add(T::DbWeight::get().writes(1 as Weight)) |
259 | 1 | } |
260 | | // Storage: Creditcoin CollectCoinsContract (r:0 w:1) |
261 | 1 | fn set_collect_coins_contract() -> Weight { |
262 | 1 | (3_900_000 as Weight) |
263 | 1 | .saturating_add(T::DbWeight::get().writes(1 as Weight)) |
264 | 1 | } |
265 | | } |