git.delta.rocks / unique-network / refs/commits / e46e0e3e22a3

difftreelog

chore(weight) rebench after rebase

PraetorP2023-03-31parent: #008833a.patch.diff
in: master

3 files changed

modifiedpallets/common/src/weights.rsdiffbeforeafterboth
69 .saturating_add(Weight::from_parts(21_502_829, 0).saturating_mul(b.into()))69 .saturating_add(Weight::from_parts(21_502_829, 0).saturating_mul(b.into()))
70 .saturating_add(T::DbWeight::get().writes(1_u64))70 .saturating_add(T::DbWeight::get().writes(1_u64))
71 }71 }
72 /// Storage: Common Allowlist (r:1 w:0)
73 /// Proof: Common Allowlist (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen)
74 fn check_accesslist() -> Weight {
75 // Proof Size summary in bytes:
76 // Measured: `340`
77 // Estimated: `2545`
78 // Minimum execution time: 2_887_000 picoseconds.
79 Weight::from_parts(3_072_000, 2545)
80 .saturating_add(T::DbWeight::get().reads(1_u64))
81 }
82}
83
72// For backwards compatibility and tests84// For backwards compatibility and tests
73impl WeightInfo for () {85impl WeightInfo for () {
74 /// Storage: Common CollectionProperties (r:1 w:1)86 /// Storage: Common CollectionProperties (r:1 w:1)
98 .saturating_add(Weight::from_parts(21_502_829, 0).saturating_mul(b.into()))110 .saturating_add(Weight::from_parts(21_502_829, 0).saturating_mul(b.into()))
99 .saturating_add(RocksDbWeight::get().writes(1_u64))111 .saturating_add(RocksDbWeight::get().writes(1_u64))
100 }112 }
113 /// Storage: Common Allowlist (r:1 w:0)
114 /// Proof: Common Allowlist (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen)
115 fn check_accesslist() -> Weight {
116 // Proof Size summary in bytes:
117 // Measured: `340`
118 // Estimated: `2545`
119 // Minimum execution time: 2_887_000 picoseconds.
120 Weight::from_parts(3_072_000, 2545)
121 .saturating_add(RocksDbWeight::get().reads(1_u64))
122 }
123}
124
101125
modifiedpallets/fungible/src/weights.rsdiffbeforeafterboth
93 .saturating_add(T::DbWeight::get().reads(2_u64))93 .saturating_add(T::DbWeight::get().reads(2_u64))
94 .saturating_add(T::DbWeight::get().writes(2_u64))94 .saturating_add(T::DbWeight::get().writes(2_u64))
95 }95 }
96 // Storage: Fungible Balance (r:2 w:2)96 /// Storage: Fungible Balance (r:2 w:2)
97 /// Proof: Fungible Balance (max_values: None, max_size: Some(77), added: 2552, mode: MaxEncodedLen)
97 fn transfer_raw() -> Weight {98 fn transfer_raw() -> Weight {
99 // Proof Size summary in bytes:
100 // Measured: `182`
101 // Estimated: `5104`
102 // Minimum execution time: 6_678_000 picoseconds.
98 Weight::from_ref_time(12_041_000 as u64)103 Weight::from_parts(7_151_000, 5104)
99 .saturating_add(T::DbWeight::get().reads(2 as u64))104 .saturating_add(T::DbWeight::get().reads(2_u64))
100 .saturating_add(T::DbWeight::get().writes(2 as u64))105 .saturating_add(T::DbWeight::get().writes(2_u64))
101 }106 }
102 /// Storage: Fungible Balance (r:1 w:0)107 /// Storage: Fungible Balance (r:1 w:0)
103 /// Proof: Fungible Balance (max_values: None, max_size: Some(77), added: 2552, mode: MaxEncodedLen)108 /// Proof: Fungible Balance (max_values: None, max_size: Some(77), added: 2552, mode: MaxEncodedLen)
125 .saturating_add(T::DbWeight::get().reads(1_u64))130 .saturating_add(T::DbWeight::get().reads(1_u64))
126 .saturating_add(T::DbWeight::get().writes(1_u64))131 .saturating_add(T::DbWeight::get().writes(1_u64))
127 }132 }
128 // Storage: Fungible Allowance (r:1 w:0)133 /// Storage: Fungible Allowance (r:1 w:0)
134 /// Proof: Fungible Allowance (max_values: None, max_size: Some(93), added: 2568, mode: MaxEncodedLen)
129 fn check_allowed_raw() -> Weight {135 fn check_allowed_raw() -> Weight {
136 // Proof Size summary in bytes:
137 // Measured: `210`
138 // Estimated: `2568`
139 // Minimum execution time: 2_842_000 picoseconds.
130 Weight::from_ref_time(3_550_000 as u64)140 Weight::from_parts(3_077_000, 2568)
131 .saturating_add(T::DbWeight::get().reads(1 as u64))141 .saturating_add(T::DbWeight::get().reads(1_u64))
132 }142 }
133 // Storage: Fungible Allowance (r:1 w:1)143 /// Storage: Fungible Allowance (r:0 w:1)
144 /// Proof: Fungible Allowance (max_values: None, max_size: Some(93), added: 2568, mode: MaxEncodedLen)
134 fn set_allowance_unchecked_raw() -> Weight {145 fn set_allowance_unchecked_raw() -> Weight {
146 // Proof Size summary in bytes:
147 // Measured: `0`
148 // Estimated: `0`
149 // Minimum execution time: 2_532_000 picoseconds.
135 Weight::from_ref_time(10_682_000 as u64)150 Weight::from_parts(2_680_000, 0)
136 .saturating_add(T::DbWeight::get().reads(1 as u64))
137 .saturating_add(T::DbWeight::get().writes(1 as u64))151 .saturating_add(T::DbWeight::get().writes(1_u64))
138 }152 }
139 /// Storage: Fungible Allowance (r:1 w:1)153 /// Storage: Fungible Allowance (r:1 w:1)
140 /// Proof: Fungible Allowance (max_values: None, max_size: Some(93), added: 2568, mode: MaxEncodedLen)154 /// Proof: Fungible Allowance (max_values: None, max_size: Some(93), added: 2568, mode: MaxEncodedLen)
200 .saturating_add(RocksDbWeight::get().reads(2_u64))214 .saturating_add(RocksDbWeight::get().reads(2_u64))
201 .saturating_add(RocksDbWeight::get().writes(2_u64))215 .saturating_add(RocksDbWeight::get().writes(2_u64))
202 }216 }
203 // Storage: Fungible Balance (r:2 w:2)217 /// Storage: Fungible Balance (r:2 w:2)
218 /// Proof: Fungible Balance (max_values: None, max_size: Some(77), added: 2552, mode: MaxEncodedLen)
204 fn transfer_raw() -> Weight {219 fn transfer_raw() -> Weight {
220 // Proof Size summary in bytes:
221 // Measured: `182`
222 // Estimated: `5104`
223 // Minimum execution time: 6_678_000 picoseconds.
205 Weight::from_ref_time(12_041_000 as u64)224 Weight::from_parts(7_151_000, 5104)
206 .saturating_add(RocksDbWeight::get().reads(2 as u64))225 .saturating_add(RocksDbWeight::get().reads(2_u64))
207 .saturating_add(RocksDbWeight::get().writes(2 as u64))226 .saturating_add(RocksDbWeight::get().writes(2_u64))
208 }227 }
209 /// Storage: Fungible Balance (r:1 w:0)228 /// Storage: Fungible Balance (r:1 w:0)
210 /// Proof: Fungible Balance (max_values: None, max_size: Some(77), added: 2552, mode: MaxEncodedLen)229 /// Proof: Fungible Balance (max_values: None, max_size: Some(77), added: 2552, mode: MaxEncodedLen)
232 .saturating_add(RocksDbWeight::get().reads(1_u64))251 .saturating_add(RocksDbWeight::get().reads(1_u64))
233 .saturating_add(RocksDbWeight::get().writes(1_u64))252 .saturating_add(RocksDbWeight::get().writes(1_u64))
234 }253 }
235 // Storage: Fungible Allowance (r:1 w:0)254 /// Storage: Fungible Allowance (r:1 w:0)
255 /// Proof: Fungible Allowance (max_values: None, max_size: Some(93), added: 2568, mode: MaxEncodedLen)
236 fn check_allowed_raw() -> Weight {256 fn check_allowed_raw() -> Weight {
257 // Proof Size summary in bytes:
258 // Measured: `210`
259 // Estimated: `2568`
260 // Minimum execution time: 2_842_000 picoseconds.
237 Weight::from_ref_time(3_550_000 as u64)261 Weight::from_parts(3_077_000, 2568)
238 .saturating_add(RocksDbWeight::get().reads(1 as u64))262 .saturating_add(RocksDbWeight::get().reads(1_u64))
239 }263 }
240 // Storage: Fungible Allowance (r:1 w:1)264 /// Storage: Fungible Allowance (r:0 w:1)
265 /// Proof: Fungible Allowance (max_values: None, max_size: Some(93), added: 2568, mode: MaxEncodedLen)
241 fn set_allowance_unchecked_raw() -> Weight {266 fn set_allowance_unchecked_raw() -> Weight {
267 // Proof Size summary in bytes:
268 // Measured: `0`
269 // Estimated: `0`
270 // Minimum execution time: 2_532_000 picoseconds.
242 Weight::from_ref_time(10_682_000 as u64)271 Weight::from_parts(2_680_000, 0)
243 .saturating_add(RocksDbWeight::get().reads(1 as u64))
244 .saturating_add(RocksDbWeight::get().writes(1 as u64))272 .saturating_add(RocksDbWeight::get().writes(1_u64))
245 }273 }
246 /// Storage: Fungible Allowance (r:1 w:1)274 /// Storage: Fungible Allowance (r:1 w:1)
247 /// Proof: Fungible Allowance (max_values: None, max_size: Some(93), added: 2568, mode: MaxEncodedLen)275 /// Proof: Fungible Allowance (max_values: None, max_size: Some(93), added: 2568, mode: MaxEncodedLen)
modifiedpallets/nonfungible/src/weights.rsdiffbeforeafterboth
209 .saturating_add(T::DbWeight::get().writes((4_u64).saturating_mul(b.into())))209 .saturating_add(T::DbWeight::get().writes((4_u64).saturating_mul(b.into())))
210 .saturating_add(Weight::from_parts(0, 10097).saturating_mul(b.into()))210 .saturating_add(Weight::from_parts(0, 10097).saturating_mul(b.into()))
211 }211 }
212 // Storage: Nonfungible TokenData (r:1 w:1)212 /// Storage: Nonfungible TokenData (r:1 w:1)
213 // Storage: Nonfungible AccountBalance (r:2 w:2)213 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)
214 // Storage: Nonfungible Allowance (r:1 w:0)214 /// Storage: Nonfungible AccountBalance (r:2 w:2)
215 // Storage: Nonfungible Owned (r:0 w:2)215 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)
216 /// Storage: Nonfungible Allowance (r:1 w:0)
217 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)
218 /// Storage: Nonfungible Owned (r:0 w:2)
219 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)
216 fn transfer_raw() -> Weight {220 fn transfer_raw() -> Weight {
221 // Proof Size summary in bytes:
222 // Measured: `412`
223 // Estimated: `10144`
224 // Minimum execution time: 9_307_000 picoseconds.
217 Weight::from_ref_time(14_909_000 as u64)225 Weight::from_parts(10_108_000, 10144)
218 .saturating_add(T::DbWeight::get().reads(4 as u64))226 .saturating_add(T::DbWeight::get().reads(4_u64))
219 .saturating_add(T::DbWeight::get().writes(5 as u64))227 .saturating_add(T::DbWeight::get().writes(5_u64))
220 }228 }
221 /// Storage: Nonfungible TokenData (r:1 w:0)229 /// Storage: Nonfungible TokenData (r:1 w:0)
222 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)230 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)
244 .saturating_add(T::DbWeight::get().reads(2_u64))252 .saturating_add(T::DbWeight::get().reads(2_u64))
245 .saturating_add(T::DbWeight::get().writes(1_u64))253 .saturating_add(T::DbWeight::get().writes(1_u64))
246 }254 }
247 // Storage: Nonfungible Allowance (r:1 w:0)255 /// Storage: Nonfungible Allowance (r:1 w:0)
256 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)
248 fn checks_allowed_raw() -> Weight {257 fn checks_allowed_raw() -> Weight {
258 // Proof Size summary in bytes:
259 // Measured: `394`
260 // Estimated: `2532`
261 // Minimum execution time: 2_668_000 picoseconds.
249 Weight::from_ref_time(3_341_000 as u64)262 Weight::from_parts(2_877_000, 2532)
250 .saturating_add(T::DbWeight::get().reads(1 as u64))263 .saturating_add(T::DbWeight::get().reads(1_u64))
251 }264 }
252 /// Storage: Nonfungible Allowance (r:1 w:1)265 /// Storage: Nonfungible Allowance (r:1 w:1)
253 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)266 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)
515 .saturating_add(RocksDbWeight::get().writes((4_u64).saturating_mul(b.into())))528 .saturating_add(RocksDbWeight::get().writes((4_u64).saturating_mul(b.into())))
516 .saturating_add(Weight::from_parts(0, 10097).saturating_mul(b.into()))529 .saturating_add(Weight::from_parts(0, 10097).saturating_mul(b.into()))
517 }530 }
518 // Storage: Nonfungible TokenData (r:1 w:1)531 /// Storage: Nonfungible TokenData (r:1 w:1)
519 // Storage: Nonfungible AccountBalance (r:2 w:2)532 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)
520 // Storage: Nonfungible Allowance (r:1 w:0)533 /// Storage: Nonfungible AccountBalance (r:2 w:2)
521 // Storage: Nonfungible Owned (r:0 w:2)534 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)
535 /// Storage: Nonfungible Allowance (r:1 w:0)
536 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)
537 /// Storage: Nonfungible Owned (r:0 w:2)
538 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)
522 fn transfer_raw() -> Weight {539 fn transfer_raw() -> Weight {
540 // Proof Size summary in bytes:
541 // Measured: `412`
542 // Estimated: `10144`
543 // Minimum execution time: 9_307_000 picoseconds.
523 Weight::from_ref_time(14_909_000 as u64)544 Weight::from_parts(10_108_000, 10144)
524 .saturating_add(RocksDbWeight::get().reads(4 as u64))545 .saturating_add(RocksDbWeight::get().reads(4_u64))
525 .saturating_add(RocksDbWeight::get().writes(5 as u64))546 .saturating_add(RocksDbWeight::get().writes(5_u64))
526 }547 }
527 /// Storage: Nonfungible TokenData (r:1 w:0)548 /// Storage: Nonfungible TokenData (r:1 w:0)
528 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)549 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)
550 .saturating_add(RocksDbWeight::get().reads(2_u64))571 .saturating_add(RocksDbWeight::get().reads(2_u64))
551 .saturating_add(RocksDbWeight::get().writes(1_u64))572 .saturating_add(RocksDbWeight::get().writes(1_u64))
552 }573 }
553 // Storage: Nonfungible Allowance (r:1 w:0)574 /// Storage: Nonfungible Allowance (r:1 w:0)
575 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)
554 fn checks_allowed_raw() -> Weight {576 fn checks_allowed_raw() -> Weight {
577 // Proof Size summary in bytes:
578 // Measured: `394`
579 // Estimated: `2532`
580 // Minimum execution time: 2_668_000 picoseconds.
555 Weight::from_ref_time(3_341_000 as u64)581 Weight::from_parts(2_877_000, 2532)
556 .saturating_add(RocksDbWeight::get().reads(1 as u64))582 .saturating_add(RocksDbWeight::get().reads(1_u64))
557 }583 }
558 /// Storage: Nonfungible Allowance (r:1 w:1)584 /// Storage: Nonfungible Allowance (r:1 w:1)
559 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)585 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)