r/opencode • • 6h 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/s
31 -> 182
61 -> 126
93 -> 113

Timeline:

12 Upvotes

3 comments sorted by

11

u/retardedGeek 6h ago

It's technically TPS, they should show TTFT separately. TTFT can be so slow in opencode go

3

u/elzerouno 5h ago

I keep a benchmark (even tho I don't have an OC key right now): stats.alde.sh

2

u/Tarquinen 5h ago

This is slop measuring this way is correct