ttfp

command
v0.3.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 23 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL