feat: Add comprehensive benchmark suite for RPC performance testing#42
Open
feat: Add comprehensive benchmark suite for RPC performance testing#42
Conversation
Add a full-featured benchmark suite to measure and analyze callosum RPC performance across multiple dimensions: - Throughput benchmarks: payload size scaling, client concurrency, scheduler comparison - Latency benchmarks: load testing, payload size impact, tail latency - Feature overhead: compression and authentication impact The suite includes: - CLI interface for running benchmarks - Console and HTML reporters with detailed metrics - CPU profiling (cProfile) and memory tracking (tracemalloc) - Statistical analysis with percentiles and confidence intervals - Configurable scenarios with warmup and multi-iteration support Also removes unused imports from lower transport modules.
- Add partial report saving on interrupt/error in CLI and runner - Add BenchmarkInterrupted exception for graceful shutdown handling - Add signal handler for SIGINT to allow graceful interruption - Fix DummyServerAuthenticator.check_client() to return user_id (required by ZAPServer for successful CURVE authentication) - Add _run_single_scenario() for individual scenario error handling - Continue running remaining scenarios even if one fails - Track and report failed scenarios separately
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.
resolves lablup/backend.ai#184
Summary
Benchmark Scenarios
Throughput:
Latency:
Feature Overhead:
Usage
Test plan
uv run mypy benchmarks/uv run python -m benchmarks --scenario throughput