The first request is not the same workload as the tenth. A measured Qwen 8B comparison shows why cold-start latency, time to first token, generation speed and memory must be reported separately.
The question
A local model can appear slow for two very different reasons: the model still has to load, or token generation itself is slow. Treating those as one latency hides the engineering decision. Inference Bench measured Ollama and llama.cpp using the same Qwen 8B GGUF, the same 8,192-token context, the same prompt and the same correctness assertion.
What the measurement showed
On the tested short workload, Ollama's median cold wall time was 10.27 seconds and its warm wall time was 171.7 milliseconds. llama.cpp measured 39.63 seconds cold and 219.4 milliseconds warm. Every correctness assertion passed.
The difference becomes visible when time to first token is separated from generation. Ollama's warm time to first token was 60.4 milliseconds at 23.30 output tokens per second. llama.cpp reached its first token in 76.2 milliseconds and generated at 18.23 tokens per second.
What memory adds to the story
llama.cpp used less peak GPU memory: 7,868 MiB compared with 8,081 MiB for Ollama, a difference of about 213 MiB. That matters on a constrained GPU, but it does not outweigh the measured latency for this tiny single-user workload. The test also cannot predict throughput, long-generation behaviour or the effect of batching.
The practical conclusion
For this repeatable short workload, Ollama was the better baseline because it was faster both cold and warm. llama.cpp remained useful when explicit process lifecycle or lower VRAM mattered. The responsible next step is not to tune from one result: use a longer generation, compare context lengths, test concurrency only after single-user output is repeatable, and keep correctness and memory checks in every run.
Keep cold start, time to first token, generation throughput, correctness and VRAM in the same experiment. A single latency number is not enough to choose a local model engine.
Source trail
Follow it yourself.
- Ollama documentationserving engine ↗
- llama.cppserving engine ↗
- Qwen3 model documentationmodel family ↗
Approved on 2026-11-27 after 0 exact and 0 close source checks.
Ask dailyGlitch
Have a better question?
Ask for a clarification, the source behind a claim, or a related article. This channel will connect to the dailyGlitch assistant when its hosted question endpoint is ready.