|
17 | 17 |
|
18 | 18 | - The total number of proofs (3968) is the **maximum that can be aggregated in a single run**, limited by blob capacity. |
19 | 19 | - Increasing the **proofs per chunk** generally improves performance, but requires **more powerful hardware** to avoid out of memory. |
| 20 | +- In this benches the Aligned infrastructure was setup locally in the same machine using `ethereum-package`. |
| 21 | + |
| 22 | +## Reproduce it |
| 23 | + |
| 24 | +The step by step to run the benchmarks: |
| 25 | + |
| 26 | +1. Deploy aligned infrastructure locally with `ethereum-package`. |
| 27 | +2. Fund a wallet on aligned, for example with rich account number 7: |
| 28 | + |
| 29 | +```shell |
| 30 | +cargo run --release -- deposit-to-batcher \ |
| 31 | + --network devnet \ |
| 32 | + --private_key 0x4bbbf85ce3377467afe5d46f804f221813b2bb87f24d81f60f1fcdbf7cbf4356 \ |
| 33 | + --amount 1ether |
| 34 | +``` |
| 35 | + |
| 36 | +3. Send `3968` fibonacci proofs for `Risc0` and `Sp1`: |
| 37 | + |
| 38 | +```shell |
| 39 | +cd batcher/aligned |
| 40 | + |
| 41 | +## Send SP1 Proofs |
| 42 | +cargo run --release -- submit \ |
| 43 | + --proving_system SP1 \ |
| 44 | + --proof ../../scripts/test_files/sp1/sp1_fibonacci_5_0_0.proof \ |
| 45 | + --vm_program ../../scripts/test_files/sp1/sp1_fibonacci_5_0_0.elf \ |
| 46 | + --repetitions 1000 \ |
| 47 | + --private_key 0x4bbbf85ce3377467afe5d46f804f221813b2bb87f24d81f60f1fcdbf7cbf4356 \ |
| 48 | + --instant_fee_estimate \ |
| 49 | + --network devnet \ |
| 50 | + --random_address |
| 51 | + |
| 52 | +## Send Risc0 Proofs |
| 53 | + cargo run --release -- submit \ |
| 54 | + --proving_system Risc0 \ |
| 55 | + --proof ../../scripts/test_files/risc_zero/fibonacci_proof_generator/risc_zero_fibonacci_2_0.proof \ - |
| 56 | + --vm_program ../../scripts/test_files/risc_zero/fibonacci_proof_generator/fibonacci_id_2_0.bin \ |
| 57 | + --public_input ../../scripts/test_files/risc_zero/fibonacci_proof_generator/risc_zero_fibonacci_2_0.pub \ |
| 58 | + --repetitions 3968 \ |
| 59 | + --private_key 0x4bbbf85ce3377467afe5d46f804f221813b2bb87f24d81f60f1fcdbf7cbf4356 |
| 60 | +``` |
| 61 | + |
| 62 | +4. Modify the `proofs_per_chunk` in `config-files/config-proof-aggregator-ethereum-package.yaml` to `128`. |
| 63 | +5. Run the aggregator with time: |
| 64 | + |
| 65 | +```shell |
| 66 | +time make start_proof_aggregator_gpu_ethereum_package AGGREGATOR=sp1 |
| 67 | +time make start_proof_aggregator_gpu_ethereum_package AGGREGATOR=risc0 |
| 68 | +``` |
20 | 69 |
|
21 | 70 | --- |
22 | 71 |
|
|
0 commit comments