Skip to content

feat: implement risc0 ere based benchmarks #24

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

Merged

Conversation

brech1
Copy link
Member

@brech1 brech1 commented Aug 6, 2025

Description

This PR introduces a new RISC0 ere-based benchmark for SHA-256 and refactors with compatible changes the existing Provekit suite.

Changes

  • Added a RISC0 guest and host runner for SHA-256 benchmarking.
  • Added .csv to .gitignore to exclude benchmark result files.
  • Updated the memory usage calculation in the benchmark utils.
  • Fixes current risc0 crate import issue.

Results

Initial benchmark results for the new RISC0 SHA-256 implementation are included below:

input_size proof_duration verify_duration cycles proof_size peak_memory
256B 12.36s 13.4ms 27.7K 218KB 732.8MB
512B 24.29s 13ms 50.9K 218KB 1.09GB
1KB 24.41s 13ms 97.5K 218KB 1.13GB
2KB 33.14s 13ms 190.6K 218KB 2.34GB
4KB 1:06 13.2ms 376.8K 218KB 4.44GB

@brech1 brech1 requested review from guorong009 and alxkzmn August 6, 2025 20:16
@brech1
Copy link
Member Author

brech1 commented Aug 7, 2025

I removed provekit update from the PR

@alxkzmn alxkzmn merged commit c92c801 into privacy-scaling-explorations:CSP-Q3-2025 Aug 11, 2025
1 check failed
@brech1 brech1 deleted the feat/risc0-ere branch August 11, 2025 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants