THE USEFUL ANSWER
Compare local inference with a fixed workload and a versioned configuration, then separate loading, prompt processing, generation, and end-to-end completion. Test cold and warm requests, realistic context, and expected concurrency.
Choose the runtime or hardware that meets your task's quality and latency requirements; a tokens-per-second number alone cannot establish that fit.

WHAT YOU'LL LEAVE WITH
A reproducible evaluation matrix across local inference runtimes, with a run-record contract and explicit quality and operating constraints.
- Use the same representative request and acceptance rule across candidates.
- Record loading, prompt processing, generation, KV memory, queueing, review and failures separately.
- Pin cache format, parser, renderer, prompt template, speculative decoding, and runtime version when tools or long context matter.
01Write the task before the benchmark
A short chat response, a long-document extraction, and a tool-using agent place different demands on the same machine. Start with a handful of representative inputs and observable success criteria: valid structured output, supported answers, correct tool arguments, or a completed transformation. Preserve failed and timed-out requests in the results. Excluding them can make a faster configuration look more useful than it is.
For a controlled runtime comparison, hold the base model and workload steady where formats permit. Record conversion and quantization differences explicitly; an MLX artifact and a GGUF artifact with similar labels are not automatically identical. For a product decision, compare each stack's best acceptable configuration, but label that as a whole-system comparison rather than an isolated runtime result.
Swipe or scroll to compare
| Run condition | Keep fixed or record | Decision it informs |
|---|---|---|
| Cold request | Model residency, load policy, artifact, prompt, and output limit. | Whether occasional use spends too long waiting for the first useful response. |
| Warm request | Cache state, repeated prefix, context length, and decode settings. | Whether the everyday interactive path meets its response budget. |
| Long context | Actual token counts, prompt-processing time, peak memory, and quality. | Whether extra context is usable for the intended task. |
| Concurrent requests | Arrival pattern, request count, queue time, and per-request failures. | Whether one service can support expected users or parallel agents. |
| Sustained batch | Run order, duration, power mode, memory pressure, and background load. | Whether the system remains useful beyond a flattering single request. |
02Read the measurements your runtime actually exposes
Ollama documents separate response fields for model loading, prompt evaluation, and output evaluation, with timing in nanoseconds. Streaming responses carry usage in the final chunk. Save that terminal record, and measure client-observed first-token and completion time separately. Server generation duration does not include every source of waiting experienced by your application. [1]
LM Studio's v0 API documents time-to-first-token, generation speed, model information, and runtime metadata; the same page recommends v1 for new projects. Choose the API version deliberately and capture the fields it actually returns. Do not silently compare different definitions of latency across endpoints or discard missing statistics as zero. [2]
MLX LM documents prompt caching, a configurable prompt-processing step size, and a rotating key-value cache. These settings can change memory use and behavior, so include them in the configuration record. Test cache reuse as its own condition rather than letting one candidate receive a warmed prefix and the other start empty. [3]
03Pin the conversation contract, not just the model
A local model can pass a one-turn prompt and still fail after a tool call, a thinking-mode change, or context compaction. Ollama 0.40.7 fixed misordered or duplicate streaming tool-call events and exposed renderer, parser and template_source through ollama show and its API. Treat those fields as part of the run identity when the runtime formats tool calls or conversation history. [5]
Ollama 0.40.9 changed streaming OpenAI Responses and Anthropic Messages behavior so generation failures are reported instead of ending silently after partial output. A client should therefore assert a valid terminal state, retain partial output separately, and classify runtime failure rather than counting every closed stream as success. This is shipped release behavior reported by the project; it was not replayed on local hardware for this guide. [6]
04Treat cache format as part of capacity
GAAC is a 28 October preprint proposing lossless KV-cache compression for bandwidth-limited personal devices. It preserves BF16 sign and mantissa bits, encodes exponent ranges with group-adaptive offsets, and reconstructs tiles inside a fused decode kernel. The authors report about 26 percent lower resident KV memory and 1.02 to 1.25 times attention speedups on an Apple M4. [7]
That does not establish an end-to-end speedup in MLX-LM, Ollama, LM Studio, or exo. The result depends on exponent redundancy, calibration length, model choice, cache precision, and a custom kernel. Read Section 3 and Tables 1, 2, and 4, then test the exact implementation you can operate. No code artifact was identified on the paper page and no local device result was reproduced here. [7]
05A runtime upgrade needs the same replay
Ollama 0.40.12, released 27 October, updates MLX and llama.cpp, adds DFlash2 speculative-decoding support on MLX, reports faster prompt processing for several Apple Silicon model families, and fixes tool-only assistant turns from Kimi CLI. [8] These are shipped vendor notes, not a compatibility or performance result for your model.
Keep the pre-upgrade fixture and compare valid tool turns, terminal state, prompt processing, total completion, and output quality before retaining the new version.
06Separate memory pressure from API behavior
Ollama 0.40.16 reports that Qwen3.8 Flash Next uses about 27 GiB less memory on Apple Silicon. The same stable release changes the OpenAI-compatible Responses API so it respects the truncation parameter instead of silently truncating by default, returns an empty model list rather than null when nothing is installed, updates llama.cpp and changes Claude Code launch routing. [9]
The memory number is a project release note, not an independent benchmark or a result for every Qwen artifact. The API changes affect compatibility even when capacity is irrelevant. Run two gates: measure peak resident memory and useful completion on the exact Mac and model, then replay a long multi-turn request with explicit truncation and a tool call.
Keep MLX-LM, LM Studio and exo applicability unknown unless the same artifact and path are tested there.
07A compact record for every attempt
- Identity: test-case ID, attempt ID, timestamp, machine and operating-system version, runtime version, exact model artifact, and quantization.
- Inputs: prompt hash, template version, input-token count, context limit, output limit, sampling settings, and any enabled reasoning or tool protocol.
- State: loaded or unloaded model, cache policy, concurrency, memory pressure, power mode, and relevant background work.
- Results: client-observed first-token time, completion time, server timings with units, output-token count, peak memory if available, stop reason, and error class.
- Usefulness: task score, evidence or expected-output comparison, parser success, tool-call validity where relevant, and a retained output for inspection.
08Add a second machine only for a demonstrated constraint
exo's current repository describes automatic device discovery and distributed execution, with separate setup and RDMA requirements. Its documentation is the place to verify the actual machines, network, operating system, and interconnect supported by the chosen release. [4] Treat a multi-device test as a distinct system: record the topology and compare useful throughput, per-request waiting, and recovery when a worker disappears.
Run repeated trials, retain the individual observations, and report the sample size before choosing a summary statistic. Set the acceptable quality and waiting-time thresholds before seeing the winner. No local hardware was benchmarked for this guide; it supplies a protocol for deciding whether to tune the existing stack, change the runtime, or add capacity.
FOLLOW THE EVIDENCE
Sources & checks
- Ollama: API usage metrics ↗
[1] Load, prompt, generation, cached-token, and streaming usage fields and nanosecond timing units.
CHECKED 2026-10-09 - LM Studio: REST API v0 ↗
[2] Documented timing and runtime metadata; explicit recommendation to use v1 for new projects.
CHECKED 2026-10-09 - MLX LM: README ↗
[3] Prompt caching, rotating KV cache, configurable prefill step size, and configuration tradeoffs.
CHECKED 2026-10-09 - exo: official repository and setup guide ↗
[4] Current distributed-inference architecture, automatic device discovery, installation and RDMA prerequisites; no performance claims adopted.
CHECKED 2026-10-09 - Ollama v0.40.7 release notes ↗
[5] 18 October release notes: streaming tool-call ordering fixes and renderer, parser and template_source inspection fields. Release notes inspected; no local replay performed.
CHECKED 2026-10-23 - Ollama v0.40.9 release notes ↗
[6] 22 October release notes: streamed generation failures now surface for OpenAI Responses and Anthropic Messages instead of silently ending after partial output. Release behavior not independently reproduced here.
CHECKED 2026-10-23 - GAAC: Lossless KV Compression for Bandwidth-Efficient LLM Inference on Personal Devices ↗
[7] Lossless exponent codec, fused decode kernel, Apple M4 and DGX Spark results, calibration constraints, and limitations. Author-reported results not reproduced here.
CHECKED 2026-10-30 - Ollama v0.40.12 release notes ↗
[8] 27 October project release: MLX and llama.cpp updates, DFlash2 speculative decoding, Apple Silicon prompt-processing note, and tool-only assistant-turn fix.
CHECKED 2026-10-30 - Ollama v0.40.16 release notes ↗
[9] 9 November stable release: Apple Silicon memory note, Responses truncation behavior, model-list behavior, routing and runtime updates. No local replay performed.
CHECKED 2026-11-13
Sources stay attached so you can check the argument. Meaningful revisions keep this address.