feat(test-suite): gw reliable benchmark #923
Merged
eudelins-zama merged 4 commits intomainfrom Oct 2, 2025
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR implements a reliable benchmarking feature for the gateway stress test tool. The benchmark functionality can run multiple decryption bursts with configurable parameters and collect performance metrics.
- Adds a new
benchmarkCLI subcommand that takes CSV input files to define test parameters - Implements statistical analysis (mean, standard deviation) of latency and throughput metrics
- Refactors existing burst functions to return structured performance results instead of just logging
Reviewed Changes
Copilot reviewed 12 out of 13 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| test-suite/gateway-stress/templates/small_bench.csv | Template CSV file with small benchmark configuration |
| test-suite/gateway-stress/templates/bench.csv | Template CSV file with comprehensive benchmark configuration |
| test-suite/gateway-stress/src/main.rs | Adds benchmark module import and subcommand handling |
| test-suite/gateway-stress/src/decryption/user.rs | Refactors user decryption to return performance metrics |
| test-suite/gateway-stress/src/decryption/public.rs | Refactors public decryption to return performance metrics |
| test-suite/gateway-stress/src/decryption/mod.rs | Adds BurstResult struct for performance data |
| test-suite/gateway-stress/src/cli.rs | Adds benchmark subcommand and arguments structure |
| test-suite/gateway-stress/src/bench.rs | New module implementing benchmark data structures and statistics |
| test-suite/gateway-stress/src/app.rs | Implements benchmark execution logic and refactors progress bar initialization |
| test-suite/gateway-stress/config/config.toml | Updates configuration values for testing |
| test-suite/gateway-stress/README.md | Documents the new benchmarking functionality |
| test-suite/gateway-stress/Cargo.toml | Adds csv dependency for benchmark file processing |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
b9651d7 to
e3d0afe
Compare
e3d0afe to
c2d73f2
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Closes https://github.com/zama-ai/fhevm-internal/issues/449