Documentation
¶
Overview ¶
Command ttfp measures B9: streamed chat time-to-first-progress, the delay between Google's first answer chunk and the MCP client's first progress notification for chat_ask.
go run ./bench/ttfp [-runs 30] [-check]
Method. As in bench/rss, the production stack (rpc transport, nlm client, MCP server) runs in this process against a local TLS HTTP/2 fake. The fake answers batchexecute reads from the live fixtures and streams the live GenerateFreeFormStreamed capture: it flushes everything up to and including the first chunk that carries answer text, notes the time, pauses, then sends the rest. The MCP client (in-memory transport, progress token set) notes when the first progress notification arrives. The difference is the server's own overhead; Google's time to that chunk is excluded by construction. The first run is dropped (token bootstrap, TLS handshake).