r/opencode • u/pasteldebytes • 7h ago
opencode v2.3.0 changed tps calculations, making it look faster. it now uses the same approach than DSH
TLDR: since v2.3.0 (Nov 13, 2026), OpenCode's TUI and Desktop measure tok/s from the **first streamed token** to the end of the stream. Before, they measured from **request dispatch** to the end of the stream. The label is still `tok/s`, but the metric changed. Numbers from before and after mid-November are not apples-to-apples.
Same label, different metric. Here's what changed:
Old: Σ(output + reasoning) / Σ(streamed - created)New:Σ(output + reasoning) / Σ(streamed - firstToken)
TTFT (queueing + prefill) no longer counts as generation time. According to the PR, the old formula put OpenCode's tok/s 2–3x below the DeepSeek harness for the same backend; the new formula matches that harness.
Short answers change a lot; long ones converge. On ~20.8k recorded steps, the old window was 1.75x longer at the median and 4.59x at p90.
Here's some local changes on calc on my tests:
old -> new:28 -> 221 tok/s31 -> 18261 -> 12693 -> 113
Timeline:
- Nov 11: [PR #63321](https://github.com/anomalyco/opencode/pull/63321) merged. - Nov 13: shipped in v2.3.0 (TUI + Desktop).
- v2.3.1 (Nov 18): [PR #63759](https://github.com/anomalyco/opencode/pull/63759) removed the TTFT display from the TUI footer; tok/s stayed decode-based.
- Changelog line: "Session throughput is now measured from the first streamed token"
View all comments
2
u/Tarquinen 6h ago
This is slop measuring this way is correct