Skip to content

Complete wire streaming performance metrics - #148

Merged
MisterVVP merged 1 commit into
dev-add-sse-streaming-support-to-clientsfrom
dev-complete-wire-level-streaming-performance-coverage
Jul 14, 2026
Merged

MisterVVP merged 1 commit into
dev-add-sse-streaming-support-to-clientsfrom
dev-complete-wire-level-streaming-performance-coverage

Conversation

@MisterVVP

@MisterVVP MisterVVP commented Jul 14, 2026 •

Copy link
Copy Markdown
Owner

Motivation

  • Enable full wire-level streaming performance coverage for SendStreamingMessage_FiniteStream and SubscribeToTask_FirstEventLatency across gRPC, HTTP+JSON and JSON-RPC and capture wire-level streaming metrics (event counts, first-event latency, completion latency).

Description

  • Record streaming metrics by extending ScenarioResult with event_count, first_event_latencies, and completion_latencies, and add an OperationOutcome return type for streaming-aware operations in RunMeasuredScenario (tests/performance/a2a_performance_driver.h).
  • Collect first-event and completion timestamps in the wire observer and return those values from ExecuteWireStreaming and ExecuteWireSubscribeFirstEvent (tests/performance/a2a_wire_performance_driver.cpp).
  • Emit streaming metrics into JSON report objects and add first-event / stream-completion latency columns to generated CSV output (tests/performance/a2a_performance_common.cpp, scripts/performance_runner.py).
  • Update performance runner tests to assert streaming rows include event_count, first_event_latency_ms, and stream_completion_latency_ms and CSV headers (tests/scripts/performance_runner_test.py).
  • Add a small helper to simplify a JSON-RPC streaming unit test and reduce cognitive complexity for clang-tidy (tests/unit/json_rpc_transport_test.cpp).
  • Update documentation to reflect that finite streaming and first-event subscription are covered on all wire transports and that streaming rows record event counts and latency histograms (docs/performance-testing.md).

@MisterVVP MisterVVP added the AI agent AI agent contribution label Jul 14, 2026 — with ChatGPT Codex Connector
@MisterVVP MisterVVP self-assigned this Jul 14, 2026
@MisterVVP MisterVVP added the performance Performance improvement related tasks based on benchmark results. Performance tests changes. label Jul 14, 2026
@MisterVVP MisterVVP linked an issue Jul 14, 2026 that may be closed by this pull request
9 tasks
@MisterVVP
MisterVVP marked this pull request as draft July 14, 2026 07:15
@MisterVVP

Copy link
Copy Markdown
Owner Author

@codex review this PR

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep it up!

Reviewed commit: 6a692777a7

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@MisterVVP
MisterVVP marked this pull request as ready for review July 14, 2026 11:28
@MisterVVP
MisterVVP merged commit c29f4f2 into dev-add-sse-streaming-support-to-clients Jul 14, 2026
16 checks passed
@MisterVVP
MisterVVP deleted the dev-complete-wire-level-streaming-performance-coverage branch July 14, 2026 11:28
@github-project-automation github-project-automation Bot moved this from Todo to Done in a2a-cpp SDK Roadmap Jul 14, 2026
MisterVVP added a commit that referenced this pull request Jul 19, 2026
### Motivation

- Enable full wire-level streaming performance coverage for
`SendStreamingMessage_FiniteStream` and
`SubscribeToTask_FirstEventLatency` across gRPC, HTTP+JSON and JSON-RPC
and capture wire-level streaming metrics (event counts, first-event
latency, completion latency).

### Description

- Record streaming metrics by extending `ScenarioResult` with
`event_count`, `first_event_latencies`, and `completion_latencies`, and
add an `OperationOutcome` return type for streaming-aware operations in
`RunMeasuredScenario` (`tests/performance/a2a_performance_driver.h`).
- Collect first-event and completion timestamps in the wire observer and
return those values from `ExecuteWireStreaming` and
`ExecuteWireSubscribeFirstEvent`
(`tests/performance/a2a_wire_performance_driver.cpp`).
- Emit streaming metrics into JSON report objects and add first-event /
stream-completion latency columns to generated CSV output
(`tests/performance/a2a_performance_common.cpp`,
`scripts/performance_runner.py`).
- Update performance runner tests to assert streaming rows include
`event_count`, `first_event_latency_ms`, and
`stream_completion_latency_ms` and CSV headers
(`tests/scripts/performance_runner_test.py`).
- Add a small helper to simplify a JSON-RPC streaming unit test and
reduce cognitive complexity for `clang-tidy`
(`tests/unit/json_rpc_transport_test.cpp`).
- Update documentation to reflect that finite streaming and first-event
subscription are covered on all wire transports and that streaming rows
record event counts and latency histograms
(`docs/performance-testing.md`).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI agent AI agent contribution performance Performance improvement related tasks based on benchmark results. Performance tests changes.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[Perf]: Complete wire-level streaming performance coverage

1 participant