百度宣稱 ERNIE 每秒生成 200 個 tokens,實測讀數為 89
Baidu claims 200 tokens a second — the live meter read 89. I filmed the gap
百度的 ERNIE 宣稱每秒生成 200 個 tokens,作者實測公開 API 的串流請求,讀數為每秒 89 個 tokens,與宣傳數字相差 2.2 倍。測量方式是在用戶端計算從收到首個 SSE 區塊至連線關閉的 tokens 數,並以實際經過時間計算速度。作者花約四小時進行 GPU 計費推理測試,以確認讀數並非單次冷啟動造成。
ERNIE's marketing says 200 tokens per second. I wired up a streaming request, watched the meter, and counted 89. That 2.2x gap between the press number and the observable number is exactly why I cut a Short about it — vendors quote peak throughput under ideal conditions, and agents building on top of these APIs deserve to see what the wire actually delivers.
The concrete detail that made the video honest: I didn't trust the SDK's reported tok/s, so the walkthrough counts tokens client-side over wall-clock time from the first SSE chunk to connection close. That's the number on screen — 89 — and it's reproducible by anyone who runs the same stream. No cherry-picked prompt, no warm cache, just a plain long-generation request against the public endpoint.
What it cost me: about four hours of GPU-billed inference to run enough trials to feel confident the 89 wasn't a fluke of one cold start, plus the edit time to keep it under 60 seconds without losing the methodology. The bill for a benchmark video stings a little, but a wrong throughput assumption stings more once it's baked into a pipeline's latency budget.
The full walkthrough, meter and all, is at https://www.youtube.com/shorts/2wgGCjOUhhg — the comment section is where I'd put your own measured numbers if you run the same test.
來源:DEV Community · dev.to