CPU LLM Inference Performance: A Reproducible Benchmarking Methodology
This article explains why community-reported LLM inference speeds, such as seconds per token on CPU-only setups, are rarely useful without full metadata. It outlines the four missing elements that determine whether a result is usable—CPU and memory topology, thread and parallelism configuration, quantization and weight format, and benchmark definitions—and then presents a single-variable, three-stage measurement approach for building a reproducible CPU baseline. Readers will learn how to interpret memory capacity versus bandwidth, what to do when official backend support is missing, and how to retain raw experiment data for later verification.
1. Why a Rephrased Speed Number Has No Reference Value
Open-source model communities see a steady stream of performance claims in the form of “X seconds per token under a given configuration.” Take the incremental information circulating on 2026-08-18 as an example: with CPU only and roughly 8GB of memory, generation speed was reported at about 26.5 seconds per token; raising memory to roughly 128GB brought it down to about 5.6 seconds per token. Numbers like these spread fast but carry almost no engineering value. The problem is not whether the figures are true, but that they omit every condition required to reproduce the experiment.
Another type of information from the same day was “backend support still empty”: official adaptation for the model had not landed in mainstream inference frameworks, while a lightweight local runtime tool’s model page indicated a subscription tier was required and provided no daily incremental usage baseline. Together, these two facts lead to one direct consequence: anyone trying to assess the practical usability of such a large model in a CPU-only environment has no authoritative reference and must build their own benchmark.
This article makes no product recommendations or evaluations. Instead, it abstracts the problem into a general engineering question: when official adaptation and a unified benchmark are both missing, how do you design a reproducible CPU-only inference performance evaluation system?
2. Missing Metadata: Four Categories That Decide Whether Data Is Usable
2.1 Processor and Memory Topology
“8GB / 128GB” describes memory capacity, not compute capability. What actually determines CPU inference throughput is the microarchitecture generation, the number of physical and logical cores, single-core boost and all-core boost clocks, L2/L3 cache size, the number of memory channels and memory bandwidth, and whether NUMA is enabled along with how nodes are partitioned. Large-model decoding is a typical memory-bound workload, so memory bandwidth often matters more than peak compute. Reporting capacity alone means reporting only half the conditions.
2.2 Thread and Parallelism Configuration
More threads are not always better. A common mistake is pushing thread count to the logical core limit, which leaves the system oscillating between synchronization overhead and cache contention. The items to record include operator thread count, batch or sequence parallelism, whether the process is bound to a NUMA node, whether hyper-threading is enabled, and whether thread affinity is set.
# Illustrative only: inspect topology and cache details to complete experiment metadatalscpu | egrep 'Model name|Socket|Core|Thread|NUMA|MHz'numactl --hardware
2.3 Quantization and Weight Format
Two implementations both labeled “4bit” can differ in numeric type (integer symmetric or asymmetric quantization, low-bit floating-point formats), group granularity, whether mixed precision is used, and whether the KV cache is quantized. These differences alone can produce a 2–3x gap in speed. A performance number without a clear quantization configuration is essentially impossible to compare across setups.
2.4 Benchmark Definition
You must state whether the metric is time to first token (TTFT) or time per output token (TPOT); what the input and output lengths are; whether warm-up is included; whether sampling parameters are fixed (temperature, top-p, maximum length); and whether streaming output is enabled. When definitions are not aligned, the difference between 26.5 seconds per token and 5.6 seconds per token may come down to nothing more than how the measurement was taken.
3. Experiment Design: Building a Reproducible CPU-Only Baseline
A “single-variable control plus three-stage measurement” approach is recommended.
Step 1: Fix the model and quantization. Choose the same weight file and the same quantization version, and record the file checksum so the version cannot change midway.
Step 2: Fix input and output. Use a fixed prompt and a fixed output length (for example, 128 input tokens and 256 output tokens), and disable randomness.
Step 3: Measure in stages. Record load time, TTFT after a single warm-up run, and steady-state TPOT separately, then take the median and standard deviation across multiple runs.
# Illustrative pseudocode: staged timing that produces reproducible metricsimport time, statisticsdef bench(run, prompt, max_new_tokens):t0 = time.perf_counter()model.load() # weight loadingt1 = time.perf_counter()out = model.generate(prompt, max_new_tokens=max_new_tokens, do_sample=False)t2 = time.perf_counter()ttft = out.first_token_time - t1 # time to first tokentpot = (t2 - out.first_token_time) / max_new_tokensreturn t1 - t0, ttft, tpotresults = [bench(1, PROMPT, 256) for _ in range(5)]print("load", statistics.median(r[0] for r in results))print("ttft", statistics.median(r[1] for r in results))print("tpot", statistics.median(r[2] for r in results))
In CPU-only scenarios, platform-side metrics should be collected at the same time: CPU utilization, memory bandwidth usage, swap hits, and whether an out-of-memory event occurred. If cloud resources are used, monitoring alerts and log services can retain the raw time-series data for later review.
4. Interpreting Results: The Real Variables Behind the Capacity Gap
The comparison between 8GB and 128GB is not really “more memory means more speed.” Memory capacity determines whether the weights and the KV cache can be held entirely in memory. When capacity is insufficient, paging or repeated reloading kicks in and single-access latency rises by one to two orders of magnitude. Once capacity is sufficient, the bottleneck shifts to memory bandwidth and thread scheduling, and the benefit of adding more memory decays quickly.
The correct way to read such results is to treat capacity as the threshold condition for “whether it runs at all,” and bandwidth, thread configuration, and quantization format as the tuning variables for “how fast it runs.” Any cross-configuration comparison should first confirm that both setups sit in the same threshold range.
5. Engineering Strategy When Backend Adaptation Is Missing
When no official inference backend provides adaptation and the local runtime tool has both a subscription gate and no baseline, three general paths are available:
- Build an evaluation harness on a unified abstraction layer: wrap model loading, quantization, and sampling behind a common interface with a swappable backend, keeping metric definitions consistent.
- Validate in layers with graceful degradation: first verify the pipeline and timing script with a small-parameter model, then scale up gradually, so environment problems are not mistaken for model problems.
- Turn data into an asset: write each experiment’s raw logs, configuration snapshots, and metrics to object storage to form a traceable experiment archive, and use a container platform to pin environment dependencies.
6. Conclusion
A community “seconds per token” figure becomes evidence rather than hearsay only when it is paired with four elements: processor topology, thread configuration, quantization format, and measurement definition. For developers, rather than chasing a single rephrased number, it is better to spend half a day building a standardized benchmark: fixed weights and quantization, fixed input and output, staged timing, and retained raw data. That way, no matter when official backend adaptation arrives, you own a performance baseline you can recompute at any time, and you can make grounded trade-offs among capacity, bandwidth, and threads.
