How fast is N tokens per second really?

mikeveerman.github.io

252 points by hexagr 3 days ago


charles_irl - 2 hours ago

Very cool!

> Unless you've actually watched tokens stream at those rates, the numbers are hard to internalize. This is the rendering.

I built something similar recently, for the same reason: https://modal.com/llm-almanac/token-timing-simulator.

I like that the output rendering is closer to typical UIs -- syntax highlighting in code mode, tool calls, dim-italic reasoning.

One feature mine has that the author, or anyone else who vibe codes their own version after seeing this, might like to steal is modeling the distribution of output latencies. My implementation is hacky (log-normal roughyl estimated from p50, p90, and p99 values), but still, when you set those to realistic values, it recreates the "jitter" you see in many LLM UIs.

antirez is right that generation tok/s isn't flat as a function of context length, which is a weakness of both simulators.

SXX - 4 hours ago

I think your demo need more realistic thinking logs because thinking usually burns at least 2x to 3x of tokens of the code and for harder tasks much more.

ricardobeat - 4 hours ago

It's interesting how even 5 tok/s is still much faster than you'd typically type, but feels glacially slow for an agent.

On the other hand, I've been using Mimo and Minimax a lot recently. They routinely reach 100-150 tokens per second and that feels too fast, to the point where it's hard to keep up with what it's actually doing. Great for subagents though.

jerf - 4 hours ago

I'm flashing back to using a 1200 baud modem when the world was on 28.8k. Modems are much more regular-looking, though, since each character is a character. Unless you count color changes and such, which you only really notice at 1200...

aurareturn - 4 hours ago

We truly are in the dial up era of GenAI.

Aurornis - 4 hours ago

Cool visualization, but most of the token generation in my sessions doesn't go to output code or even the text I see. Reasoning tokens make up most of the output. That can only occur after processing the input files and context.

For non-trivial work I go through hundreds of thousands of tokens (combined prefill + tg of course) before even getting to some useful text output.

I mostly use LLMs for exploration and studies, rarely code generation. Prefill matters heavily for this. Even in the high hundreds or low thousands prefill rate I spend a lot of time waiting on the LLM (doing other things, not twiddling thumbs)

unglaublich - 4 hours ago

30tok/s looks fine when you're just streaming code, but the issue is that there's a lot of background noise like tool-calling conventions, metadata, "thinking", etc.

antirez - 4 hours ago

Token/sec only makes sense once you tell me three four things:

1. decoding t/s, that is, when the model is generating text in the autoregressive fashion.

2. prefill t/s, that is, prompt processing speed.

3. What is the slope of those two numbers as the context size increases. An implementation that decodes at 50t/s with 2k context but decodes at 7t/s at 100k context is going to be a lot less useful that it seems at a first glance for a big number of real world use cases.

4. What's your use case? Reading a huge text and then having a small output like, fraud probability=12%? Or Reading a small question and generating a lot of text? This changes substantially if a model is usable based on its prefill/decoding speed.

For instance my DS4F inference on the DGX Spark does prefill at 350 t/s and at 200 t/s on already large contexts. But decodes at 13 t/s.

On the Mac Ultra the prefill is like 400 t/s and decoding 35 t/s.

The two systems can perform dramatically differently or almost the same based on the use case. In general for local inference to be acceptable, even if slow, you want at least 100 t/s prefill, at least 10 t/s generation. To be ok-ish from 200 to 400 t/s prefill, 15-25 t/s generation. To be a wonderful experience thousands of t/s prefill, 100 t/s generation.

adampzakaria - 4 hours ago

This is awesome!! I use Cursor and I've been trending towards medium thinking models as much as possible - I don't like the dev cadence with something like opus 4.7 (thinking: very high) (great for some tasks, like complex plans). Eventually I'd like to make my way to open models and open harness, and this tool or something like it could help me understand what performance I'd need for productive work - bookmarked!

bjelkeman-again - 5 hours ago

Interesting. It seems to me that with that speed (20-30) on local hardware the real issue is quality of output, not tokens per sec.

dinkleberg - 4 hours ago

This reminds me of when I signed up for cerebras to try it out and dumped $20 in and hooked it into opencode and the speed was truly insane. But my one session burnt through like $15 of that in seemingly a matter of minutes. I've since used those really high tok/s options for specific application use cases, but would not advise as a coding agent. Much harder to catch issues when it is moving a million miles an hour and then it is too late and it has already spent a ton of tokens.

flockonus - 3 hours ago

Curious about the other way around, how many tokens per second a productive developer codes in a day?

emehrkay - 4 hours ago

I just looked up what my computer is capable of (m2 MacBook Air) and it says 15-35 tokens per second. I could live with that writing code with a local model.

ohadron - 5 hours ago

This is great. Agentic coding at 600+ tokens/sec is going to be a radically different beast. Coming soon-ish?

johng - 3 days ago

Neat website, the visualization is great. I had a hard time wrapping my head around the tokens/s thing but this made it easy.

casey2 - 34 minutes ago

Not very far til we reach 1MTk/s per LLM. Computing is going to look very different in the future.

aurareturn - 4 hours ago

One thing I noticed is that prior to AI coding agents, I used to be able to tolerate 10 tokens/s. With AI Agents, I think 60 is minimum.

raverbashing - 5 hours ago

On avg 1 token = 4 chars

So 75 tokens/s is ~ 300 chars per second which is the speed you'd get with a 2400 baud modem

niek_pas - 2 hours ago

RIP my browser history, I guess

kirugan - 3 hours ago

Nice, I always thought 15 tok/sec is too "slow"

bob1029 - 4 hours ago

The non-linear scaling on the slider is an excellent UX.

dfollent - 3 days ago

Neat visual. 5 tok/s is still faster than me!

dario-dentes - 3 days ago

Thank you for this great utility. I love the "gut feel" calibration utilities like this one!

tantalor - 4 hours ago

> Now switch between c and t at the same rate. The difference is striking — and intentional.

I don't see a big difference.

dbalatero - 5 hours ago

This is cool, thanks for making it.

Eswo - 5 hours ago

super cool, thanks

victorbjorklund - 5 hours ago

This is great.

gordonhart - 3 hours ago

[dead]

tuo-lei - 4 hours ago

[flagged]