[FEATURE]: Adding Experimental Calculation and Display of Tokens per second #3824

Open
opened 2026-02-16 17:41:35 -05:00 by yindo · 8 comments
Owner

Originally created by @OpeOginni on GitHub (Dec 24, 2025).

Originally assigned to: @rekram1-node on GitHub.

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Would be nice to show TPS per message response

Originally created by @OpeOginni on GitHub (Dec 24, 2025). Originally assigned to: @rekram1-node on GitHub. ### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request Would be nice to show TPS per message response
yindo added the discussionperf labels 2026-02-16 17:41:35 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 24, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #6026: Option to always show context tokens/percentage in header or footer
  • #5892: Show context usage in OpenCode Desktop (Desktop app context usage indicator)
  • #4925: Display total cost for session (monitoring overall session metrics)

These existing feature requests are related to displaying and monitoring session metrics like tokens, context usage, and cost. The TPS (tokens per second) feature you're requesting would fit well alongside these metrics. Feel free to ignore if TPS per message is specifically different from what these issues address.

@github-actions[bot] commented on GitHub (Dec 24, 2025): This issue might be a duplicate of existing issues. Please check: - #6026: Option to always show context tokens/percentage in header or footer - #5892: Show context usage in OpenCode Desktop (Desktop app context usage indicator) - #4925: Display total cost for session (monitoring overall session metrics) These existing feature requests are related to displaying and monitoring session metrics like tokens, context usage, and cost. The TPS (tokens per second) feature you're requesting would fit well alongside these metrics. Feel free to ignore if TPS per message is specifically different from what these issues address.
Author
Owner

@ImTheSpyke commented on GitHub (Dec 30, 2025):

Agree !

@ImTheSpyke commented on GitHub (Dec 30, 2025): Agree !
Author
Owner

@juzi5201314 commented on GitHub (Jan 10, 2026):

+1

@juzi5201314 commented on GitHub (Jan 10, 2026): +1
Author
Owner

@JaredP94 commented on GitHub (Jan 14, 2026):

+1

@JaredP94 commented on GitHub (Jan 14, 2026): +1
Author
Owner

@Hicsy commented on GitHub (Jan 23, 2026):

related?
https://github.com/anomalyco/opencode/issues/5374

@Hicsy commented on GitHub (Jan 23, 2026): related? https://github.com/anomalyco/opencode/issues/5374
Author
Owner

@petercunha commented on GitHub (Feb 8, 2026):

I would like this

@petercunha commented on GitHub (Feb 8, 2026): I would like this
Author
Owner

@JohnCode-Dev commented on GitHub (Feb 10, 2026):

For anyone following this — I took a stab at implementing it in #12721. Per-message TPS shows up in the response footer, calculated from first output token to completion. Short responses (<250ms), tool calls, and errors are filtered out to keep the numbers meaningful.

Left out session-level averages for now to keep scope tight, but the timestamps are persisted so adding that later should be straightforward. Happy to hear thoughts!

@JohnCode-Dev commented on GitHub (Feb 10, 2026): For anyone following this — I took a stab at implementing it in #12721. Per-message TPS shows up in the response footer, calculated from first output token to completion. Short responses (<250ms), tool calls, and errors are filtered out to keep the numbers meaningful. Left out session-level averages for now to keep scope tight, but the timestamps are persisted so adding that later should be straightforward. Happy to hear thoughts!
Author
Owner

@JohannesFerner commented on GitHub (Feb 10, 2026):

+1

@JohannesFerner commented on GitHub (Feb 10, 2026): +1
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3824