Short answer
On a MacBook Pro (Apple M5, 24 GB) with Ollama 0.33.0, at a short prompt: Qwen2.5-Coder 7B 26.2 tok/s, DeepSeek R1 8B 23.6 tok/s, Gemma 4 E4B 59.5 tok/s, Qwen3.5 9B 21.7 tok/s, Gemma 4 12B 27.5 tok/s, DeepSeek R1 14B 13.9 tok/s, Qwen2.5-Coder 14B 14 tok/s, gpt-oss-20b 32.4 tok/s. On median, our configurator’s estimate was 0.80 times the measured speed. The 5 dense models whose file the bandwidth rule covers wrote at 80 to 94 % of the bandwidth ceiling (153 GB/s ÷ file size).
Writing speed (decode) and reading speed (prefill)
Medians of all runs. Writing speed is what you watch while the answer appears; reading speed decides how long you wait before the first word when you paste a long text.
| Model | File | Writing, tok/s | Reading, tok/s | |||
|---|---|---|---|---|---|---|
| short prompt | 2,900-token prompt | 12,900-token prompt | 2,900 tokens | 12,900 tokens | ||
Qwen2.5-Coder 7B#qwen2.5-coder:7b | 4.7 GB | 26.2 | 24.4 | 20.5 | 442 | 327 |
DeepSeek R1 8B#deepseek-r1:8b | 5.2 GB | 23.6 | 21.5 | 17.2 | 445 | 283 |
Gemma 4 E4B#gemma4:e4b-it-q4_K_M | 6.6 GB | 59.5 | 58.1 | 39.2 | 768 | 653 |
Qwen3.5 9B#qwen3.5:9b | 6.6 GB | 21.7 | 21.3 | 20 | 490 | 460 |
Gemma 4 12B#gemma4:12b-it-q4_K_M | 8 GB | 27.5 | 25.5 | 18.4 | 275 | 255 |
DeepSeek R1 14B#deepseek-r1:14b | 9 GB | 13.9 | 12.6 | 10.1 | 251 | 158 |
Qwen2.5-Coder 14B#qwen2.5-coder:14b | 9 GB | 14 | 12.7 | 10.1 | 211 | 156 |
gpt-oss-20b#gpt-oss:20b | 14 GB | 32.4 | 31.8 | 27.3 | 790 | 532 |
Our estimate against the measurement
The configurator estimates writing speed as bandwidth ÷ active weights × 0.65. For this machine that is 153 GB/s ÷ file size × 0.65. A ratio of 1.00 means exact; above 1 the estimate promises too much. The last column is the share of the bandwidth ceiling (153 GB/s ÷ file size) a dense model actually reaches; the speed guide found 71–93% for large files on other chips.
| Model | Our estimate | Measured | Estimate ÷ measured | Share of the ceiling |
|---|---|---|---|---|
| Qwen2.5-Coder 7B# | 21 tok/s | 26.2 tok/s | 0.80 | 80 % |
| DeepSeek R1 8B# | 19 tok/s | 23.6 tok/s | 0.81 | 80 % |
| Gemma 4 E4B# | 15 tok/s | 59.5 tok/s | 0.25 | above 100%: less is read per token than the file holds |
| Qwen3.5 9B# | 15 tok/s | 21.7 tok/s | 0.69 | 94 % |
| Gemma 4 12B# | 12 tok/s | 27.5 tok/s | 0.44 | above 100%: less is read per token than the file holds |
| DeepSeek R1 14B# | 11 tok/s | 13.9 tok/s | 0.79 | 82 % |
| Qwen2.5-Coder 14B# | 11 tok/s | 14 tok/s | 0.79 | 82 % |
| gpt-oss-20b# | 41 tok/s | 32.4 tok/s | 1.27 | MoE, not comparable |
Memory Ollama takes
As reported by ollama ps after each run: weights, KV cache and runtime together (the KV cache here is 8-bit, q8_0), at the context window of the test. “On GPU” below 100% means part of the model ran on the CPU, which is slower. Gemma 4 has no figure: Ollama 0.33.0 reports a size far below the model file for it, which cannot be the memory it uses.
| Model | File | 8K window | 32K window |
|---|---|---|---|
| Qwen2.5-Coder 7B# | 4.7 GB | 4.9 GB100% on GPU | 5.5 GB100% on GPU |
| DeepSeek R1 8B# | 5.2 GB | 6.1 GB100% on GPU | 7.9 GB100% on GPU |
| Gemma 4 E4B# | 6.6 GB | not measured | not measured |
| Qwen3.5 9B# | 6.6 GB | 6.3 GB100% on GPU | 6.1 GB100% on GPU |
| Gemma 4 12B# | 8 GB | not measured | not measured |
| DeepSeek R1 14B# | 9 GB | 10 GB100% on GPU | 12.1 GB100% on GPU |
| Qwen2.5-Coder 14B# | 9 GB | 9.6 GB100% on GPU | 12.1 GB100% on GPU |
| gpt-oss-20b# | 14 GB | 12.7 GB100% on GPU | 12.8 GB100% on GPU |
Numbers you can quote
Three sentences with figures from our own runs. Each links the row it comes from; copy one with its date and the link.
- Qwen2.5-Coder 14B (9 GB file) wrote 14 tok/s at a short prompt and 10.1 tok/s with a 12,900-token prompt on a MacBook Pro (Apple M5, 24 GB) (LLMBOX Bench, Nov 10, 2026).
- On the same Mac the 14B models took 9.6 to 10 GB at an 8K window and 12.1 GB at 32K, all on the GPU (8-bit KV cache).
- Our configurator’s speed estimate was 0.80 times the measured speed (median of 8 models).
Link to copy: [LLMBOX Bench](https://llmbox.store/bench/) · Local LLM speed on a MacBook Pro M5, measured, Nov 10, 2026
A faster Mac: what the same models would do (calculated)
We measured one Mac. Writing speed follows memory bandwidth, so we scaled our measurements to the next two Macs in our catalog by their bandwidth. These two columns are calculated, not measured, and a calculation can be off. Reading speed on long prompts also depends on the chip and is not scaled.
| Model | MacBook Pro (Apple M5, 24 GB), measured (153 GB/s) | Apple Mac mini M6 24 GB, calculated (170 GB/s, ×1.11) | Apple Mac mini M5 Pro 24 GB, calculated (307 GB/s, ×2.01) |
|---|---|---|---|
| Qwen2.5-Coder 14B | 14 | 15.6 | 28.1 |
| DeepSeek R1 14B | 13.9 | 15.4 | 27.9 |
| gpt-oss-20bMoE: bandwidth scaling is rougher | 32.4 | 36 | 65 |
Apple Mac mini M6 24 GB
24 GB memory, 170 GB/s: 1.11 times the bandwidth of the measured Mac. Offers for this Mac (paid links are marked Ad):
DEIn stock€1,319free shipping
ATIn stock€1,342.48free shipping
ATIn stock€1,405+ €8.90 shippingAd
ATIn stock€1,489+ €6.39 shippingAd
DEOut of stock€1,346free shippingAd
DEOut of stock€1,382.67+ €6.99 shipping
ATOut of stock€1,394.29+ €9.99 shipping
DE · ATPrice in shopview ↗Ad
All 8 offersShow fewer
Delivery in the USA
Prices include VAT, sorted by price including shipping, as of Oct 21, 2026. Only shops with an affiliate program are listed, not the whole market. For purchases through “Ad” links we earn a commission; your price stays the same.
Apple Mac mini M5 Pro 24 GB
24 GB memory, 307 GB/s: 2.01 times the bandwidth of the measured Mac. Offers for this Mac (paid links are marked Ad):
DEIn stock€1,689free shippingAdDEIn stock€1,699free shippingAd
DEIn stock€1,699free shipping
DEIn stock€1,699free shippingAd
ATIn stock€1,724.27free shipping
ATIn stock€1,713.28+ €10.99 shippingAd
DEIn stock€1,832.54+ €6.99 shipping
ATIn stock€1,862+ €8.90 shippingAd
ATIn stock€1,889+ €9.99 shipping
ATIn stock€1,979+ €6.39 shippingAd
DE · ATPrice in shopview ↗Ad
All 11 offersShow fewer
Delivery in the USA
Prices include VAT, sorted by price including shipping, as of Oct 16, 2026. Only shops with an affiliate program are listed, not the whole market. For purchases through “Ad” links we earn a commission; your price stays the same.
What this means if you are buying
On this 24 GB base chip the measured models wrote 13.9 to 59.5 tokens per second at a short prompt. Every model with a memory reading stayed fully on the GPU, at the 8K and at the 32K window. Bigger models and longer contexts run into the memory macOS lets the GPU use (we plan with 18 GB for 24 GB machines). Writing speed follows memory bandwidth: the M5 Pro in our catalog has 307 GB/s, 2.0 times this M5, so the bandwidth rule expects about 2.0 times the writing speed for the same file. That is an estimate; we have not measured an M5 Pro.
Pick by the model you want to run: the requirement pages for DeepSeek R1, Qwen Coder, Gemma 4 and gpt-oss list every size with the smallest box that holds it. For a desktop Mac, see the best Macs for local LLMs or the Mac mini M6 with 24 GB; to check your own model and context, open the VRAM calculator.
How we measured
- Machine: MacBook Pro (Apple M5, 24 GB), Apple M5, 10-core CPU (4 performance, 6 efficiency), 10-core GPU. Power: AC power.
- Software: macOS 26.3, Ollama 0.33.0 from Homebrew with two changed settings: flash attention on (
OLLAMA_FLASH_ATTENTION=1) and the KV cache set to 8 bit (OLLAMA_KV_CACHE_TYPE=q8_0). Ollama’s own default is a 16-bit cache (f16), so a plain install needs about twice the KV memory at long context and can give other speeds. No otherOLLAMA_*variable is set. - Models: the Ollama tag of our catalog entry, downloaded for these runs; the digest of each file is in the CSV.
- Tests: three per model. Short: 8K window, a one-sentence prompt, 256 new tokens, 3 runs. 2,900: 8K window, a prompt of about 2,900 tokens, 256 new tokens, 2 runs. 12,900: 32K window, a prompt of about 12,900 tokens, 128 new tokens, 2 runs. The exact token counts per model are in the CSV, because every model splits text differently.
- Each run: a fresh prompt (a run number at the start, so Ollama cannot reuse a cached prompt), temperature 0, seed 42. A discarded warm-up run loads the model with each window first. The numbers are Ollama’s own counters (
eval_count ÷ eval_durationandprompt_eval_count ÷ prompt_eval_duration), the table shows the median. - Conditions: other apps were open as in normal use; games were closed, and each model started only once the one-minute system load was below 4.5. The system load before each run is in the CSV. The script is bench-ollama.mjs.
What these numbers do not tell you
- One machine, one date, one runtime. A laptop can slow down when it gets hot over long jobs; our runs are minutes, not hours.
- Ollama with flash attention and an 8-bit KV cache (see Method), not a tuned llama.cpp build. A plain install (16-bit cache) can give other speeds and a larger memory figure. Other runtimes (MLX, LM Studio) can be faster on a Mac.
- Memory is measured with Ollama’s 8-bit KV cache (q8_0); the exact KV-cache figures on /models/ assume 16-bit, so at long context they are about twice as large.
- For both Gemma 4 models Ollama 0.33.0 returned an empty text field although it counted the generated tokens (for the E4B we checked that the reply holds the token ids), so
output_charsis 0 in the CSV. The speeds are Ollama’s counters; we could not check the length of the text. - Speed only. Nothing here says how good the answers are.
- Thinking models (DeepSeek R1, gpt-oss) write their reasoning first; the speed counts those tokens too, so a full answer takes longer than the token rate suggests.
Use the data
56 runs, one row each, with the model digest, token counts, durations and memory.
License: CC BY 4.0
Cite as: LLMBOX Bench, 2026-11-10, https://llmbox.store/data/2026-11-10/bench.csv
The link in the cite line is a dated copy of the CSV that never changes. The download button always serves the newest rows. /data/2026-11-10/bench.csv
Columns of bench.csv
One row per run. The medians on this page are computed from these rows; decode_tps is eval_count ÷ eval_duration of Ollama’s own counters.
| Column | Unit | Meaning |
|---|---|---|
machine | text | Name of the test machine |
chip | text | Chip of the test machine |
memory_gb | GB | Unified memory of the machine |
bandwidth_gbs | GB/s | Memory bandwidth of the chip as published by the maker (source in bench.json, machine.bandwidth_source) |
os | text | Operating system and version |
model | text | Ollama tag that was run |
model_id | text | LLMBOX catalog id of the model, the same id as in models.csv |
digest | SHA-256 | Digest of the model file Ollama ran, so a re-run can check it uses the same file |
quantization | text | Quantization of the model file, for example Q4_K_M |
ollama | text | Ollama version that ran the test |
test | short, 8k, 32k | Which prompt: one sentence, about 2,900 tokens (8K window) or about 12,900 tokens (32K window) |
rep | count | Number of the run within its test, starting at 1 |
num_ctx | tokens | Context window set for the run |
prompt_tokens | tokens | Tokens Ollama counted in the prompt (prompt_eval_count) |
prompt_s | s | Seconds Ollama took to read the prompt (prompt_eval_duration) |
prefill_tps | tok/s | Reading speed: prompt_tokens ÷ prompt_s; empty for the short prompt, which is too short to time |
gen_tokens | tokens | New tokens the model wrote (eval_count) |
gen_s | s | Seconds Ollama spent writing them (eval_duration) |
decode_tps | tok/s | Writing speed: gen_tokens ÷ gen_s, from Ollama’s counters in nanoseconds |
load_s | s | Time to load the model before the run; 0 when it was already loaded |
size_bytes | bytes | Memory Ollama reports for the loaded model (ollama ps): weights, KV cache and runtime together |
size_vram_bytes | bytes | Part of size_bytes held on the GPU; below size_bytes means part of the model ran on the CPU |
loadavg_1m_before | load | One-minute load average of the machine before the run, a check that nothing else was busy |
started_at | UTC time | When the run started |
flash_attention | true, false | Whether Ollama ran with flash attention (the same on every row of a file) |
kv_cache_type | f16, q8_0, q4_0 | KV cache type Ollama ran with (OLLAMA_KV_CACHE_TYPE) |
license | text | License of the row, CC BY 4.0 |
Corrections: every change to the numbers or the method is listed in the changelog below.
Run the same test on your machine
The script needs Node 22 and a running Ollama. It writes one JSON line per run; nothing is sent anywhere. Our runs used OLLAMA_FLASH_ATTENTION=1 and OLLAMA_KV_CACHE_TYPE=q8_0; the script does not set them, so start Ollama the same way to compare, and tell us which settings you used.
curl -O https://llmbox.store/bench-ollama.mjs
ollama pull qwen2.5-coder:7b
node bench-ollama.mjs --model qwen2.5-coder:7b --out my-bench.jsonlSend us the file with your machine and settings through the contact page; we add runs we can check, credited to you. Read the script first.
Changelog
- · Added: First runs: 8 models on a MacBook Pro with Apple M5 and 24 GB.
- · Corrected: The method text described a plain Ollama install. The runs used flash attention and an 8-bit KV cache; the text, the limits and the data files now say so. Numbers unchanged.