A single tokens-per-second figure can hide how long a local model spends reading a document. llama-bench separates prompt processing from text generation.
Run both measurements
Set the input size with -p and the number of generated tokens with -n. On the same model file, -p 512,4096 -n 128 measures processing for two prompt lengths and separately tests generation of 128 tokens. Use -pg for a combined prompt-and-generation test.

Change one variable at a time
Record the model file, quantization and software version. Hold them steady when comparing hardware or runtime settings. Then read the results against your workload. A coding assistant that ingests a set of files depends on prompt processing. In a short chat, the rate at which the reply appears may matter more.
Ask AI about this article
Opens in a new tab with the question filled in.


