Skip to content

perf(bench): compare async SendMessage task creation - #336

Merged
MisterVVP merged 1 commit into
perf/grpc-client-streamingfrom
perf/async-client-send-message-benchmark
Nov 19, 2026
Merged

MisterVVP merged 1 commit into
perf/grpc-client-streamingfrom
perf/async-client-send-message-benchmark

Conversation

@MisterVVP

@MisterVVP MisterVVP commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Add callback-driven SendMessage_CreateTask alongside the synchronous API. Both require a task ID, and each async lane keeps one call in flight.
  • Start each client/server comparison on a fresh in-memory SUT. Warm each measured client with one task, wait for completion, and reuse its connection for measurement.
  • Add a fixed-count CI step to the existing performance artifact and label wire streams and subscriptions observer in JSON, CSV, and Markdown.

Local task-creation results

The hosted performance job passed the 24-wire-row check and uploaded the report. CI performance artifact

The local Release run also produced 24 wire rows, 2,000 measured requests per row, and zero errors. All 12 fixed-client server comparisons were valid. Each cell lists ops/s · p50/p99 in ms from a single pass on a shared host while local analysis was running.

Transport Concurrency Sync client / sync server Sync client / async server Async client / sync server Async client / async server
grpc 1 4,614 · 0.214/0.316 3,856 · 0.242/0.669 3,978 · 0.227/1.004 3,632 · 0.263/0.565
grpc 64 13,367 · 4.129/9.097 11,960 · 4.775/12.000 11,568 · 4.893/11.364 14,074 · 4.403/7.754
jsonrpc 1 2,026 · 0.470/1.034 1,598 · 0.545/2.924 2,188 · 0.457/0.545 1,542 · 0.543/2.765
jsonrpc 64 15,751 · 2.737/26.392 9,514 · 5.509/26.867 18,420 · 3.093/9.034 10,583 · 5.623/12.290
http_json 1 2,817 · 0.349/0.657 2,335 · 0.410/0.906 2,579 · 0.349/1.425 1,997 · 0.423/2.617
http_json 64 20,397 · 2.142/19.636 13,050 · 3.628/33.597 17,848 · 2.683/10.170 14,231 · 3.826/13.989

HTTP/JSON server follow-up

In the earlier concurrency-one HTTP/JSON GetTask run, holding the async client fixed, p50 rose from 179 µs on the sync server to 231 µs on the async server, a gap of 52 µs (29%). Earlier GetTask comparison

Start the server investigation with the network-to-application, application-to-dispatcher, and response-to-network handoffs in the HTTP unary path.

Validation

  • ./scripts/verify_changes.sh and ./scripts/run_clang_tidy.sh build both exited successfully. The clean Asio Debug build and CTest completed with zero failures across 1,135 registered tests. Three tests were skipped by CTest.
  • CI-equivalent clang-format, changed-file Clang 19 analysis, actionlint, mdBook, and the 54-row performance smoke passed.
  • Ubuntu's installed-package security check found no pending security updates. OSV returned no matches for the Boost.Asio and simdjson releases used in final verification. Local TCK was skipped at the maintainer's request, and hosted TCK passed. Full local clang-tidy finished after the authorized push.

AI authorship

An AI agent generated the submitted code, tests, workflow, and documentation from the maintainer-approved plan.

@MisterVVP MisterVVP self-assigned this Nov 19, 2026
@MisterVVP MisterVVP added AI agent AI agent contribution performance Performance improvement related tasks based on benchmark results. Performance tests changes. labels Nov 19, 2026
@MisterVVP
MisterVVP marked this pull request as ready for review November 19, 2026 15:48
@MisterVVP
MisterVVP merged commit e3a0a48 into perf/grpc-client-streaming Nov 19, 2026
50 of 54 checks passed
@MisterVVP
MisterVVP deleted the perf/async-client-send-message-benchmark branch November 19, 2026 15:49
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

None yet

Development

Successfully merging this pull request may close these issues.

1 participant