-
Notifications
You must be signed in to change notification settings - Fork 0
Benches #19
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
Benches #19
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds comprehensive benchmarking infrastructure to measure performance and energy consumption of cryptographic operations. It introduces both Criterion-based performance benchmarks and energy-aware benchmarks for base primitives and distributed system operations.
Changes:
- Added benchmark implementations for base ElGamal operations (encrypt, decrypt, rerandomize, reshuffle, rekey, etc.)
- Added distributed transcryption benchmarks with individual and batch processing modes
- Configured GitHub Actions workflow to run benchmarks on CI with artifact upload
- Added development dependencies (criterion, energy-bench) and benchmark target configurations
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 9 comments.
Show a summary per file
| File | Description |
|---|---|
| benches/base.rs | Criterion benchmarks for base cryptographic primitives using proper batched setup |
| benches/energy_base.rs | Energy consumption benchmarks for base operations with 10,000 iterations per test |
| benches/distributed.rs | Criterion benchmarks for distributed transcryption with utility functions and configuration constants |
| benches/energy_distributed.rs | Energy benchmarks for distributed operations using shared utilities from distributed.rs |
| Cargo.toml | Added benchmark dependencies and configurations for four benchmark targets |
| .github/workflows/benchmark.yml | CI workflow for running benchmarks with separate jobs for regular and energy benchmarks |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
No description provided.