Skip to content

[Feature]: Extend existing performance tests with sync vs async I/O comparisons #332

Open

Description

@MisterVVP

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.py and the existing performance drivers;
    reuse async_unary_benchmark where 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.

Activity

  1. added this to the v0.6.0 milestone on Nov 12, 2026
  2. self-assigned this
    on Nov 12, 2026
  3. added
    enhancement
    performance
    on Nov 12, 2026
  4. moved this from Todo to In Progress in a2a-cpp SDK Roadmapon Nov 12, 2026
  5. added a commit that references this issue on Nov 12, 2026
    2e3f388
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementmaintenanceperformance

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions