This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Commit 65ac8a5
Include
* extend storageinfo
* extend_storage_info
* use vec
* add storage info to pipeline
* get read and written keys
* undo storageinfo move
* refactor keytracker
* return read / write count
* playing with key matching
* add basic `StorageInfo` constructor
* add whitelisted to returned info
* fix some test stuff
* pipe comments into benchmark data
* add_storage_comments
* add comments to template
* track only storage prefix
* Update frame/benchmarking/src/lib.rs
* cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_balances --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/balances/src/weights.rs --template=./.maintain/frame-weight-template.hbs
* fix test
* cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_balances --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/balances/src/weights.rs --template=./.maintain/frame-weight-template.hbs
* remove test logs
* add temp benchmark script
* Apply suggestions from code review
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com>
* remove keytracker and use trackedstoragekey
* add comment for unknown keys
* cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_timestamp --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/timestamp/src/weights.rs --template=./.maintain/frame-weight-template.hbs
* remove duplicate comments with unknown keys
* cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_timestamp --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/timestamp/src/weights.rs --template=./.maintain/frame-weight-template.hbs
* cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_balances --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/balances/src/weights.rs --template=./.maintain/frame-weight-template.hbs
* refactor bench tracker, and fix results
* cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_balances --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/balances/src/weights.rs --template=./.maintain/frame-weight-template.hbs
* fix child tries in new tracker
* extra newline
* fix unused warning
* cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_timestamp --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/timestamp/src/weights.rs --template=./.maintain/frame-weight-template.hbs
* fix master merge
* storage info usage refactor
* remove now unused
* fix refactor
* use a vec for prefix
* fix tests
* also update writer to use vec
* disable read and written keys for now
* cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=frame_system --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/system/src/weights.rs --template=./.maintain/frame-weight-template.hbs
* Update frame/system/src/weights.rs
* fix test
* Delete weights.rs
* reset weights
Co-authored-by: Parity Bot <admin@parity.io>
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com>StorageInfo in Benchmarking Pipeline (#9090)1 parent 78da574 commit 65ac8a5
File tree
28 files changed
+552
-185
lines changed- .maintain
- bin
- node-template/runtime/src
- node/runtime/src
- client/db/src
- frame
- benchmarking/src
- support
- procedural/src/storage
- src
- storage/types
- traits
- test/tests
- timestamp/src
- primitives
- externalities/src
- state-machine/src
- storage/src
- tasks/src
- utils/frame/benchmarking-cli
- src
28 files changed
+552
-185
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
50 | 53 | | |
51 | 54 | | |
52 | 55 | | |
| |||
76 | 79 | | |
77 | 80 | | |
78 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
79 | 85 | | |
80 | 86 | | |
81 | 87 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
450 | 450 | | |
451 | 451 | | |
452 | 452 | | |
453 | | - | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
454 | 457 | | |
| 458 | + | |
455 | 459 | | |
456 | 460 | | |
457 | 461 | | |
| |||
469 | 473 | | |
470 | 474 | | |
471 | 475 | | |
| 476 | + | |
| 477 | + | |
472 | 478 | | |
473 | 479 | | |
474 | 480 | | |
| |||
478 | 484 | | |
479 | 485 | | |
480 | 486 | | |
481 | | - | |
| 487 | + | |
482 | 488 | | |
483 | 489 | | |
484 | 490 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1509 | 1509 | | |
1510 | 1510 | | |
1511 | 1511 | | |
1512 | | - | |
| 1512 | + | |
| 1513 | + | |
| 1514 | + | |
| 1515 | + | |
1513 | 1516 | | |
| 1517 | + | |
| 1518 | + | |
1514 | 1519 | | |
1515 | 1520 | | |
1516 | 1521 | | |
| |||
1537 | 1542 | | |
1538 | 1543 | | |
1539 | 1544 | | |
| 1545 | + | |
| 1546 | + | |
1540 | 1547 | | |
1541 | 1548 | | |
1542 | 1549 | | |
| |||
1574 | 1581 | | |
1575 | 1582 | | |
1576 | 1583 | | |
1577 | | - | |
| 1584 | + | |
1578 | 1585 | | |
1579 | 1586 | | |
1580 | 1587 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | 69 | | |
104 | 70 | | |
105 | 71 | | |
| |||
110 | 76 | | |
111 | 77 | | |
112 | 78 | | |
113 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
114 | 82 | | |
115 | 83 | | |
116 | | - | |
117 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
118 | 87 | | |
119 | 88 | | |
120 | 89 | | |
| |||
137 | 106 | | |
138 | 107 | | |
139 | 108 | | |
140 | | - | |
141 | 109 | | |
142 | 110 | | |
143 | 111 | | |
| |||
191 | 159 | | |
192 | 160 | | |
193 | 161 | | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
| 162 | + | |
| 163 | + | |
198 | 164 | | |
199 | 165 | | |
200 | 166 | | |
| |||
203 | 169 | | |
204 | 170 | | |
205 | 171 | | |
206 | | - | |
207 | 172 | | |
208 | 173 | | |
209 | 174 | | |
210 | 175 | | |
211 | | - | |
212 | 176 | | |
213 | 177 | | |
214 | 178 | | |
| |||
218 | 182 | | |
219 | 183 | | |
220 | 184 | | |
221 | | - | |
| 185 | + | |
222 | 186 | | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
| 187 | + | |
| 188 | + | |
227 | 189 | | |
228 | | - | |
229 | 190 | | |
230 | 191 | | |
231 | 192 | | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
244 | 196 | | |
245 | 197 | | |
246 | 198 | | |
247 | | - | |
| 199 | + | |
248 | 200 | | |
249 | 201 | | |
250 | 202 | | |
| |||
258 | 210 | | |
259 | 211 | | |
260 | 212 | | |
261 | | - | |
262 | 213 | | |
263 | 214 | | |
264 | 215 | | |
| |||
269 | 220 | | |
270 | 221 | | |
271 | 222 | | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
| 223 | + | |
278 | 224 | | |
| 225 | + | |
| 226 | + | |
279 | 227 | | |
280 | | - | |
281 | 228 | | |
282 | 229 | | |
283 | 230 | | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
292 | 234 | | |
293 | 235 | | |
294 | 236 | | |
295 | | - | |
| 237 | + | |
296 | 238 | | |
297 | 239 | | |
298 | 240 | | |
| |||
303 | 245 | | |
304 | 246 | | |
305 | 247 | | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
306 | 265 | | |
307 | 266 | | |
308 | 267 | | |
| |||
507 | 466 | | |
508 | 467 | | |
509 | 468 | | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
510 | 473 | | |
511 | | - | |
512 | | - | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
513 | 493 | | |
514 | 494 | | |
515 | 495 | | |
| |||
525 | 505 | | |
526 | 506 | | |
527 | 507 | | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
528 | 542 | | |
529 | 543 | | |
530 | 544 | | |
| |||
597 | 611 | | |
598 | 612 | | |
599 | 613 | | |
600 | | - | |
601 | | - | |
602 | | - | |
603 | | - | |
604 | | - | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
605 | 619 | | |
606 | 620 | | |
607 | 621 | | |
| |||
0 commit comments