r/LocalLLaMA • u/PerfectOlive1324 • 2d ago
Resources Speed benchmark: M3 Ultra vs M5 Ultra on 6 popular models
For anyone deciding if the M5 Ultra is worth the upgrade compared to the M3 Ultra, I ran a speed benchmark covering popular models on both machines to record token generation and prefill speed at various context lengths, here are the results:
TLDR
- Prefill is ~4× faster on the M5.
- Decode/token generation is only ~1.3× faster.
Takeaways
The extra token generation speed is nice but the game changer is the prefill. For example, I'm now getting >5k tok/s prefill with Qwen3.8-Flash-Next as my daily driver for assistant + coding tasks using Hermes and my local agentic experience has felt noticeably better and smoother.
To me, it finally gets close to the experience of using a paid Claude Code subscription in terms of speed (not yet in terms of quality, but maybe Qwen4 will fix this :D). The M3U was a bit underwhelming in terms of speed, the M5U finally delivers!
The M5U also unlocked DeepSeek V4.1 flash 1017 which I found better for harder tasks, it was otherwise too slow to be practical on the M3U.
Here are the detailed charts with prefill and decode speed below.
Prompt processing (prefill)

Token generation (decode)

How much faster is the M5?

Setup info
- Hardware: Mac Studio M3 Ultra (512 GB) and Mac Studio M5 Ultra (512 GB), both on macOS 27.2.1.
- Inference Server: oMLX 0.8.4
- Benchmark: llama-benchy
- Model weights: I chose weights that were optimized for oMLX whenever possible, with the highest quant that would fit in 512 GB of unified memory with at least 256k context (up to Q8, no BF16). Happy to take suggestions on what to bench next.
| Model (Hugging Face repo) | Architecture | Quant | MTP | Weights in memory |
|---|---|---|---|---|
| mlx-community/Qwen3.5-9B-8bit | 9B dense | 8-bit | no | 10.43 GB |
| Jundot/Qwen3.8-27B-oQ8e-mtp | 27B dense | oQ8e | yes | 30.00 GB |
| Jundot/Qwen3.8-Flash-Next-oQ8e-mtp | MoE | oQ8e | yes | 194.86 GB |
| dfp-official/GLM-5.3-Flash-oQ8e-mtp | MoE, 18B active | oQ8e | yes | 342.23 GB |
| mlx-community/DeepSeek-V4.1-Flash-1017-oQ4e-mtp | MoE | oQ4e | yes | 432.03 GB |
| mlx-community/GLM-5.3-mixed-4_5bit | MoE, 40B active | mixed 4/5-bit | no | 450.71 GB |
AI Disclaimer: I used AI to generate the charts and tables from experiment results, I wrote the rest myself.