LLM benchmarks · Head to head
DGX Spark vs Mac Studio for local LLMs, measured
The DGX Spark against the Mac Studio (M2 Ultra) on 7 models, every result measured the same way on both: the same model file, engine, prompt and context.
Measured and maintained by Khadim Hussain · data updated 26 Nov 2026 · How we measure
This comparison
- Matched results
- 49
- Models
- 7
- Contexts
- empty to 32K
- Spark faster, generation
- 4
- Mac faster, generation
- 45
- Updated
- 26 Nov 2026
Short answer
DGX Spark vs Mac Studio: across 49 matched results, the Mac Studio (M2 Ultra) generated faster in 45 of 49 and the DGX Spark read the prompt faster in 45 of 49; on gpt-oss-120b MXFP4 at an empty context the DGX Spark generates 57.1 Tok/s and the Mac Studio (M2 Ultra) 88.6 Tok/s.
Measured, data as of 26 Nov 2026.
Every matched result
Largest model first, then by context. The faster of each pair is in colour. Context is the tokens already in the cache when the test starts; prompt tokens is the length of the prompt it reads.
| Model | Quant | Context | Prompt tokens | Spark gen Tok/s | Mac gen Tok/s | Spark prompt Tok/s | Mac prompt Tok/s |
|---|---|---|---|---|---|---|---|
| gpt-oss-120b | MXFP4 | empty | 512 | 57.1 | 88.6 | 1,152 | 1,201 |
| gpt-oss-120b | MXFP4 | empty | 2,048 | 58.7 | 85.6 | 2,444 | 1,649 |
| gpt-oss-120b | MXFP4 | empty | 4,096 | 55.2 | 82.1 | 2,413 | 1,587 |
| gpt-oss-120b | MXFP4 | empty | 8,192 | 52.2 | 78.2 | 2,347 | 1,485 |
| gpt-oss-120b | MXFP4 | 4K | 2,048 | 55.7 | 82.0 | 2,310 | 1,430 |
| gpt-oss-120b | MXFP4 | 8K | 2,048 | 52.9 | 78.2 | 2,217 | 1,258 |
| gpt-oss-120b | MXFP4 | 16K | 2,048 | 49.5 | 73.2 | 1,956 | 1,013 |
| gpt-oss-120b | MXFP4 | 32K | 2,048 | 42.8 | 65.5 | 1,567 | 721 |
| Qwen3-Coder-30B-A3B-Instruct | Q8_0 | empty | 512 | 58.4 | 76.3 | 1,304 | 2,109 |
| Qwen3-Coder-30B-A3B-Instruct | Q8_0 | empty | 2,048 | 61.1 | 79.0 | 2,987 | 2,453 |
| Qwen3-Coder-30B-A3B-Instruct | Q8_0 | empty | 4,096 | 53.5 | 67.6 | 2,890 | 2,154 |
| Qwen3-Coder-30B-A3B-Instruct | Q8_0 | empty | 8,192 | 47.2 | 66.3 | 2,711 | 1,731 |
| Qwen3-Coder-30B-A3B-Instruct | Q8_0 | 4K | 2,048 | 54.8 | 71.2 | 2,633 | 1,569 |
| Qwen3-Coder-30B-A3B-Instruct | Q8_0 | 8K | 2,048 | 48.0 | 65.1 | 2,354 | 1,146 |
| Qwen3-Coder-30B-A3B-Instruct | Q8_0 | 16K | 2,048 | 40.2 | 56.9 | 1,909 | 741 |
| Qwen3-Coder-30B-A3B-Instruct | Q8_0 | 32K | 2,048 | 30.2 | 45.3 | 1,348 | 431 |
| GLM-4.7-Flash | Q8_0 | empty | 512 | 46.2 | 61.3 | 1,182 | 1,569 |
| GLM-4.7-Flash | Q8_0 | empty | 2,048 | 48.7 | 59.6 | 2,364 | 1,629 |
| GLM-4.7-Flash | Q8_0 | empty | 4,096 | 44.1 | 44.3 | 2,139 | 1,249 |
| GLM-4.7-Flash | Q8_0 | empty | 8,192 | 42.1 | 41.7 | 1,816 | 851 |
| GLM-4.7-Flash | Q8_0 | 4K | 2,048 | 44.6 | 47.4 | 1,684 | 733 |
| GLM-4.7-Flash | Q8_0 | 8K | 2,048 | 42.6 | 40.2 | 1,315 | 474 |
| GLM-4.7-Flash | Q8_0 | 16K | 2,048 | 38.7 | 31.5 | 914 | 277 |
| GLM-4.7-Flash | Q8_0 | 32K | 2,048 | 32.6 | 21.8 | 567 | 151 |
| gpt-oss-20b | MXFP4 | empty | 512 | 80.1 | 130 | 1,896 | 2,381 |
| gpt-oss-20b | MXFP4 | empty | 2,048 | 83.4 | 130 | 4,506 | 2,713 |
| gpt-oss-20b | MXFP4 | empty | 4,096 | 78.5 | 95.7 | 4,514 | 2,639 |
| gpt-oss-20b | MXFP4 | empty | 8,192 | 74.4 | 116 | 4,406 | 2,449 |
| gpt-oss-20b | MXFP4 | 4K | 2,048 | 79.2 | 123 | 4,158 | 2,325 |
| gpt-oss-20b | MXFP4 | 8K | 2,048 | 75.2 | 117 | 3,994 | 1,990 |
| gpt-oss-20b | MXFP4 | 16K | 2,048 | 70.4 | 110 | 3,450 | 1,557 |
| gpt-oss-20b | MXFP4 | 32K | 2,048 | 61.6 | 98.3 | 2,689 | 1,123 |
| Qwen2.5-Coder-7B | Q8_0 | empty | 512 | 29.1 | 78.2 | 2,420 | 1,509 |
| Qwen2.5-Coder-7B | Q8_0 | empty | 2,048 | 29.4 | 79.7 | 2,250 | 1,566 |
| Qwen2.5-Coder-7B | Q8_0 | empty | 4,096 | 28.4 | 74.3 | 2,237 | 1,500 |
| Qwen2.5-Coder-7B | Q8_0 | empty | 8,192 | 27.0 | 71.2 | 2,180 | 1,379 |
| Qwen2.5-Coder-7B | Q8_0 | 4K | 2,048 | 28.6 | 74.7 | 2,100 | 1,317 |
| Qwen2.5-Coder-7B | Q8_0 | 8K | 2,048 | 27.4 | 71.3 | 2,008 | 1,135 |
| Qwen2.5-Coder-7B | Q8_0 | 16K | 2,048 | 25.7 | 65.9 | 1,779 | 886 |
| Qwen2.5-Coder-7B | Q8_0 | 32K | 2,048 | 22.5 | 56.8 | 1,471 | 612 |
| Llama-2-7b-hf | Q4_0 | empty | 512 | 60.4 | 125 | 3,322 | 1,489 |
| gemma-3-4b-it | Q4_0 | empty | 512 | 77.6 | 136 | 5,567 | 2,748 |
| gemma-3-4b-it | Q4_0 | empty | 2,048 | 81.0 | 134 | 5,949 | 2,924 |
| gemma-3-4b-it | Q4_0 | empty | 4,096 | 70.6 | 108 | 6,080 | 2,910 |
| gemma-3-4b-it | Q4_0 | empty | 8,192 | 68.5 | 128 | 6,027 | 2,865 |
| gemma-3-4b-it | Q4_0 | 4K | 2,048 | 76.4 | 133 | 5,653 | 2,748 |
| gemma-3-4b-it | Q4_0 | 8K | 2,048 | 71.6 | 126 | 5,510 | 2,641 |
| gemma-3-4b-it | Q4_0 | 16K | 2,048 | 70.9 | 125 | 5,341 | 2,446 |
| gemma-3-4b-it | Q4_0 | 32K | 2,048 | 62.3 | 113 | 5,023 | 2,129 |
How the results were matched
A result counts only when both devices ran the same model at the same quant in the same engine, with the same prompt length, the same number of generated tokens and the same context already in the cache, one user, on a single DGX Spark and a single Mac Studio (M2 Ultra). Each device runs on its own backend. Where a device has several such runs, our own wins, then the fastest. A comparison is published only with at least 10 matched results across at least 3 models. Every other result for each device is on its page: DGX Spark and Mac Studio (M2 Ultra).
Next
Need this running for your team? I set up and maintain private LLM servers.