Do these 3 things before closing this tab:
1Clear out junk files and repair common Windows errors2Scan for outdated or missing drivers - takes under a minute3Repair Windows errors before they cause bigger problemsiTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more
Benchmarking CPU-based LLM inference on a server means measuring prompt processing, token generation, and real request serving as separate, reproducible workloads. Start with controlled microbenchmarks, then add a server test that records time to first token, intertoken latency, end-to-end latency, and aggregate throughput. A tokens-per-second figure is meaningful only when the model, tokenizer, software build, execution backend, prompt and output lengths, concurrency, cache state, and timing formula are identical or explicitly documented.
What should a CPU LLM benchmark answer?
Write the question before running a command. A benchmark intended to compare two CPU servers is not the same as one intended to tune a runtime or predict a multi-user service.
- Hardware comparison: hold the model, runtime, build, and workload constant while changing the server.
- Software comparison: hold hardware and workload constant while changing the inference engine, compiler build, backend, or runtime version.
- Single-server tuning: vary one setting at a time, such as thread count, batch size, affinity, or cache policy.
- Production characterization: send representative requests at defined concurrency and measure both individual experience and aggregate capacity.
A local benchmark isolates model execution. It does not automatically include tokenization, sampling, HTTP handling, queueing, serialization, network delay, admission control, or contention from other users. Treat it as one layer of evidence, not a prediction of complete service behavior.
The Tool Desk
Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →What must be fixed before comparing runs?
Two runs are comparable only when their workload and execution path match. Record the following in a run manifest so another person can reproduce the result.
Popular on Amazon
- 【90 Degree Full Function USB C Adapter】Supports the latest USB4 standard for up to 40Gbps of bandwidth, 8K video support, and up to 240W Fast charging; Support USB PD 3.1 Extended Power Range (EPR) including 140W, 180W and 240W. Your productivity is easily doubled. *Warm Tip: For the best fit, please make sure the USB-C port is fully exposed; thick or bulky cases may affect compatibility.
- 【Reliable Quality】Made from high-quality, scratch-resistant aluminum alloy, delicate metal frame. get excellent wear resistance and heat dissipation. Non-Slip Design for easier insertion and removal.
- 【Small and portable】Ultra thin size, ultra compact design, a petite physique that matches the minimalist design of your modern laptops. Coming with a slim figure that won't block the port next to the one it's plugged into.
- 【Compatibility】Widely work with most usb c, thunderbolt 4/3 devices. Compatibilit for ROG Ally, Steam Deck, Switch, MacBook Pro, Quest 3 VR headset, Surface Book 2, iPhone 18/17/16/15, Samsung Galaxy S23/S22/S21, Note 20/10, Google Pixel, ChromeBook, etc.
- 【Excellence Customer Support】If you experience any issues or cable failure, simply reach out to our dedicated customer service team. We provide a prompt response within 18 hours, providing you with the necessary technical support to resolve any concerns.
| Area | Record |
|---|---|
| Server | CPU model and stepping, socket count, core/thread count, memory capacity, channel layout, NUMA topology, firmware, operating system and kernel |
| Software | Inference engine and version, compiler and flags, source commit, CPU backend, operating-system libraries |
| Model | Exact model identifier and file, parameter size, quantization, tokenizer, context limit, and any optimized format |
| Execution | Thread count, CPU affinity or mask, NUMA policy, batch and microbatch sizes, context depth, loading mode, cache type, and GPU-layer setting |
| Request | Exact prompt text or prompt corpus, input-token count, requested output length, stop sequences, sampling settings, and concurrency |
| Environment | Warm-up policy, repetition count, test duration, idle background work, power governor, thermal limits, and whether runs were interleaved |
CPU generations, memory channels, NUMA placement, firmware, compiler flags, and runtime versions can materially change results. Reporting only the advertised CPU name hides variables that may explain a large difference.
How do you prove the run is really CPU-only?
A CPU-only claim requires evidence about the active execution path, not merely the presence of a powerful processor. Record the backend, thread settings, and GPU-layer configuration, then verify that no model layers are being offloaded.
- Identify the inference backend selected by the engine and save its startup log.
- Set the GPU-layer or offload option to zero where the engine exposes that control. In llama.cpp tooling this is the
-nglsetting; use the value documented by your installed version. - Record CPU thread count and affinity or mask settings. A process limited to a subset of cores is not equivalent to one using the whole socket.
- Check the server log for messages indicating CUDA, Metal, ROCm, oneAPI, or other accelerator layers. A CPU-only run should show no offloaded layers.
- If a GPU is installed, monitor it during the run and retain the monitoring output with the benchmark record. A zero-layer configuration is stronger evidence than assuming the device was idle.
For a llama.cpp run, the llama-bench documentation describes backend, GPU-layer, CPU-thread, and affinity-related controls. Report the effective configuration, not just the server’s CPU model.
How do prompt processing and generation differ?
Prompt processing (also called prefilling) consumes the input context; generation (decoding) produces output tokens one at a time. They stress the CPU differently, so a single combined tokens-per-second number can conceal an important bottleneck.
- Prompt-processing throughput: input tokens per second while the prompt is ingested.
- Generation throughput: output tokens per second while new tokens are decoded.
- Combined execution: a fixed prompt followed by a fixed generation, useful after the two phases have been measured independently.
In llama.cpp, llama-bench exposes prompt processing (pp), text generation (tg), and combined prompt-plus-generation (pg) tests. Its README states: “The measurements with llama-bench do not include the times for tokenization and for sampling.” Therefore, those results are kernel/runtime measurements, not end-to-end client latency.
How do you run a reproducible llama-bench microbenchmark?
Install the same llama.cpp build on every machine, obtain the identical model file and tokenizer, and verify available options with llama-bench --help. The following commands are a method example; option names and accepted combinations should be checked against the version you installed.
Also popular on Amazon
- 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
- Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
- Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
- HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
- What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
- Choose a fixed case. Set prompt length, generated-token count, context depth, batch and microbatch sizes, CPU threads, and GPU layers explicitly. Do not rely on defaults when comparing systems.
- Run prompt processing. For example, use a 512-token prompt and no generated output, or the equivalent
ppcase exposed by your build. - Run generation. Use a fixed context and generated-token count with the
tgcase. Keep the prompt and context conditions documented. - Run a combined case. Use
pgonly after the separate phase results are recorded. - Repeat. The documented llama-bench default is five repetitions, and the tool reports an average and standard deviation. Keep that default only if it is adequate for your stability requirement; otherwise set and report a different count.
- Save raw output. Preserve the command line, tool output, model checksum, host details, and date rather than copying only the headline rate.
A representative command shape is:
llama-bench
-m /models/model.gguf
-p 512 -n 128
-t 16 -b 512 -ub 512
-c 4096 -ngl 0 -r 5
The exact flags vary by release. The important properties are explicit values, zero GPU layers for a CPU-only case, and a saved repetition count. Run a thread sweep by changing only -t (or the equivalent option), for example 1, 2, 4, 8, 16, and the number of physical cores. Stop interpreting added threads as an improvement when throughput plateaus or latency and variability worsen.
Recommended Free Tools
What do llama-bench numbers leave out?
They leave out at least tokenization and sampling, and usually do not represent network, HTTP, queueing, response serialization, or client-side timing. They are useful for isolating model kernels and runtime settings, but they should not be labeled “request latency” or “user-visible tokens per second.”
Cache state, batch size, context depth, and loading mode also change the work. Run cold-load and already-loaded conditions separately. If the model is loaded once before timing, say so; if load time is included, define the interval precisely.
How do you add a server-facing workload?
Exercise the actual serving path with the request format your application uses. Keep the microbenchmark and server benchmark as separate sections in the report.
- Start the server with a recorded configuration. Save the model, backend, thread and affinity settings, context limit, batch parameters, cache policy, and listening endpoint.
- Prepare a fixed request set. Store prompts and expected output limits. Use the model’s tokenizer, or verify token counts reported by the server; mismatched tokenizers can invalidate rate calculations.
- Define concurrency. A single sequential client, two simultaneous clients, and a saturated queue are different workloads. Report the number of in-flight requests and how it was generated.
- Warm up deliberately. State whether warm-up requests are discarded and whether model loading, JIT compilation, page faults, or cache population occur before measurement.
- Capture timestamps. Record request start, first-token arrival, each token arrival when available, and final response receipt. Keep server-side timings too, because client and server clocks measure different intervals.
- Repeat long enough to expose variability. Report sample size and test duration, not just the fastest request.
The llama-server documentation describes per-token timing in responses, prompt-progress fields, and prompt-cache reuse. Run cold-prompt and cache-reuse cases separately: a reused prefix can reduce prompt work and change time to first token.
Which server metrics should you report?
Use the exact timing window and formula for every metric. Tools disagree about whether warm-up, request-generation overhead, or TTFT is included in total throughput.
Also popular on Amazon
- Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
- Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
- Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
- Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
- What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
| Metric | Definition to state | Why it matters |
|---|---|---|
| TTFT | Elapsed time from request submission until the first generated token is returned | Captures prompt processing, queueing, and initial scheduling from the user’s perspective |
| ITL / TPOT | Time between generated tokens, or output-token time using the tool’s stated calculation | Describes streaming smoothness after the first token |
| End-to-end latency | Elapsed time from sending the request until the complete response is received | Represents completion time for a user or API caller |
| Aggregate output throughput | Total output tokens from all requests divided by the explicitly stated measurement interval | Shows server capacity under a defined concurrency |
| Per-request rate | Output tokens divided by the interval for one request, kept separate from aggregate rate | Prevents a high-concurrency system TPS figure from being mistaken for one user’s speed |
MLPerf Client documentation treats TTFT and the rate for the remainder of the response as distinct user-experience metrics. A NVIDIA benchmarking guide explains that tools such as GenAI-Perf and LLMPerf use different timing windows for total TPS and differ in warm-up, cool-down, and TTFT treatment. Name the tool and publish its formula.
How should you choose prompts and output lengths?
Use requests that match the application, not a convenient single prompt. Keep the exact prompt text, token count, expected output length, stop behavior, and context position identical across configurations.
Different workloads have different pressure points. MLPerf Client documentation lists approximate examples such as 128 input/256 expected output tokens for content generation, 1,856/128 for code analysis, and 7,631/128 for substantial summarization. These categories demonstrate why one prompt length cannot represent every service; they are not universal CPU-server recommendations.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
- Short prompt, long answer: emphasizes sustained decoding.
- Long prompt, short answer: emphasizes prefill and TTFT.
- Long prompt, long answer: stresses memory traffic, context handling, and total completion time.
- Mixed corpus: better represents a service with varied requests, but requires reporting the distribution rather than one average length.
If generation can stop early, either force a fixed output length where the runtime permits it or report realized output lengths. Otherwise, a system that stops sooner may appear faster simply because it did less work.
How do cache state and batching change the result?
Cold prompts, reused prefixes, batch size, microbatch size, and concurrency are separate test conditions. Do not combine them into one score.
- Cold prompt: no reusable prefix is available; prompt processing is fully charged.
- Cache reuse: part of the prompt is already represented in a cache, reducing the work before generation.
- Batching: multiple sequences or tokens are processed together, often changing aggregate throughput and individual latency.
- Microbatching: breaks work into smaller units and can trade memory use against scheduling overhead.
When tuning, change one variable at a time. A larger batch may increase system throughput while making TTFT or per-user latency worse. Report the cache condition and all batch parameters beside every result.
Also popular on Amazon
- Portable and powerful USB-C HUB: BENFEI USB Type-C HUB, with super-soft and knot-free silicone woven design cable, meets most mobile office needs. Compact, lightweight, stylish, and powerful portable USB C Hub equipped with 1 x HDMI port, 1 x 100W charging, and 3 x USB ports. 18-month warranty, 24-hour response, to ensure you feel at ease when using our product.
- Design centered on comfort and reliability: Thanks to BENFEI's end-to-end in-house cable production capability, in-house PCBA and assembly capability, using the industry's most advanced silicone woven design and process, 20cm cable in length, no knots, super-soft, the HUB is easy to use in all scenarios: laptop, tablet, stand etc. Super-soft, 25000+ life cycles, to meet your daily carrying and office needs.
- 100W Charging: Support up to 90W USB C pass-through charging via Type-C port to keep your laptop powered. 10W is reserved for other interface operations. No data and video function on the Type-C port.
- 4K HDMI Display: The HDMI port supports media display at resolutions up to 4K 30Hz, keeping every incredible moment detailed and ultra vivid. Please note that the C port of the Host device needs to support video output.
- Transfer Files in Seconds: Transfer files and from your laptop at speeds up to 10 Gbps with USB A 3.2 port. Extra 2 USB A 2.0 ports are perfectly for your keyboards and mouse.
How many repetitions and which statistics are enough?
Use warm-up, repeated measurements, and a summary that exposes dispersion. For a small fixed microbenchmark, mean and standard deviation are appropriate when the repetitions are stable; llama-bench documents five repetitions as its default and reports both fields.
Outdated Drivers Are Slowing You Down
One free scan finds every outdated or missing driver and matches the right update for your exact hardware.Free scan · exact hardware matchPC Slower Than It Used to Be?
A free scan shows the junk files, broken settings and background clutter dragging Windows down - then fixes them in one click.Free scan · Windows 10 & 11For request-serving tests, report at least sample count, duration, median, and tail percentiles such as p95 and p99 when the tool provides them. Include the distribution of realized input and output tokens. A best run is not a typical result, and a mean without a tail can hide queueing or thermal effects.
Keep unrelated work off the server. Make power and thermal state comparable, and document the governor or limits used. When comparing machines or builds, interleave runs or randomize test order where practical so one system does not always run after the host has heated up or the filesystem cache has changed.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.How do you compare results without creating a false ranking?
Compare like with like on several axes instead of collapsing everything into one score.
| Axis | Comparison rule |
|---|---|
| Prompt throughput | Input tokens per second at the same prompt length, context, batch, and cache condition |
| Generation throughput | Output tokens per second at the same model, quantization, context, and thread settings |
| Responsiveness | TTFT and ITL/TPOT at identical request lengths and concurrency |
| Completion time | End-to-end latency for the same realized output length |
| Capacity | Aggregate output throughput as concurrency rises, with per-user latency shown beside it |
| Quality | Output quality and consistency when quantization or optimized execution differs |
| Deployment limits | Memory footprint and usable context capacity for the intended server |
Aggregate TPS can rise as concurrency increases while individual latency deteriorates. Label “system throughput” and “per-request throughput” explicitly. Quantization and other optimizations can change quality as well as speed; document quality targets and model details rather than treating a faster configuration as automatically better.
Free tools Windows power users keep installed
One-click scans. No signup required.
Do not infer energy efficiency from throughput alone. A power or cost-efficiency claim requires a stated server-side measurement procedure; the available guidance does not establish one universal CPU power protocol.
Also popular on Amazon
- 【Read before You Buy】 Note: This adapter is USB 2.0 version and cannot transmit HDM, VGA, or other video signals. Nevertheless, they are fully capable of charging devices,duplicating files, and can be seamlessly integrated with USB-C earphones, wireless network adapters, and SD card adapters.
- 【Easy to Use and Safe】Thanks to modern manufacturing techniques, we've made these adapters sufficiently compact so that they can remain inserted in your device without noticeable protrusion or inconvenience. This means you don't have to constantly plug and unplug them, reducing the likelihood of wear and misalignment, and making them more convenient to carry around.
- 【Reliable Quality】Engineered for enhanced durability, durable aluminum alloy shell material,get excellent wear resistance and heat dissipation,the male USB C and female USB connectors & the male USB and female USB C connectors are designed to be plugged and unplugged up to 20000 times. Provides data transfer, device charging, memory space expansion, and additional computer peripherals.
- 【Think more for you】Do you need to connect a USB-C-enabled device to an odd device that only has USB-A ports? Then these USB-A male to USB-C female adapters are made for you.Simply insert the adapter into the USB-A port on the device, and you can instantly connect your USB-C device to the device that originally didn't have the correct connection port.
- 【Trusted xiwxi Quality and Service】As a responsible brand seller, you will receive xiwxi's 12-month Quality assurance and lifetime friendly customer service, you're not just buying a product,you're investing in peace of mind with all-round quality and exceptional customer service.
What should a published benchmark report contain?
Use this compact reporting template for each test case:
Purpose: hardware comparison / runtime tuning / serving capacity
Host: CPU, sockets, cores, memory channels, NUMA, OS, kernel, firmware
Runtime: engine/version, commit, compiler/build flags, backend
Model: file/checksum, quantization, tokenizer, context limit
Execution: threads, affinity, NUMA policy, batch, microbatch, cache, GPU layers
Workload: prompt set, input tokens, output limit, stop rules, concurrency
Timing: TTFT, ITL/TPOT, end-to-end, aggregate TPS; formulas and intervals
Procedure: warm-up, repetitions, duration, sample count, thermal/power state
Results: mean, standard deviation, median, p95/p99, realized token counts
Quality: validation method and any output-quality constraint
Attach raw logs and command lines. State whether each number comes from a microbenchmark, server response timing, or client observation. That distinction lets readers understand what the result does—and does not—predict.
What commonly makes a CPU benchmark misleading?
- One combined TPS number: hides whether prompt processing or generation is limiting performance. Publish both phases.
- Unstated offload: GPU layers or an accelerator backend invalidate a CPU-only claim. Record and verify the backend.
- Different tokenizers: token counts no longer represent the same work. Use the model tokenizer or server-reported counts; the AWS benchmarking guidance explains this failure mode.
- Different stop behavior: one system generates fewer tokens and appears faster. Fix the output length or publish realized lengths.
- Cache contamination: a reused prompt is compared with a cold prompt. Separate the cases.
- Best-run reporting: hides thermal throttling and scheduler noise. Publish dispersion and tail latency.
- Mixing concurrency: aggregate server TPS is compared with a single-user rate. Keep the axes separate.
- Calling microbenchmark output end-to-end latency: llama-bench excludes tokenization and sampling, and does not measure network or queueing.
- Changing several knobs at once: you cannot tell which setting caused an improvement. Sweep one variable at a time.
What is the minimum reproducibility checklist?
- CPU, server, memory configuration, operating system, kernel, and power/thermal state are recorded.
- Runtime, build version or commit, backend, model file, quantization, and tokenizer are identified.
- The execution path is demonstrably CPU-only, including the GPU-layer setting.
- Prompt and output lengths, context depth, batch sizes, thread count, affinity, and cache conditions are listed.
- Prompt-processing and generation results are separate; server metrics are added when serving behavior is the goal.
- Warm-up, repetitions, sample size, duration, summary statistics, and variability are stated.
- TTFT, TPOT/ITL, end-to-end latency, and TPS formulas and timing intervals are defined.
- Quality checks are included when quantization or optimized execution paths differ.
How do you interpret a result responsibly?
A result is a statement about one defined workload, not a universal speed promise. Say exactly which model, tokenizer, prompt distribution, output length, concurrency, cache state, runtime, and CPU configuration produced it. If another reader changes any of those, they should expect the ranking or bottleneck to change.
Quick wins for a faster PC:
Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Repair Windows errors before they cause bigger problemsFix Now →The most useful report therefore has two layers: phase-specific microbenchmarks that explain model execution, and server-facing measurements that describe user experience and capacity. Keeping those layers distinct prevents a clean kernel number from being mistaken for the latency a production client will see.
Frequently Asked Questions
Can I compare tokens per second from two different benchmark tools?
Only after checking that both tools count the same tokens over the same interval. Compare their timing formulas, warm-up and cool-down treatment, concurrency, and whether TTFT, tokenization, sampling, or request overhead is included; otherwise publish the figures separately.
Should model loading time be included in CPU inference latency?
It depends on the question. Include loading when measuring cold-start behavior, but exclude it for a long-running service benchmark and state that the model was preloaded; never mix the two conditions in one average.
How can I benchmark a server with variable-length production traffic?
Create a fixed request corpus whose input and output-length distribution matches the service, then report that distribution and realized token counts. Run a separate controlled case with fixed lengths so hardware or runtime comparisons remain interpretable.
Does a higher thread count always make CPU inference faster?
No. Throughput can plateau or decline because of memory bandwidth, synchronization, NUMA placement, or thermal limits, while tail latency may worsen earlier. Sweep thread counts with all other settings fixed and retain both throughput and latency results.

