Commit 186302a
authored
[OVM 1.4] 70% off APC preflight execution overhead (#3437)
As seen in the test results below (first being current main, second
being this PR, and third being APC=0 base line, each run 3+ times so
should be robust), preflight execution overhead from APC should be
mostly gone (7851 --> 4699 with a baseline of 4622). However, it's
extremely perplexing that tracegen time increased by almost a full
second (7370 --> 8233 with a baseline of 7171) despite nothing much
changed there. Tried multiple ways to dissect and benchmark where the
increase comes from but with no avail.
The net effect should still be savings, as now preflight + tracegen
should have very small overhead `(4699 + 8233) / (4622 + 7171) = ~+10%.`
Disclaimer: these stats are for 100 APCs, so can be quite different for
other # of APCs. Calling this 70% off preflight because it eliminates
most preflight overhead but somehow adds to tracegen...
```
filename num_segments app_proof_cells app_proof_cols total_proof_time_ms app_proof_time_ms app_execute_preflight_time_ms app_execute_metered_time_ms app_trace_gen_time_ms leaf_proof_time_ms inner_recursion_proof_time_ms normal_instruction_ratio openvm_precompile_ratio powdr_ratio powdr_rows
/home/steve/openvm-reth-benchmark/apc_100_new.json 19 13856523983 354152 31097 31097 7851 708 7370 0 0 0.307127 0.540265 0.152608 14033237
/home/steve/openvm-reth-benchmark/apc_100_preflight.json 19 13856523983 354152 31166 31166 4699 701 8233 0 0 0.307127 0.540265 0.152608 14033237
../openvm-reth-benchmark/metrics_apc0.json 26 20019740816 216005 42660 42660 4622 749 7171 0 0 0.612871 0.387129 0.000000 0
```1 parent 45eb86a commit 186302a
File tree
4 files changed
+106
-58
lines changed- openvm/src
- powdr_extension
- executor
- trace_generator
- cpu
- cuda
4 files changed
+106
-58
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
| 139 | + | |
140 | 140 | | |
141 | | - | |
| 141 | + | |
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
36 | | - | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| |||
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
85 | | - | |
| 86 | + | |
86 | 87 | | |
87 | | - | |
| 88 | + | |
88 | 89 | | |
89 | 90 | | |
90 | | - | |
| 91 | + | |
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
94 | | - | |
| 95 | + | |
95 | 96 | | |
96 | | - | |
| 97 | + | |
97 | 98 | | |
98 | 99 | | |
99 | | - | |
| 100 | + | |
100 | 101 | | |
101 | 102 | | |
102 | 103 | | |
| |||
123 | 124 | | |
124 | 125 | | |
125 | 126 | | |
126 | | - | |
| 127 | + | |
| 128 | + | |
127 | 129 | | |
128 | 130 | | |
129 | 131 | | |
| |||
136 | 138 | | |
137 | 139 | | |
138 | 140 | | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
144 | 148 | | |
145 | 149 | | |
146 | 150 | | |
147 | 151 | | |
148 | 152 | | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
157 | 167 | | |
158 | 168 | | |
159 | 169 | | |
160 | 170 | | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
161 | 184 | | |
162 | 185 | | |
163 | 186 | | |
| |||
166 | 189 | | |
167 | 190 | | |
168 | 191 | | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
169 | 198 | | |
170 | 199 | | |
171 | 200 | | |
| |||
426 | 455 | | |
427 | 456 | | |
428 | 457 | | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | 458 | | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | | - | |
439 | | - | |
440 | | - | |
441 | | - | |
442 | | - | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
443 | 467 | | |
444 | 468 | | |
445 | 469 | | |
| |||
448 | 472 | | |
449 | 473 | | |
450 | 474 | | |
451 | | - | |
| 475 | + | |
452 | 476 | | |
453 | 477 | | |
454 | 478 | | |
| |||
501 | 525 | | |
502 | 526 | | |
503 | 527 | | |
504 | | - | |
505 | | - | |
506 | | - | |
507 | 528 | | |
508 | | - | |
509 | | - | |
510 | | - | |
511 | | - | |
512 | | - | |
513 | | - | |
514 | | - | |
515 | | - | |
516 | | - | |
517 | | - | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
518 | 537 | | |
519 | 538 | | |
520 | 539 | | |
| |||
523 | 542 | | |
524 | 543 | | |
525 | 544 | | |
526 | | - | |
| 545 | + | |
527 | 546 | | |
528 | 547 | | |
529 | 548 | | |
| |||
552 | 571 | | |
553 | 572 | | |
554 | 573 | | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
555 | 606 | | |
556 | 607 | | |
557 | | - | |
| 608 | + | |
558 | 609 | | |
559 | 610 | | |
560 | 611 | | |
561 | 612 | | |
| 613 | + | |
562 | 614 | | |
563 | 615 | | |
564 | 616 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
123 | | - | |
124 | 122 | | |
125 | 123 | | |
126 | 124 | | |
| |||
130 | 128 | | |
131 | 129 | | |
132 | 130 | | |
133 | | - | |
| 131 | + | |
134 | 132 | | |
135 | 133 | | |
136 | 134 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
222 | | - | |
223 | | - | |
224 | 222 | | |
225 | 223 | | |
226 | 224 | | |
| |||
230 | 228 | | |
231 | 229 | | |
232 | 230 | | |
233 | | - | |
| 231 | + | |
234 | 232 | | |
235 | 233 | | |
236 | 234 | | |
| |||
0 commit comments