VERIFICATIONChecked against current official documentation on 2026.08.04; hardware-specific performance is not generalized.

30-SECOND SUMMARY

What to take away

  • Measure load, first output, and sustained generation separately.
  • Repeat with fixed prompt, context, and output length.
  • Record worst cases, memory, failures, and quality.
BENCHMARK 01

Split perceived speed

Separate cold and warm runs.

  1. 01
    LOAD

    Model loading

  2. 02
    TTFT

    First output

  3. 03
    TOKENS

    Sustained generation

  4. 04
    QUALITY

    Task success

Use it this way Record median, worst case, memory, and failures.
SECTION 01

Separate three phases

Cold start includes model loading. Time to first token describes interactive waiting, while tokens per second describes continued generation.

SECTION 02

Fix the conditions

Record model, quantization, runtime, context, prompt, output cap, power mode, and background workload. Separate cold and warm runs.

SECTION 03

Read API metrics

Ollama generate and chat responses expose total, load, prompt-evaluation, and generation fields. Check units and the final streaming object.

curl http://localhost:11434/api/generate -d '{"model":"gemma3:4b","prompt":"Explain local AI","stream":false}'
SECTION 04

Pair speed with success

A fast wrong answer is not a better model. Compare performance only among candidates that pass the task-quality threshold.

PhaseMeaning
LoadMove model into memory
TTFTRequest to first output
GenerationOutput after first token
TotalEnd-to-end task time
FAQ

Frequently asked questions

Is tokens per second enough?

No. Interactive and batch work value different phases.

Can I measure once?

Repeat and record median plus worst case.

Can models with different outputs be compared?

Use output limits and include quality scores.

Primary sources

Check the original documentation for version-specific details.

Ollama Generate API Ollama Chat API llama.cpp repository

READ NEXT

How to Evaluate a Local LLM for Your Real WorkLocal AI for Beginners: Where Should You Start?