Evaluating Local LLM Deployment: Performance and Problem-Solving Benchmarking Methods

    This article breaks down a practical benchmarking methodology for locally deployed large language models, covering both inference performance and task capability. It explains why prefill and decode throughput must be reported separately, presents a test matrix of input length versus concurrency, and shows typical results for throughput decay, TTFT, and queueing under load. It then details how to trace bottlenecks to scheduler and GPU memory configuration rather than the model itself, with illustrative tuning parameters. On the capability side, it describes a tool-calling benchmark over 25 data queries, analyzes failures caused by strict output formatting rather than flawed logic, and reports step counts and token costs. Readers will find concrete metrics, attribution methods, and actionable improvement suggestions for building reproducible, comparable benchmarks in their own environments.

    1. Benchmarking Background and Goals: Why “It Runs” Is Not the Same as “It Works Well”

    Once a new LLM version is released, developers usually care less about parameter count and more about two down-to-earth engineering questions: first, how fast does it actually run on their own hardware and inference framework; second, can it reliably produce correct results for complex real-world business problems. These two questions map to “inference performance” and “task capability,” and any serious benchmark must cover both.

    A common mistake teams make is measuring only the token generation speed of a single request and concluding that “performance is fine.” Real workloads are concurrent, involve long contexts, and include tool calls. Numbers that look great at a single concurrency level may drop by half at 4 to 6 concurrent requests; accuracy measured with short prompts may fall sharply when multi-step reasoning and strict format matching are required. This article therefore defines benchmarking goals across three layers:

    • Performance layer: throughput (prefill/decode), time to first token (TTFT), and the concurrency decay curve;
    • Capability layer: complex query generation, multi-step tool calling, and structured output compliance;
    • Attribution layer: locating performance bottlenecks and diagnosing capability failures, with actionable improvement items.

    2. Performance Benchmarking: Metric Definitions and Test Design

    2.1 Two Stages That Must Be Measured Separately

    Autoregressive inference has two stages with completely different resource profiles. Measuring them together inevitably produces misleading conclusions:

    • Prefill: processes all input tokens at once, is compute-intensive, and typically saturates available compute;
    • Decode: generates tokens one by one, is memory-intensive, and is constrained by GPU memory bandwidth and batching efficiency.

    Throughput must therefore be reported separately for each stage, rather than as a single vague “tokens/s” figure.

    2.2 A Reference Test Matrix

    A benchmark should cover at least the following dimensions, forming a two-dimensional matrix (input length × concurrency):

    Scenario Input Length Concurrency Key Metrics
    Short prompt, single concurrency 2k 1 prefill/decode peaks
    Long prompt, single concurrency 16k/32k 1 length decay, TTFT
    Medium concurrency 2k/8k 2/4/6 throughput decay ratio
    Long prompt, high concurrency 16k/32k 4/6 queueing and blocking

    Typical observations take this shape: single-concurrency prefill peaks at roughly 750 tok/s, with no significant length decay from 2k to 32k. But when concurrency rises to 2, throughput drops by about 30–40%; at 4 concurrency it drops by about half; at 6 concurrency the drop can exceed 60% (for example, a 2k input falls from about 688 tok/s to about 228 tok/s). Decode stays stable at 24–29 tok/s under single concurrency, falls to 8–18 tok/s under concurrency, and hits a low of 8–11 tok/s when long prompts are combined with high concurrency.

    TTFT rises roughly linearly with input length: at 32k input, single concurrency is about 51 seconds, worsening to about 186 seconds at 6 concurrency. The key judgment here is that the main cause of TTFT degradation is not the model itself slowing down, but queueing.

    2.3 Bottleneck Attribution: Breaking “Slow” into Verifiable Causes

    When throughput collapses under high concurrency, do not attribute it to the model right away. Look first at the inference framework’s scheduling configuration. A common cause is an overly conservative batching limit—for example, setting the maximum number of concurrent sequences to 2—so that requests enter a waiting queue once concurrency exceeds 2, long prefills block one another, throughput gets diluted, and TTFT stretches out.

    The corresponding tuning direction is to raise the maximum number of concurrent sequences and the maximum tokens per batch, letting the scheduler merge multiple requests into larger batches. But this requires balancing GPU memory: when memory utilization is already above 0.9 and the KV cache is nearly full, blindly increasing concurrency triggers preemption and recomputation, making things slower instead. A reasonable approach is to adjust KV cache precision, enable paged cache reuse, cap the maximum context per request, and watch the preemption count during load testing.

    Illustrative configuration tuning logic (expressing the tuning approach only, not a specific product interface):

    1. # Before tuning: concurrency is hard-capped, requests queue up
    2. max_num_seqs = 2
    3. max_num_batched_tokens = 8192
    4. gpu_memory_utilization = 0.91 # KV cache nearly full
    5. # After tuning: relax batching while controlling memory risk
    6. max_num_seqs = 8
    7. max_num_batched_tokens = 16384
    8. gpu_memory_utilization = 0.88 # leave headroom for activations and fragmentation
    9. enable_chunked_prefill = true # chunk long prefills to reduce mutual blocking

    Note that the parameter names above are common conceptual expressions used across inference frameworks in the industry; naming varies slightly between implementations, so refer to the documentation of the framework you actually use.

    3. Capability Benchmarking: Real Pass Rates Under Strict Judging

    3.1 Test Set Design: Using Tool-Calling Loops to Assess Real Capability

    Capability evaluation should not look only at question-answering text. Instead, construct closed-loop tasks with tool calls: the model generates a query → executes it in an embedded analytics database → verifies the result itself → decides whether the task requirements are met. Using 25 data query problems ranging from easy to hard, the difficulty distribution is 8 trivial, 2 easy, 2 medium, and 13 hard.

    Results show clear stratification: all trivial problems pass, half of the easy ones pass, and all medium and hard ones fail, for a total of 9 passes and a pass rate of 36%.

    3.2 Failure Attribution: Right Logic, Wrong Format

    The most valuable finding is the structure of the failures. In 20 of the 25 problems, the model completed the entire tool-calling loop, correctly writing complex multi-table joins and window functions (such as period-over-period lag, ranking, and cumulative share), yet still failed the final judgment. The reason comes down to one point: the required numeric precision format was omitted, while the official judging requires the first line of the result to match as a strict string. This produces a widespread pattern of “logic correct, format off by a hair.” If numeric comparison is relaxed to a tolerance of 1e-6, the pass rate can rise to about 88%.

    Three other structural failures are worth recording separately:

    • The returned column names do not match what the problem specifies (in multi-table scenarios with common table expressions);
    • Window function scenarios return zero rows, with mismatched column names;
    • Misunderstanding of business definitions, such as computing the wrong channel scope, causing overall deviation in share results.

    3.3 Cost Observation: Steps and Token Consumption

    Capability evaluation must also record cost. Simple problems take an average of 2 steps and about 2.4k tokens; hard problems average 6.1 steps, with individual problems reaching 14–17 steps and consuming on the order of 55k tokens. A surge in steps often means the model is repeatedly trial-and-erroring during self-verification, which is both a capability signal and a cost-risk signal.

    4. Improvement Suggestions: From Prompt Engineering to Benchmarking Criteria

    • Explicitly reinforce the output contract in the system prompt: output must strictly follow the required precision, column names, and row count, and treat “format compliance” as equally important as “logical correctness”;
    • Provide a few example queries for error-prone patterns such as window functions and cumulative share to reduce structural error rates;
    • Report benchmarking criteria in layers: give both the strict-match pass rate and the tolerance pass rate, avoiding a single number that hides real capability;
    • On the performance side, build a baseline matrix of “input length × concurrency,” and include TTFT and preemption count in routine regression;
    • Tune GPU memory and batching parameters together, first relaxing concurrency in small steps and observing whether throughput and TTFT improve in tandem.

    5. Conclusion

    A credible benchmark must answer both “how fast” and “how accurate,” and break the causes of failure on both sides down to a verifiable level. Performance problems usually stem from scheduling and GPU memory configuration rather than the model itself; on complex tasks, capability problems are often not an inability to solve the problem but inadequate adherence to the output contract. Only by turning the benchmark into a matrix, layering the judging criteria, and parameterizing the tuning can you obtain reproducible, comparable, and iterable conclusions in your own environment.