Skip to content

[Performance]: Show first-event and stream-completion latency in Markdown performance reports #166

Closed

Description

@MisterVVP

Proposal

Problem

results.json and results.csv include streaming-specific metrics:

  • first_event_latency_ms
  • stream_completion_latency_ms

The generated Markdown summary prints only generic operation p50/p95/p99/max values.

This is misleading for scenarios such as SubscribeToTask_FirstEventLatency. The scenario rollup name suggests first-event latency, but its reported worst p95 can be dominated by total completion latency. In the latest artifact, gRPC first-event p95 is below 0.7 ms for most rows while generic/total p95 is about 51–56 ms.

Goal

Make streaming latency dimensions visible and unambiguous in the human-readable report.

Scope

  • Add first-event p50/p95 and completion p50/p95 columns to detailed Markdown rows when present.
  • Add a streaming-specific rollup section or scenario-aware rollup.
  • Avoid displaying zero as a real streaming latency for non-streaming rows; use an empty cell or n/a.
  • Clearly distinguish:
    • total operation latency;
    • first-event latency;
    • stream-completion latency.
  • Preserve current JSON and CSV compatibility.
  • Add tests for mixed streaming and non-streaming summaries.

Acceptance criteria

  • Markdown detailed rows show first-event and completion metrics for streaming scenarios.
  • SubscribeToTask_FirstEventLatency rollup explicitly reports first-event latency.
  • Finite-stream rollups expose completion latency.
  • Non-streaming rows remain readable and do not show misleading zero values.
  • JSON and CSV formats remain backward compatible.
  • Renderer tests cover missing and present streaming fields.
  • CI summary remains compact enough to scan.

Evidence

Performance CI run 29840589229, artifact 8499875367, contains the required metrics in JSON/CSV but not in summary.md.

Activity

  1. added
    enhancement
    performance
    and removed
    enhancement
    on Jul 22, 2026
  2. moved this from Todo to In Progress in a2a-cpp SDK Roadmapon Sep 12, 2026
  3. self-assigned this
    on Sep 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

performance

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions