Skip to content

feat(perf): report streaming latency dimensions - #244

Merged
MisterVVP merged 1 commit into
mainfrom
dev-add-streaming-latency-metrics-to-report
Sep 13, 2026
Merged

MisterVVP merged 1 commit into
mainfrom
dev-add-streaming-latency-metrics-to-report

Conversation

@MisterVVP

@MisterVVP MisterVVP commented Sep 12, 2026 •

Copy link
Copy Markdown
Owner

Motivation

  • The human-readable Markdown summary omitted streaming-specific metrics (first-event and stream-completion latency) that are present in results.json/results.csv, producing ambiguous rollups where total operation latency dominated first-event scenarios.
  • Make streaming latency dimensions visible and unambiguous while preserving existing JSON/CSV compatibility.

Description

  • Add named constants for streaming fields and preserve JSON/CSV schema by using FIRST_EVENT_LATENCY_FIELD = "first_event_latency_ms" and STREAM_COMPLETION_LATENCY_FIELD = "stream_completion_latency_ms".
  • Extend the detailed Markdown matrix to label total operation latency explicitly and add columns for first-event p50/p95 and completion p50/p95, rendering missing streaming dimensions as n/a instead of 0.
  • Add format_latency_percentile helper and a collapsible append_streaming_latency_rollup section that reports total p95, first-event p50/p95, and completion p50/p95 for streaming rows.
  • Add unit tests verifying mixed unary/streaming summaries and handling of independently present streaming fields, and update docs to document the new rollup and n/a behavior.

@MisterVVP MisterVVP added the codex Automatic label added by codex agent. Should not be used label Sep 12, 2026 — with ChatGPT Codex Connector
@MisterVVP MisterVVP self-assigned this Sep 12, 2026
@MisterVVP MisterVVP added AI agent AI agent contribution and removed codex Automatic label added by codex agent. Should not be used labels Sep 12, 2026
@MisterVVP
MisterVVP marked this pull request as ready for review September 13, 2026 10:45
@MisterVVP
MisterVVP merged commit 0c3d302 into main Sep 13, 2026
19 checks passed
@MisterVVP
MisterVVP deleted the dev-add-streaming-latency-metrics-to-report branch September 13, 2026 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI agent AI agent contribution maintenance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant