@djoeyg/pi-tps0.1.0
Output tokens per second on the working spinner and footer status
Untested on omp
This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.
Reports 0
No reports yet.
Readme
pi-tps
Shows output tokens per second for assistant responses.
- While streaming: the working row reads
⠋ Working - 42.3 T/s, estimated from streamed characters (~4 chars/token) and refreshed every 250ms. - When a message ends: the rate is recomputed from the provider-reported
usage.outputand kept in the footer status.
The clock starts at the first streamed content event, so time-to-first-token is excluded and the figure reflects decode speed. Models that reason silently (no thinking deltas streamed) will read high, since their reasoning tokens count toward usage.output but the clock starts late.
Install
pi install npm:@djoeyg/pi-tps