How to Benchmark Local LLM Performance and Problem-Solving Accuracy
This article presents a practical evaluation methodology for locally deployed large language models after a preview build reaches general availability. It separates performance testing (prefill throughput, decode throughput, TTFT, and concurrency degradation) from capability testing under strict pass/fail rules, then cross-analyzes the two. Readers will find concrete single-machine measurements, a root-cause explanation showing that TTFT spikes come from request queuing rather than compute limits, a reproducible tuning order for max-num-seqs, max-num-batched-tokens, and GPU memory utilization, and a breakdown of why strict scoring understates real model ability. It closes with an optimization checklist covering output contracts, window-function patterns, dual scoring, and regression baselines.
1. Why a GA Release Needs Re-Evaluation
When a model moves from preview to general availability, the change usually involves updated weights, revised context handling strategies, and new default settings in the inference stack. These changes do not only affect answer accuracy; they also shift the resource usage curve and the latency distribution under high concurrency. Carrying preview-period conclusions over to the GA build therefore tends to produce badly skewed judgments.
The safer approach is to split evaluation into two independent tracks: one that measures how fast the machine runs, and one that measures whether the model answers correctly. The interaction between the two is then analyzed separately.
It is worth stressing that local deployment performance is never the result of the model alone. It is the combined product of model architecture, quantization method, scheduling policy in the inference framework, available VRAM, and batching parameters. The same weights can differ several-fold in throughput across different concurrency caps, different maximum batch token limits, and different GPU memory utilization settings.
2. Performance Evaluation: Metric Definitions and Measurement Scope
2.1 Four Core Metrics
- Prefill throughput: the speed at which input prompts are processed; it determines time to first token in long-context scenarios.
- Decode throughput: the per-token generation speed; it determines how smooth reading and interaction feel.
- TTFT (time to first token): the metric users perceive most directly; it includes both queueing time and actual compute time.
- Concurrency degradation rate: the relative throughput drop as concurrency rises from 1 to N; it reflects scheduling and VRAM bottlenecks.
2.2 Typical Measurements
On a single local machine, peak prefill throughput at concurrency 1 lands around 750 tok/s. Across the 2k to 32k input range it holds at 630–760 tok/s, with no clear degradation on long inputs, which indicates that the attention implementation and VRAM bandwidth still have headroom at these lengths. Decode at concurrency 1 stays stable at 24–29 tok/s.
The problems appear on the concurrency axis. At concurrency 2, prefill drops by roughly 30–40%; at concurrency 4, by about half; at concurrency 6, by more than 60% (falling from about 690 to about 230 tok/s with a 2k input). Decode fluctuates between 8 and 18 tok/s, bottoming out at 8–11 tok/s when a long prompt is combined with concurrency 4–6, while a 32k input instead recovers to 20–28 tok/s. Rebounds of this kind are usually sampling noise and should not be used as a basis for optimization.
TTFT rises roughly linearly with input length: about 51 seconds at concurrency 1 with a 32k input, ballooning to about 186 seconds at concurrency 6.
2.3 Root Cause: Queueing, Not Compute
The key finding is that TTFT degradation is driven mainly by queueing. When the inference framework caps the maximum number of concurrent sequences at 2, any request beyond the second enters a waiting queue. Long prefills then block one another, compute is shared across multiple requests, and “throughput down plus latency exploding” happens at the same time. This pattern is easily misread as the model becoming slower, when it is in fact an engineering problem created by scheduling parameters and the VRAM budget together.
The corresponding direction for improvement is to raise the maximum number of concurrent sequences and the maximum tokens per batch, but this has to be balanced against VRAM. When GPU memory utilization is already set to 0.91 and the KV cache is close to full, blindly enlarging batch size triggers preemption and recomputation, which makes jitter worse. A reproducible tuning order:
1) Record the baseline: prefill/decode at concurrency 1, TTFT at 32k2) Raise max-num-seqs: 2 -> 4 -> 8, watch for throughput and TTFT inflection points3) Raise max-num-batched-tokens in step, so batches are not token-starved4) Adjust GPU memory utilization in small steps starting from 0.90, watch for preemption logs5) Re-test across a fixed concurrency ladder (1/2/4/6/8) to build a comparison table
3. Capability Evaluation: Real Pass Rate Under Strict Scoring
3.1 Evaluation Design
The capability track uses structured query generation tasks. The model must complete a tool-calling loop on its own: generate the query, execute it against an embedded analytics database, validate the result, and decide whether it passes. There are 25 questions in total, split into four difficulty tiers: trivial, easy, medium, and hard.
3.2 Result Distribution
Under strict scoring, 9 questions pass, a 36% pass rate: trivial 8/8, easy 1/2, medium 0/2, hard 0/13. If numeric tolerance is relaxed to 1e-6, the number of passes rises to roughly 22 (about 88%).
The contrast exposes the central fact: most lost points come from formatting and precision conventions, not logic errors. About fifteen questions are cases of “logic correct, output format off by a hair,” typically omitting the two-decimal rounding explicitly required in the prompt, which causes strict first-line string matching to fail.
3.3 Three Categories of Structural Failure
- Column name contract mismatch: in multi-table joins with a discount CTE, the row count is correct but the column names differ from expectations.
- Window function returning an empty set: percentile and share window queries return 0 rows with mismatched column names.
- Metric definition misalignment: a channel-share question asks for one channel’s share and the model picks a different channel, which is a semantic alignment issue rather than a syntax issue.
3.4 Cost-Side Observations
Simple questions average two steps and about 2.4k tokens. Hard questions average 6.1 steps, with individual cases reaching 14–17 steps and around 55k tokens. The step inflation comes mainly from repeated self-checking and rewriting, which shows that in long-chain tasks token cost correlates strongly with failure rate.
4. Optimization Checklist
- Enforce the output contract at the prompt layer: write rounding precision, column names, row counts, and ordering requirements as explicit checklist items, and require a self-check after generation.
- Provide reference patterns for window function tasks: supply a reusable skeleton for layered and share calculations to reduce the chance of empty sets.
- Separate “logical equivalence” from “strict matching” in scoring: record both pass rates in internal evaluation to avoid misjudging model capability.
- Fix queueing before chasing speed on the performance side: the concurrency cap, maximum batch tokens, and GPU memory utilization must be tuned jointly and re-tested across a fixed concurrency ladder.
- Establish a regression baseline: on every version update, run the same question set with the same concurrency parameters to build comparable historical curves.
5. Conclusion
The GA build resists any single summary verdict. Long-input prefill is stable and single-concurrency decode is usable, while the engineering bottleneck sits in concurrency scheduling and the VRAM budget. On the capability side, the logical correctness rate is far higher than the strict pass rate, with the shortfall concentrated in format contracts and metric definition alignment. Splitting evaluation into three layers — performance, cost, and correctness — and fixing both the scoring criteria and the concurrency ladder is what makes the conclusions reproducible and actionable.
