-
Notifications
You must be signed in to change notification settings - Fork 391
docs(aggregation_mode): upload benchmarks #1972
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 3 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,109 @@ | ||
| # Aggregation Mode Benchmark Results | ||
|
|
||
| ## Machine Specifications | ||
|
|
||
| - **GPU**: NVIDIA RTX 3090 (24GB VRAM) | ||
| - **RAM**: 32GB | ||
| - **CPU**: AMD EPYC 7443 (24-Core) | ||
| - **Operating System**: Ubuntu | ||
|
|
||
| ## Benchmark Setup | ||
|
|
||
| - **Total Proofs**: 3968 | ||
| - **Proofs per Chunk**: 128 | ||
| - **Total Chunks**: 32 | ||
|
|
||
| ### Notes | ||
|
|
||
| - The total number of proofs (3968) is the **maximum that can be aggregated in a single run**, limited by blob capacity. | ||
| - Increasing the **proofs per chunk** generally improves performance, but requires **more powerful hardware** to avoid out of memory. | ||
| - In this benches the Aligned infrastructure was setup locally in the same machine using `ethereum-package`. | ||
|
|
||
| ## Reproduce it | ||
|
|
||
| The step by step to run the benchmarks: | ||
|
|
||
| 1. Deploy aligned infrastructure locally with `ethereum-package`. | ||
MarcosNicolau marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| 2. Fund a wallet on aligned, for example with rich account number 7: | ||
MarcosNicolau marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| ```shell | ||
| cargo run --release -- deposit-to-batcher \ | ||
MarcosNicolau marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
MarcosNicolau marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| --network devnet \ | ||
| --private_key 0x4bbbf85ce3377467afe5d46f804f221813b2bb87f24d81f60f1fcdbf7cbf4356 \ | ||
| --amount 1ether | ||
| ``` | ||
|
|
||
| 3. Send `3968` fibonacci proofs for `Risc0` and `Sp1`: | ||
|
|
||
| ```shell | ||
| cd batcher/aligned | ||
MarcosNicolau marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ## Send SP1 Proofs | ||
| cargo run --release -- submit \ | ||
MarcosNicolau marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| --proving_system SP1 \ | ||
| --proof ../../scripts/test_files/sp1/sp1_fibonacci_5_0_0.proof \ | ||
| --vm_program ../../scripts/test_files/sp1/sp1_fibonacci_5_0_0.elf \ | ||
| --repetitions 1000 \ | ||
MarcosNicolau marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| --private_key 0x4bbbf85ce3377467afe5d46f804f221813b2bb87f24d81f60f1fcdbf7cbf4356 \ | ||
| --instant_fee_estimate \ | ||
| --network devnet \ | ||
| --random_address | ||
|
|
||
| ## Send Risc0 Proofs | ||
| cargo run --release -- submit \ | ||
MarcosNicolau marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| --proving_system Risc0 \ | ||
| --proof ../../scripts/test_files/risc_zero/fibonacci_proof_generator/risc_zero_fibonacci_2_0.proof \ - | ||
| --vm_program ../../scripts/test_files/risc_zero/fibonacci_proof_generator/fibonacci_id_2_0.bin \ | ||
| --public_input ../../scripts/test_files/risc_zero/fibonacci_proof_generator/risc_zero_fibonacci_2_0.pub \ | ||
| --repetitions 3968 \ | ||
| --private_key 0x4bbbf85ce3377467afe5d46f804f221813b2bb87f24d81f60f1fcdbf7cbf4356 | ||
| ``` | ||
|
|
||
| 4. Modify the `proofs_per_chunk` in `config-files/config-proof-aggregator-ethereum-package.yaml` to `128`. | ||
| 5. Run the aggregator with time: | ||
|
|
||
| ```shell | ||
| time make start_proof_aggregator_gpu_ethereum_package AGGREGATOR=sp1 | ||
| time make start_proof_aggregator_gpu_ethereum_package AGGREGATOR=risc0 | ||
| ``` | ||
|
|
||
| --- | ||
|
|
||
| ## RISC Zero (Risc0) | ||
|
|
||
| - **Start Time**: 14:28:36 | ||
| - **Aggregation Start**: 14:33:32 | ||
| - **End Time**: 16:46:28 | ||
|
|
||
| **Performance Summary:** | ||
|
|
||
| - **Verification Time (Start to Aggregation Start)**: **4 minutes 56 seconds** | ||
MarcosNicolau marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| - **Aggregation Time (Agg to End)**: **132.93 minutes** | ||
MarcosNicolau marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| - **Total Time (Start to End)**: **137.87 minutes** | ||
MarcosNicolau marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| --- | ||
|
|
||
| ## SP1 | ||
|
|
||
| - **Start Time**: 21:52:55 | ||
| - **Aggregation Start**: 22:26:40 | ||
| - **End Time**: 23:24:42 | ||
|
|
||
| **Performance Summary:** | ||
|
|
||
| - **Verification Time (Start to Aggregation Start)**: **33 minutes 45 seconds** | ||
MarcosNicolau marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| - **Aggregation Time (Agg to End)**: **31 minutes 47 seconds** | ||
MarcosNicolau marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| - **Total Time (Start to End)**: **92 minutes** | ||
MarcosNicolau marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| --- | ||
|
|
||
| ## Comparison Summary | ||
|
|
||
| | | Risc0 | SP1 | | ||
| | ----------------- | ------------ | ------------- | | ||
| | Verification Time | 4 min 56 sec | 33 min 45 sec | | ||
| | Aggregation Time | 132.93 min | 31 min 47 sec | | ||
| | Total Time | 137.87 min | 92 min | | ||
|
|
||
| > **Note**: | ||
| > SP1 longer verification time is due to the big overhead in setting up the prover client to verify the proof when it is fetched. | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.