Benchmarking a Production LLM Locally: Speed, Concurrency, and Structured SQL Reasoning Analysis

    After hours of local testing, this review offers a clear initial assessment of a general-purpose LLM's official release: solid performance on simple tasks and complex SQL reasoning, but disappointing response times under high concurrency. The article breaks down prefill and decode speeds, TTFT degradation, queueing behavior, structured SQL pass rates under strict evaluation, token consumption on hard problems, and practical deployment and prompt-engineering recommendations—including batch size tuning, output contract enforcement, and pre-execution result validation.

    After several hours of local benchmarking, we can form a relatively clear initial judgment about the official release of this general-purpose large language model: it demonstrates genuine capability on low-difficulty tasks and complex SQL reasoning, but its response experience under high concurrency is far from ideal. Meanwhile, the model’s actual reasoning logic often outperforms its final evaluation scores—strict format requirements, column name constraints, and numeric precision handling turn out to be the main factors limiting its pass rate.

    1. Test Scope and Evaluation Methodology

    The testing covered two parts:

    1. Local inference performance testing: observing prefill speed, decode speed, behavior under varying concurrency, and time-to-first-token (TTFT).
    2. Structured question-answering testing: using a set of SQL problems covering simple queries, multi-table joins, aggregations, window functions, and complex business definitions.

    The performance tests focused on the following metrics:

    • Prefill: how fast the model reads the input prompt and builds context, typically expressed in token/s.
    • Decode: how fast the model generates output token by token.
    • TTFT: the wait time from when a request is sent until the first token is produced.
    • Concurrency degradation: how per-request speed and overall throughput change as the number of requests increases.
    • Queue time: the wait time new requests face when the number of in-flight requests exceeds the inference server’s configured limit.

    The capability tests used strict grading: a result only counted as passed if the row count, column count, column names, first-row content, and numeric formatting all matched the requirements. This approach is closer to automated evaluation and production-system acceptance testing, but it also amplifies the impact of formatting details on the final score.

    2. Local Inference Performance

    2.1 High single-concurrency prefill speed

    At single concurrency, the model’s prefill speed peaked at around 757.7 token/s. As input length increased from 2K to 32K tokens, observed speeds stayed roughly in the 629–758 token/s range, with no obvious continuous decline as context length grew.

    This suggests that in single-request scenarios, the inference engine can make full use of compute resources, and long context does not directly cause throughput collapse. That said, high prefill speed does not guarantee a good user experience. In real applications, users care about the wait from submitting a request to receiving the first output—not the peak speed of one computation stage in isolation.

    2.2 Prefill speed drops noticeably under concurrency

    As concurrency increased, prefill performance degraded significantly:

    • At 2 concurrent requests, per-request speed dropped by roughly 30%–45%;
    • At 4 concurrent requests, the drop was around 50%;
    • At 6 concurrent requests, some test points dropped by about 63%—for example, in one 2K-input scenario, speed fell from roughly 688 token/s to about 228 token/s.

    This behavior is usually driven by several factors combined. First, multiple requests compete for compute resources and memory bandwidth. Second, long-context requests consume a large share of KV Cache, limiting batching capacity. Finally, if the server allows only a small number of concurrently running sequences, requests beyond that limit enter a wait queue—so what looks like “poor concurrency performance” is fundamentally compute and scheduling capacity not being fully utilized.

    2.3 Decode speed is relatively stable, with dips under high concurrency

    Single-concurrency decode speed was around 23.8–28.7 token/s, fairly stable overall. This shows that when a single request is continuously generating, the model’s token-by-token output capability is acceptable.

    Under concurrency, decode speed generally fell in the 8–18 token/s range. At input lengths of 16K or 32K with 4–6 concurrent requests, some test points dropped to 8–11 token/s. A few 32K test points rebounded to 20–28 token/s, but this is more likely local fluctuation caused by scheduling timing, request length variance, or test noise—not a sign of stable performance.

    The correct way to read this data: the model’s per-request decode capability is relatively stable, but under combinations of long context and high concurrency, both tail latency and per-request speed can deteriorate. In production, don’t just look at averages—track P95 and P99 latency as well as throughput across different input lengths.

    3. Time to First Token and Server-Side Queueing

    Tests showed TTFT rising roughly linearly with input length. With a 32K input, TTFT at single concurrency was about 51.5 seconds, and at 6 concurrent requests it peaked at roughly 186.4 seconds.

    This result indicates that TTFT degradation under high concurrency is not entirely due to slower model computation—the more important cause is request queueing. The inference server’s concurrent sequence limit was set quite low, so once concurrency exceeded it, new requests could not immediately enter the computation phase. Meanwhile, in-flight long prefill jobs blocked other requests, significantly amplifying wait times.

    A request’s TTFT can be decomposed roughly as:

    1. TTFT = queue wait time + prefill compute time + scheduling and transport overhead

    At low concurrency, queue time is short and TTFT is mainly determined by input length; at high concurrency, queue time can become the dominant factor. So optimization should not focus solely on the model itself—also look at the inference server’s batching strategy, sequence limits, memory utilization, and request scheduling.

    4. Structured Problem-Solving Analysis

    4.1 Overall pass rate is low, but performance on basic problems is solid

    Under strict grading, the model passed 9 out of 25 problems, a 36% pass rate. By difficulty:

    • Easy: 8/8;
    • Fairly easy: 1/2;
    • Medium: 0/2;
    • Hard: 0/13.

    This shows the model can reliably handle basic queries, simple filters, and common aggregations, but reliability drops noticeably when facing complex business semantics, multi-table joins, and multi-step result verification.

    However, looking only at the final pass rate tends to underestimate the model’s actual capability. During testing, the model autonomously completed a full loop of “generate SQL → execute → inspect results → revise → execute again,” demonstrating a degree of tool-use planning ability. It also constructed most of the complex patterns—multi-table joins, window functions, lagged-value calculations, row numbering, and cumulative proportions—correctly in most cases.

    4.2 Numeric precision and formatting are the main sources of lost points

    The most typical issue: the model frequently omits the ROUND(..., 2) required by the problem. In terms of business logic, the query result may be entirely correct, but because grading requires an exact match on the first-row string, column names, and numeric format, it still fails.

    For example, when a problem requires two decimal places, these two results may look equivalent to a human:

    1. ROUND(revenue / total_revenue, 2)

    versus:

    1. revenue / total_revenue

    But an automated grading system may treat 0.73 and 0.733333 as different results. In the test, roughly 15 of the 25 problems fell into the category of “logically mostly correct, but failing on format details.”

    If numeric precision were relaxed to a tolerance of about 1e-6, the estimated pass count would rise to about 22/25, a pass rate near 88%. This shows the current bottleneck is not purely insufficient reasoning capability, but unstable adherence to the output contract.

    4.3 Structural errors on hard problems

    A few problems involved more than formatting—the query structure and business definitions themselves were off. For example:

    • On one problem involving multi-table joins and discount calculations, the model completed the computation chain but named the final returned fields inconsistently with the requirements;
    • On one year-over-year/month-over-month analysis problem, the model used window functions but returned empty results, with column names also non-compliant;
    • On one channel-share problem, the model misinterpreted the statistical definition, identified the target channel incorrectly, and produced a completely different share.

    These issues show that complex SQL tasks involve at least three layers of difficulty:

    1. Understanding the business definition expressed in natural language;
    2. Designing correct intermediate results and join relationships;
    3. Outputting the specified fields, ordering, precision, and result shape as required.

    The model may get a roughly correct approach at layer two but slip at layer one or three—and still fail automated acceptance.

    5. Token Consumption and Inference Efficiency

    Easy and fairly easy problems required an average of about 2 tool-interaction steps, consuming roughly 2.2K input and output tokens plus about 0.2K of auxiliary overhead. Hard problems averaged about 6.1 steps—one problem took as many as 17—and consumed around 55K tokens.

    This shows that the cost of hard problems lies not only in generation speed but in the number of execute-check-revise iterations. A task that looks like “just output some SQL” can turn into multiple rounds of trial and error without a clear intermediate validation strategy.

    In practice, you should set:

    • A maximum number of tool calls;
    • A maximum token budget per problem;
    • Query execution timeouts;
    • Retry limits;
    • Termination conditions after result validation fails.

    Otherwise, complex errors can trigger long-running loops that increase latency and burn substantial compute.

    6. Deployment and Prompt Optimization Recommendations

    6.1 Reasonably raise concurrency and batching configuration

    If memory headroom allows, moderately raising the maximum concurrent sequence count and batched-token limit can reduce queueing under high concurrency. In our tests, however, GPU memory utilization was already around 0.91 and KV Cache was near its limit, so parameters should not be raised blindly.

    We recommend an incremental stress-testing approach:

    1. Fix input length and increase concurrency step by step;
    2. Record throughput, TTFT, P95 latency, and memory usage;
    3. Add mixed-length request testing;
    4. Watch for out-of-memory errors, frequent preemption, or latency long tails;
    5. Choose a balance point between stability and throughput.

    6.2 Make the output contract explicit in the system prompt

    For structured tasks, explicitly instruct the model to:

    • Strictly apply the ROUND precision specified by the problem;
    • Never rename columns;
    • Never add extra fields;
    • Preserve the specified ordering;
    • Keep the correct field structure even when returning empty results;
    • Verify filter conditions, join conditions, and statistical definitions before executing.

    For high-frequency structures such as window functions, YoY/MoM comparisons, and cumulative proportions, providing brief examples can help the model build stable solution templates.

    6.3 Move result validation earlier

    Don’t just check whether the SQL returns results after execution—also validate:

    • Whether the returned column count is correct;
    • Whether column names match exactly;
    • Whether the row count is as expected;
    • Whether numeric values carry the specified precision;
    • Whether empty results are anomalous;
    • Whether required ordering or grouping is missing.

    7. Overall Assessment

    Taken together, the characteristics of this official release can be summarized as:

    • Good prefill speed at single concurrency;
    • Stable single-request decoding;
    • Noticeable queueing under long context and high concurrency;
    • Reliable basic SQL capability;
    • Capable of multi-turn tool use;
    • Unstable business-definition understanding and format compliance on hard problems;
    • Final evaluation scores notably below its actual logical capability.

    It is therefore best suited to development-assistance scenarios with modest concurrency requirements, where result validation and secondary correction are permitted. For high-concurrency online serving, prioritize optimizing scheduling, batching, and memory configuration. For automated data analysis, you must add SQL safety checks, result-structure validation, and error-termination mechanisms.

    This round of testing also shows that evaluating an LLM cannot rely on a single total score or a single output. Performance must be analyzed in combination with context length, concurrency scale, and tail latency; capability should distinguish between “logically correct,” “format-correct,” and “business-definition-correct.” Only by putting these dimensions together can we reach conclusions that reflect real production environments.