New Tool Radar

Local AI

Measure Ollama Generation Speed with a Timed Prompt

Run an Ollama model with --verbose and read the eval rate, or time a curl call, to get a real tokens-per-second figure.

Schematic with three steps: Run with verbose timing; Use the same prompt every time; Judge the result.

Ollama prints timing statistics when you add –verbose to a run. The eval rate is the tokens-per-second figure that matters for reading comfort, and comparing it with community numbers shows whether your setup is performing as expected.

What you need

  • Ollama installed with a model pulled
  • A terminal on the same machine
  • A fixed test prompt to reuse across runs

Step 1: Run with verbose timing

Run ollama run llama3.1:8b –verbose and ask a question. After the reply, Ollama prints total duration, prompt eval rate, and eval rate. The eval rate line is the generation speed in tokens per second.

Step 2: Use the same prompt every time

Measure with the same prompt across models and settings, for example a 500-word essay request. Different prompts give different speeds, so a comparison needs the prompt held fixed.

Step 3: Judge the result

About 10 tokens per second is the minimum for comfortable reading, 20 to 30 feels responsive, and 50 or more feels instant. If the figure is far below the community average for the same GPU and model, check with ollama ps whether the model is fully on the GPU.

Worked example: a 9B model on an RTX 3080

The table below is a synthetic example. The –verbose fields and the speed bands come from the cited benchmark guides; the model and rate are from a real install report.

Metric Example value Meaning
Eval rate 94.27 tokens/s Generation speed
Prompt eval rate 22.15 tokens/s Prefill speed
Total duration 987 ms Whole reply time

Expected result (UNTESTED). –verbose prints an eval rate in tokens per second, and the figure is in the responsive band or better for the hardware. This check was not run live; the fields and bands come from the cited benchmark guides.

Limits

  • The first run after loading includes model load time; measure a warm run.
  • Thinking models spend time reasoning before answering, which lowers the apparent rate.
  • Speed varies with prompt length, context size, and concurrent load.
  • Tokens per second is a speed measure, not a quality measure.

Sources

See all