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.

Measured tokens per second per model and context
ModelFileWriting, tok/sReading, tok/s
short prompt2,900-token prompt12,900-token prompt2,900 tokens12,900 tokens
Qwen2.5-Coder 7B#qwen2.5-coder:7b4.7 GB26.224.420.5442327
DeepSeek R1 8B#deepseek-r1:8b5.2 GB23.621.517.2445283
Gemma 4 E4B#gemma4:e4b-it-q4_K_M6.6 GB59.558.139.2768653
Qwen3.5 9B#qwen3.5:9b6.6 GB21.721.320490460
Gemma 4 12B#gemma4:12b-it-q4_K_M8 GB27.525.518.4275255
DeepSeek R1 14B#deepseek-r1:14b9 GB13.912.610.1251158
Qwen2.5-Coder 14B#qwen2.5-coder:14b9 GB1412.710.1211156
gpt-oss-20b#gpt-oss:20b14 GB32.431.827.3790532

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.

Configurator estimate and measured writing speed at a short prompt
ModelOur estimateMeasuredEstimate ÷ measuredShare of the ceiling
Qwen2.5-Coder 7B#21 tok/s26.2 tok/s0.8080 %
DeepSeek R1 8B#19 tok/s23.6 tok/s0.8180 %
Gemma 4 E4B#15 tok/s59.5 tok/s0.25above 100%: less is read per token than the file holds
Qwen3.5 9B#15 tok/s21.7 tok/s0.6994 %
Gemma 4 12B#12 tok/s27.5 tok/s0.44above 100%: less is read per token than the file holds
DeepSeek R1 14B#11 tok/s13.9 tok/s0.7982 %
Qwen2.5-Coder 14B#11 tok/s14 tok/s0.7982 %
gpt-oss-20b#41 tok/s32.4 tok/s1.27MoE, 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.

Memory per model at an 8K and a 32K context window
ModelFile8K window32K window
Qwen2.5-Coder 7B#4.7 GB4.9 GB100% on GPU5.5 GB100% on GPU
DeepSeek R1 8B#5.2 GB6.1 GB100% on GPU7.9 GB100% on GPU
Gemma 4 E4B#6.6 GBnot measurednot measured
Qwen3.5 9B#6.6 GB6.3 GB100% on GPU6.1 GB100% on GPU
Gemma 4 12B#8 GBnot measurednot measured
DeepSeek R1 14B#9 GB10 GB100% on GPU12.1 GB100% on GPU
Qwen2.5-Coder 14B#9 GB9.6 GB100% on GPU12.1 GB100% on GPU
gpt-oss-20b#14 GB12.7 GB100% on GPU12.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).

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.

Measured and calculated writing speed at a short prompt
ModelMacBook 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 14B1415.628.1
DeepSeek R1 14B13.915.427.9
gpt-oss-20bMoE: bandwidth scaling is rougher32.43665

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):

  1. DEIn stock€1,319free shipping
  2. ATIn stock€1,342.48free shipping
  3. ATIn stock€1,405+ €8.90 shippingAd
  4. ATIn stock€1,489+ €6.39 shippingAd
  5. DEOut of stock€1,346free shippingAd
  6. DEOut of stock€1,382.67+ €6.99 shipping
  7. ATOut of stock€1,394.29+ €9.99 shipping
  8. DE · ATPrice in shopview ↗Ad
All 8 offersShow fewer

Delivery in the USA

  1. Amazon.comPrice in shopview ↗Ad

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):

  1. DEIn stock€1,689free shippingAd
  2. DEIn stock€1,699free shippingAd
  3. DEIn stock€1,699free shipping
  4. DEIn stock€1,699free shippingAd
  5. ATIn stock€1,724.27free shipping
  6. ATIn stock€1,713.28+ €10.99 shippingAd
  7. DEIn stock€1,832.54+ €6.99 shipping
  8. ATIn stock€1,862+ €8.90 shippingAd
  9. ATIn stock€1,889+ €9.99 shipping
  10. ATIn stock€1,979+ €6.39 shippingAd
  11. DE · ATPrice in shopview ↗Ad
All 11 offersShow fewer

Delivery in the USA

  1. Amazon.comPrice in shopview ↗Ad

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 other OLLAMA_* 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_duration and prompt_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_chars is 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.

Columns of bench.csv
ColumnUnitMeaning
machinetextName of the test machine
chiptextChip of the test machine
memory_gbGBUnified memory of the machine
bandwidth_gbsGB/sMemory bandwidth of the chip as published by the maker (source in bench.json, machine.bandwidth_source)
ostextOperating system and version
modeltextOllama tag that was run
model_idtextLLMBOX catalog id of the model, the same id as in models.csv
digestSHA-256Digest of the model file Ollama ran, so a re-run can check it uses the same file
quantizationtextQuantization of the model file, for example Q4_K_M
ollamatextOllama version that ran the test
testshort, 8k, 32kWhich prompt: one sentence, about 2,900 tokens (8K window) or about 12,900 tokens (32K window)
repcountNumber of the run within its test, starting at 1
num_ctxtokensContext window set for the run
prompt_tokenstokensTokens Ollama counted in the prompt (prompt_eval_count)
prompt_ssSeconds Ollama took to read the prompt (prompt_eval_duration)
prefill_tpstok/sReading speed: prompt_tokens ÷ prompt_s; empty for the short prompt, which is too short to time
gen_tokenstokensNew tokens the model wrote (eval_count)
gen_ssSeconds Ollama spent writing them (eval_duration)
decode_tpstok/sWriting speed: gen_tokens ÷ gen_s, from Ollama’s counters in nanoseconds
load_ssTime to load the model before the run; 0 when it was already loaded
size_bytesbytesMemory Ollama reports for the loaded model (ollama ps): weights, KV cache and runtime together
size_vram_bytesbytesPart of size_bytes held on the GPU; below size_bytes means part of the model ran on the CPU
loadavg_1m_beforeloadOne-minute load average of the machine before the run, a check that nothing else was busy
started_atUTC timeWhen the run started
flash_attentiontrue, falseWhether Ollama ran with flash attention (the same on every row of a file)
kv_cache_typef16, q8_0, q4_0KV cache type Ollama ran with (OLLAMA_KV_CACHE_TYPE)
licensetextLicense 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.jsonl

Send 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.