Affiliate disclosure: As an Amazon Associate, TREN Studio earns from qualifying purchases at no extra cost to you. Prices and stock are set by Amazon and can change.

Quick verdict
Measure median and tail latency across several runs, not one warm-up result. A single fast run on Windows usually reflects a model already cached in memory, a quiet desktop, and a GPU that has not yet throttled. The useful number is the reproducible one you can defend after a reboot.
What tokens per second actually measures
Tokens per second is not one metric. During prompt processing, the runtime reads the prompt and builds the key-value cache. During decoding, it generates one token at a time. A benchmark that reports a single average can hide a slow prefill phase, a short decode burst, or a long pause caused by memory pressure.
For a practical benchmark, record the prompt-processing rate, the decode rate, the time to first token, and the total wall-clock time. If the tool exposes only one number, report that number together with the exact prompt and output length. Otherwise the result is not comparable with another machine.
The test bench: control these variables
I run local model tests on Windows because that is where most readers actually work. The mistake is treating Windows like a fixed platform. GPU scheduling, driver version, power plan, background applications, and even the browser open on the second monitor can change the result.
- Same model file: use one quantization and one model revision for every run. A different quantized build is a different test.
- Same runtime: compare llama.cpp with llama.cpp, vLLM with vLLM, and Ollama with Ollama. Do not compare a cold Ollama pull with a warm llama.cpp run.
- Same prompt: keep prompt length, output length, and sampling settings identical. Record the exact command in a text file next to the results.
- Same power state: plug the laptop in, set the Windows power plan to its performance mode, and disable sleep during the run.
- Same cooling state: start from a stable idle temperature. A benchmark started after a long gaming session is a thermal-throttling test, not a clean comparison.
On my test machine, the first run after a reboot was consistently slower than later runs because the model had to be read from disk. That is useful data for startup planning, but it is not the decode rate. I now record both cold-load time and steady-state decode rate.
Step-by-step benchmark workflow
- Freeze the environment. Note the Windows build, GPU driver, runtime version, model file hash, and the exact command. Close browsers, sync clients, and game launchers that can wake the GPU.
- Warm the model once. Load the model and run a short generation. This moves weights into memory and exposes obvious configuration errors before the measured runs.
- Use a fixed prompt and output length. A benchmark with a tiny prompt tests something different from one with a long document. Pick the shape closest to your real workload and keep it fixed.
- Run the same test several times. Report the median, the fastest result, and the slowest result. The fastest run is not the headline; the spread shows how stable the machine is.
- Watch the hardware while it runs. Record GPU utilization, memory pressure, clock behavior, and CPU load with Task Manager or a vendor tool. If utilization collapses while latency rises, you have found a bottleneck that the tokens-per-second number alone would hide.
- Repeat after a short cooldown. A second batch after the GPU has heated up tells you whether the first result will survive a long session.
- Save the raw output. Keep the command, logs, and a short note about the ambient conditions. A benchmark without its configuration is an anecdote.
How to read the results
The table below is deliberately qualitative. The point is to record the right signals, not to pretend that one machine’s result applies to every setup.
| Signal | What to record | Why it matters |
|---|---|---|
| Cold-load time | Time from process start until the first generated token | Shows storage and initialization cost; useful for desktop and service startup planning. |
| Time to first token | Latency after the prompt is submitted | Captures prefill cost and the user-visible pause before streaming begins. |
| Decode rate | Median tokens per second after the first token | The closest single number to steady-state generation speed. |
| Tail latency | Slowest runs and any long pauses | Reveals thermal throttling, memory pressure, or background contention that averages hide. |
| Resource behavior | GPU utilization, memory use, clocks, and CPU load | Explains why two machines with the same model produce different results. |
Common Windows mistakes
The first mistake is benchmarking inside a busy desktop. Windows may schedule background indexing, updates, or browser GPU work at the wrong moment. Run the test with a clean session and repeat it once to confirm the result.
The second mistake is mixing WSL and native Windows runs. A model running through WSL has a different driver and memory path from the same model running natively. Both are valid, but they are separate test environments. Label them clearly.
The third mistake is measuring only one output length. Short outputs exaggerate startup effects; long outputs expose sustained thermals and memory pressure. Test both a short response and a long response if the application supports both.
The fourth mistake is treating quantization as a free speed switch. Lower-precision weights can reduce memory traffic and increase throughput, but they can also change model behavior. Benchmark quality and speed separately, then decide which trade-off is acceptable for the task.
What makes a result non-comparable
A benchmark stops being useful when the surrounding conditions change. If you switch the model revision, change the prompt, enable a different sampler, or update the GPU driver between runs, you have created a new experiment. That is not automatically a problem, but the result must be labeled as a new configuration rather than compared directly with the old one.
Storage can also make two runs look different. A model stored on a slow external drive may spend most of its startup time waiting for reads, then produce a normal decode rate once the weights are in memory. Record where the model file lives and whether the operating system cached it before the measured run.
Finally, do not compare a laptop running on battery with a desktop plugged into the wall. Power limits and cooling behavior are part of the benchmark. The goal is not to produce one universal score; it is to produce a result another engineer can understand and reproduce inside the same hardware and software envelope.
Key takeaways
- Report median and tail results, not a single best run.
- Record prompt-processing time and decode rate separately.
- Keep model, runtime, prompt, driver, and power state fixed.
- Watch GPU and memory behavior while the benchmark runs.
- Save the command and raw logs so another engineer can reproduce the test.
Alternatives
If you need a quick smoke test, Ollama’s built-in timing output is enough to catch configuration mistakes. For controlled experiments, llama.cpp’s benchmark tool gives more visibility into prompt processing and decoding. For serving and batching work, a vLLM harness is a better fit because it exposes queueing and throughput behavior that a single-user desktop test will miss.
None of these tools replaces a reproducible method. The best benchmark is the one your team can rerun on the same model, the same prompt, and the same hardware after a driver update.
FAQ
Should I benchmark with the desktop visible or headless?
Use the same mode you will use in production. A headless run is cleaner for comparison, while a desktop run shows the real user experience. Record which mode you used.
Why does the first run differ from later runs?
The first run pays for model loading, cold caches, and storage reads. Later runs benefit from warm memory. Both numbers are useful, but they answer different questions.
Can I compare results from different quantization levels?
Only if you treat them as separate tests. Quantization changes memory traffic, output quality, and sometimes runtime behavior. Compare the full configuration, not just the model name.
Editor note: Before publishing, rerun the benchmark on the exact Windows build and driver version you plan to document. Confirm that the model hash, runtime version, prompt, output length, and power plan are recorded, and remove any result that cannot be reproduced from the saved command.