Skip to content

Split transport benchmarks into component-level microbenchmarks - #200

Merged
MisterVVP merged 3 commits into
mainfrom
dev-split-transport-benchmarks-into-components
Aug 10, 2026
Merged

MisterVVP merged 3 commits into
mainfrom
dev-split-transport-benchmarks-into-components

Conversation

@MisterVVP

@MisterVVP MisterVVP commented Aug 10, 2026 •

Copy link
Copy Markdown
Owner

Motivation

  • High-level transport benchmarks mixed multiple hotspots (parsing, routing, proto/JSON conversion, task projection, response building) making it hard to prioritize optimizations.
  • Provide smaller, focused component benchmarks so roadmap optimizations can be tracked against targeted microbenchmarks.

Description

  • Added JSON-RPC component benchmarks: BM_JsonRpcEnvelope_ParseOnly and BM_JsonRpcEnvelope_SerializeOnly, and exposed JsonRpcServerTransport::ParseEnvelope and SerializeSuccessEnvelope for isolated measurement. (changes under benchmarks/bench_json_rpc_transport.cpp and include/a2a/server/json_rpc_server_transport.h/src/server/json_rpc_server_transport.cpp).
  • Added protobuf-to-JSON benchmarks for response shapes (send message, task, task list, stream response, push config, push config list, agent card) under benchmarks/bench_protojson.cpp and corresponding threshold entries in benchmarks/thresholds.json.
  • Added REST component benchmarks for query parsing and HTTP response building: BM_RestQueryParser_ParseOnly and BM_RestResponseBuilder_BuildOnly, and exposed RestServerTransport::ParseQueryString and ToHttpResponse for measurement (benchmarks/bench_rest_transport.cpp, include/a2a/server/rest_server_transport.h, src/server/rest_server_transport.cpp).
  • Grouped CI benchmark Markdown output by component by updating the Go runner report generator (tools/bench_runner/internal/report/markdown.go) and tests (markdown_test.go), and updated benchmarks/README.md to document component grouping and coverage.
  • Fixed a test-only build-time issue by guarding a PostgreSQL-only helper with #ifdef A2A_ENABLE_POSTGRES_STORE in tests/store_conformance/store_conformance_test.cpp.

@MisterVVP MisterVVP added the codex Automatic label added by codex agent. Should not be used label Aug 10, 2026 — with ChatGPT Codex Connector
@MisterVVP MisterVVP added AI agent AI agent contribution and removed codex Automatic label added by codex agent. Should not be used labels Aug 10, 2026
@MisterVVP MisterVVP linked an issue Aug 10, 2026 that may be closed by this pull request
@MisterVVP MisterVVP linked an issue Aug 10, 2026 that may be closed by this pull request
@MisterVVP MisterVVP self-assigned this Aug 10, 2026
@MisterVVP
MisterVVP merged commit 7e482c5 into main Aug 10, 2026
18 checks passed
@MisterVVP
MisterVVP deleted the dev-split-transport-benchmarks-into-components branch August 10, 2026 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI agent AI agent contribution

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Add benchmark decomposition for REST and JSON-RPC paths

1 participant