Local LLM Deployment Benchmarking: A Practical Guide to Performance and Capability Evaluation
A reliable evaluation of a locally deployed large language model requires two separate tracks: performance testing for throughput, latency, concurrency, and memory usage, and capability testing for task accuracy, stability, and token cost. This guide presents a reproducible methodology for identifying inference bottlenecks, interpreting benchmark results, designing structured task evaluations, and distinguishing formatting issues from genuine model limitations.
1. Why Local LLM Testing Requires Two Evaluation Tracks
Many teams deploy a large language model in a private environment, run a few conversational examples, and then move directly to production. They often encounter problems such as increasingly slow responses or output formats that downstream systems cannot parse.
The underlying issue is that model serving quality must be validated from two independent dimensions:
- Performance track: Whether inference throughput, latency, and concurrency on the target hardware meet the business SLA.
- Capability track: Whether the model achieves sufficient accuracy and stability on specific business tasks, such as SQL generation, code completion, or document extraction.
These tracks are independent but can affect each other. Excessive concurrency increases queueing time and may raise downstream timeout rates. Meanwhile, evaluation tasks that consume too many tokens can magnify performance bottlenecks. The two tracks should therefore be tested separately and analyzed together.
2. Performance Testing: Key Metrics and Observability
2.1 Four Metrics That Should Always Be Tracked
A rigorous inference-service benchmark should cover at least the following metrics:
| Metric | Meaning | What to Observe |
|---|---|---|
| Prefill throughput | The rate at which input prompts are processed, measured in tok/s | The single-request peak and how throughput declines as concurrency increases |
| Decode rate | The rate at which output tokens are generated, measured in tok/s | The low point under long prompts and high concurrency |
| TTFT | Time to first token | Separate computation time from queueing time |
| GPU memory utilization | The proportion of memory occupied by model weights and KV cache | Whether the service is approaching its capacity limit and still has room for expansion |
2.2 How to Interpret Common Benchmark Patterns
A real inference benchmark often reveals several representative patterns.
1. Prefill throughput declines significantly as concurrency increases.
With a single concurrent request, prefill throughput may exceed 600 tok/s. When concurrency rises to four or six requests, throughput may drop by half or even further. This does not necessarily mean that the model itself has become slower. Requests may be queued inside the inference framework, causing each request to receive a smaller share of the available compute resources.
2. Decode rate can show a U-shaped fluctuation.
Decode performance is usually higher with short prompts. When long prompts, such as 16K or 32K tokens, are combined with multiple concurrent requests, KV cache memory becomes constrained and batch scheduling becomes more difficult. Decode speed may fall to single-digit tok/s values.
At extreme context lengths, the rate may appear to recover because fewer tasks remain active in the batch. This apparent rebound is generally a form of measurement noise and should not be used as the basis for capacity planning.
3. TTFT degradation is often caused mainly by queueing rather than computation.
If the inference framework allows too few requests to participate in a batch—for example, only two requests per instance—requests beyond that threshold enter a waiting queue. Long prefill requests can also block one another.
In this situation, TTFT may deteriorate almost linearly as concurrency increases, and the deterioration can be much greater than the additional computation time alone would suggest.
2.3 Bottleneck Diagnosis and Tuning Priorities
Once queueing has been identified as the primary cause, investigate the system in the following order:
Step 1: Check the inference framework's concurrency settings- max-num-seqs: maximum number of sequences participating in a batch- max-num-batched-tokens: maximum token budget for a single batchStep 2: Evaluate available GPU memory- GPU memory utilization above 0.9 indicates that the KV cache is close to capacity- Increasing concurrency at this point may trigger preemption or OOM errorsStep 3: Evaluate the trade-offs- Increase concurrency parameters → higher throughput under load, but greaterper-request latency variation- Reduce memory usage, such as through weight quantization or shorter contexts→ more space for the KV cacheStep 4: Scale horizontally- When tuning a single instance produces limited gains, add more instancesand place a load balancer in front of them
A key practical lesson is to check memory utilization before adjusting concurrency parameters. If the KV cache is already close to full capacity, parameter tuning may simply move the queueing problem from a request queue into memory contention. That treats the symptom rather than the root cause.
3. Capability Evaluation: A Reproducible Decision Framework
3.1 Principles for Designing Evaluation Tasks
For structured generation tasks such as text-to-SQL, a complete evaluation loop typically includes the following steps:
- Ask the model to generate SQL from the task description.
- Submit the SQL to a local execution engine, such as an embedded columnar analytics engine.
- Compare the execution result with the reference answer.
- Record whether the task passed, the reason for failure, and the number of tokens consumed.
The task set should be divided into difficulty levels—trivial, easy, medium, and hard. Otherwise, the evaluation produces only an overall pass rate and cannot reveal the model’s capability boundaries.
3.2 Evaluation Rules Can Change the Conclusion
One easily overlooked issue is that overly strict evaluation rules can create a large gap between “logically correct” and “accepted as correct.”
For example, in one 25-question evaluation, the official rule required the number of rows, number of columns, column names, and first-row contents to match exactly. The resulting pass rate was only 36%. However, many failed cases were caused by the model omitting the ROUND(..., 2) precision requirement from the prompt. This created a difference between string and numeric output. If numeric values had been compared with a tolerance of 1e-6, the pass rate would have increased to approximately 88%.
This leads to several important conclusions:
- Define the evaluation policy in advance, including whether to use strict matching or numeric-tolerance matching. Reports should disclose results under both policies when relevant.
- For formatting-related failures, first consider enforcing the requirements through the system prompt—for example, instructing the model to follow the requested precision and output format exactly—rather than immediately concluding that the model lacks the required capability.
- Structural failures are more meaningful indicators of capability gaps. Examples include incorrect nested multi-table JOINs and CTEs, reversed window-function logic, or misunderstanding the business definition of a channel or metric.
3.3 Token Consumption and Inference Efficiency Also Matter
Capability evaluation should measure not only whether the model is correct, but also how expensive it is to obtain the answer.
When results are grouped by difficulty, simple tasks may be completed in an average of two steps and consume slightly more than 2,000 tokens. Difficult tasks may require more than six tool-calling iterations on average. Some may iterate more than ten times and consume over 50,000 tokens in total.
These measurements directly affect cost estimates. If 80% of requests in a business scenario fall into the difficult category, inference costs may still be unacceptable even if the pass rate meets the target.
3.4 Common Failure Categories
| Failure Type | Typical Symptoms | Recommended Response |
|---|---|---|
| Formatting | Precision handling is omitted or column names do not comply with requirements | Add strict system-prompt constraints and apply result post-processing |
| Structural | Complex CTE nesting is incorrect or window functions use the wrong direction | Inject relevant few-shot examples |
| Semantic | The model misunderstands business definitions, such as the channel or dimension being calculated | Add a business terminology glossary and define metrics explicitly |
| Workflow | The tool-calling loop fails to converge | Set a maximum number of steps and provide a fallback path |
4. Final Takeaways
A useful LLM benchmark should not end with a simple conclusion such as “good” or “bad.” It should produce a structured diagnostic report.
On the performance side, the report should include throughput and latency curves at different concurrency levels, along with an analysis of queueing and memory bottlenecks. On the capability side, it should provide pass rates by difficulty, failure-mode distributions, and token-cost curves.
With this information, teams can make more rational deployment decisions:
- Whether to tune deployment parameters to extract more performance from a single instance or scale horizontally for more stable latency.
- Whether prompt engineering can address formatting failures or whether structural weaknesses require a future model update.
- Whether the model’s accuracy is acceptable when token consumption and operating cost are included.
By turning the evaluation process into reproducible scripts and fixed task sets, teams can use the same measurement standard to assess every subsequent model or deployment change.
