llama.cpp vs Ollama: performance is a category error
Ollama runs llama.cpp, pinned to the build it ships and 92 builds behind upstream on 2026-10-06. Same engine, so a speed gap is a config gap. You're choosing a warranty, not a benchmark.
Is Ollama slower than llama.cpp? No, not in any way worth a benchmark. Ollama is llama.cpp: same engine, pinned to the build Ollama ships. Thread count, quantization and context length compute your tokens; the wrapper doesn't. Benchmarking the two for speed is drag-racing a car against the same car in new paint.
Ollama isn't slower llama.cpp. It's last month's llama.cpp with a warranty.
The gap, re-measured
Ninety-two builds separated Ollama's engine pin from upstream on October 6. Both trains sped up this week; the physics didn't.
| date | upstream llama.cpp | Ollama's pin | gap |
|---|---|---|---|
| 2026-10-06 | b11443 | b11351 | 92 builds |
| 2026-10-14 | — | "updated llama.cpp" (v0.40.5 notes, Nemotron 3.5 support) | pin moves on their train |
| 2026-10-21 | b11778 (03:37 UTC) | build number unverified | open question |
builds between Ollama's pin and upstream on 2026-10-06 — the warranty gap, not a speed gap.
Two trains, one morning
Three llama.cpp builds landed between 03:04 and 03:37 UTC on October 21 (b11776, b11777, b11778), after the v0.7.0 tag around Oct 15. Ollama's three releases — v0.40.5 on Oct 14, v0.40.6 on Oct 16, v0.40.7 on Oct 18 — took five days. Different products, different jobs.
| axis | llama.cpp | Ollama | the pick |
|---|---|---|---|
| the engine | this morning's build | their pinned build, bumped per release | tie (same code) |
| defaults under update | v0.7.0 moved the server port; our setup refused connections until we followed | no surprise moves on record this week | Ollama, if updates scare you |
| API surface | raw HTTP server you wire yourself | OpenAI-compatible Responses; renderer/parser/template_source fields in ollama show (v0.40.7) | Ollama, for app glue |
| cloud routing | nothing leaves your box | can route to ollama.com models; since v0.40.7 remote requests cancel on client disconnect | llama.cpp, if phone-home is a dealbreaker |
| receipts | tested 2026-10-20, ephemeral CPU microVM: 1 ms refusal on the stale port, ~41 ms cold start to listening, banner b11669 printing "0.7.0-dev" | record-read only — the bench is still owed | — |
So which one should you run?
- Want this week's kernels, quants and fixes? Run llama.cpp and own the churn. Four builds landed on one review morning alone (b11438–b11443).
- Want tomorrow to look like today? Run Ollama. The pin lags on purpose, and a 3-releases-in-5-days week is how the warranty gets delivered.
- Hunting tokens per second? Shop your config, not the wrapper. Start with threads and quantization. The engine is the same engine.
what the pin files actually say
Ollama's repo root carries LLAMA_CPP_VERSION (b11351 at review time), MLX_VERSION and MLX_C_VERSION; llm/llama_server.go starts the server as a subprocess. It adds service: registry pulls, auto-detection, a resident API on 11434, MLX for Apple Silicon. llama.cpp itself: 130,473 stars, MIT, 24,125 forks, 2,515 open issues, and GGUF as the lingua franca.
- read, not run: Ollama v0.40.5 (Oct 14), v0.40.6 (Oct 16), v0.40.7 (Oct 18) release notes; llama.cpp releases feed b11776/77/78, Oct 21, 03:04–03:37 UTC
- Ollama's current engine build number unverified — the gap column stays open
- tested 2026-10-20, ephemeral CPU microVM: b11669 banner "0.7.0-dev"; 1 ms refusal on the stale port; ~41 ms to listening
- 2026-10-06 record: llama.cpp b11443 (four releases that day) · Ollama v0.35.1 / LLAMA_CPP_VERSION b11351