mirror of
https://github.com/powdr-labs/powdr.git
synced 2026-01-14 07:07:55 -05:00
Adds a heuristic to separate "normal" CPU instructions (which we can
hope to accelerate with APCs) from OpenVM precompiles.
Example:
```
python openvm/scripts/basic_metrics.py ../bench-results/results/2025-07-07-0624/reth/*.json
filename num_segments app_proof_cells app_proof_time_ms app_execute_time_ms app_trace_gen_time_ms leaf_proof_time_ms inner_recursion_proof_time_ms normal_instruction_cells openvm_precompile_cells powdr_cells normal_instruction_ratio openvm_precompile_ratio powdr_ratio powdr_rows
../bench-results/results/2025-07-07-0624/reth/100apc.json 3 15062260062 163682 23767 64627 89913 12532 4982516224 7190029662 2889714176 0.330795 0.477354 0.191851 16826880
../bench-results/results/2025-07-07-0624/reth/noapc.json 6 19633824920 217899 24907 55865 82750 30175 11659639296 7974185624 0 0.593855 0.406145 0.000000 0
```
Note that `normal_instruction_cells + openvm_precompile_cells` adds to
`non_powdr_cells`
[here](https://github.com/powdr-labs/bench-results/blob/gh-pages/results/2025-07-07-0624/reth/basic_metrics.csv).
5 lines
34 B
Plaintext
5 lines
34 B
Plaintext
pandas
|
|
matplotlib
|
|
psrecord
|
|
pytest
|