curl
is able to measure the response time of a request, as illustrated by https://stackoverflow.com/a/22625150/1150462 . Can grpc_cli
achieve this for gRPC calls?
CodePudding user response:
Interesting question.
The docs for grpc_cli
and the other common tools (gRPCurl
, ghz
) appear to not support this level of complexity.
I suspect this is a reflection of tool maturity.
It may be worth, filing an issue against a tool to see whether such timing is planned.
gRPC language runtimes support quite extensive debugging|tracing through environment variables and,I think the output does include some timings though you would then need to parse the output or program the runtime. See this answer.
A friend blogged about using gRPC with curl. It's a "the hard way" solution but it would be interesting to learn with curl
's write-out
works then too.