Repository navigation
Open
Labels
enhancementNew feature or requestmaintenanceperformancePerformance improvement related tasks based on benchmark results. Performance tests changes.
Milestone
Description
Proposal
Goal
Make the performance and resource differences between synchronous and async I/O
SDK usage visible in the existing performance tables and CI summaries.
Scope
- Extend
scripts/performance_runner.pyand the existing performance drivers;
reuseasync_unary_benchmarkwhere useful. - Exercise native async gRPC and event-driven HTTP/SSE with
A2A_ENABLE_ASIO=ON. Enabling the build flag alone does not demonstrate that
a workload uses async I/O. - Start with in-memory unary operations, finite streams, and subscriptions over
gRPC, HTTP+JSON, and JSON-RPC, using existing concurrency levels. - Identify client and server execution modes separately. Compare servers with
the same client first; label async-client measurements independently. - Use the same revision, Release configuration, payloads, backend work, request
counts, and resource budgets. Record CPU placement and limits, keep driver
load from starving the server, and repeat measurements before comparing medians. - Distinguish native coroutine execution from blocking-adapter execution. Keep
in-process measurements separate from wire transport comparisons.
Reporting and CI
- Add execution-mode fields to the existing JSON/CSV results and enrich the
existing Markdown tables with adjacent sync/async results and explicit ratios. - Show throughput, p95/p99 latency, operation errors, and CPU/thread/memory usage
where available. Preserve existing streaming latency measurements. - Run both modes within the existing performance jobs in
.github/workflows/ci.yml; append the comparisons to the same job summaries
and upload them with the existing performance artifacts. - Update the existing guides under
book/src/performance/with the local command
and a short explanation of the comparison columns.
Acceptance criteria
- One existing runner invocation produces clearly labeled, comparable sync and
async results in the current report formats. - CI displays both modes together, including gains, parity, regressions, and
resource differences. Unmatched cases are shown as unavailable. - Failed or incomplete operations fail validation and cannot appear as speedups.
- Comparisons start report-only; speed thresholds can follow once CI variance is
understood. Existing unrelated checks retain their current behavior. - No separate benchmark framework, parallel report pipeline, or PostgreSQL
storage redesign is introduced.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestmaintenanceperformancePerformance improvement related tasks based on benchmark results. Performance tests changes.
Type
Projects
- StatusShow more project fieldsIn Progress
Activity
perf(async): compare warmed client/server APIs under sustained load (#…