LLM Release Benchmark: Inference Speed, Concurrency, and SQL Performance
Local testing of a release-version large language model found stable single-request inference and reliable basic SQL generation, but substantial limitations under concurrent workloads and strict output requirements. This article examines prefill throughput, time to first token, SQL tool-use results, and token costs, then outlines deployment and evaluation improvements needed before production use.
Several hours of local deployment and task testing provide an initial assessment of this release-version large language model. Single-request inference speed and basic SQL generation were relatively stable. However, high concurrency, long-context requests, and complex tasks requiring exact output formats exposed clear weaknesses.
A model evaluation should not rely on a single aggregate score or reduce every result to “correct” or “incorrect.” In practice, speed, stability, concurrency handling, tool-use efficiency, format compliance, and complex reasoning quality jointly determine whether a model is suitable for production.
1. Test Scope and Evaluation Method
The evaluation covered two areas.
The first was local inference performance, focusing on:
- Single-request prefill throughput;
- Throughput changes across input lengths;
- Performance degradation under concurrent requests;
- Generation speed at different concurrency levels;
- Time to first token (TTFT), or the delay between submitting a request and receiving its first output token;
- Queuing and resource contention in long-context workloads.
The second was local SQL testing. Rather than evaluating only a generated SQL statement, the tests used a tool-based execution loop closer to a real data analysis workflow:
- Read the task and database schema.
- Generate a SQL statement.
- Execute it against the database.
- Inspect the returned results.
- Revise the SQL based on errors.
- Execute it again until the result meets the evaluation criteria or a limit is reached.
This approach tests iterative error correction, not just one-shot code generation.
2. Local Inference Performance
Strong Single-Request Prefill Throughput
At a concurrency level of one, peak prefill throughput was approximately 757.7 tokens per second. Across input lengths from 2K to 32K tokens, results ranged from roughly 629 to 758 tokens per second, with no pronounced decline as context length increased.
Prefill processes the input, including user messages, system instructions, conversation history, and tool results. For long-context tasks, its speed directly affects time to first token. The relatively high and stable throughput therefore suggests a useful foundation for single-user long-text processing.
However, prefill throughput alone does not describe the user experience. In a deployed service, multiple requests compete for GPU memory, KV cache capacity, and batching resources. Single-request measurements describe performance under isolated conditions, not overall production performance.
Prefill Throughput Falls as Concurrency Increases
Increasing concurrency produced substantial prefill degradation:
- At two concurrent requests, throughput fell by approximately 30–45%.
- At four concurrent requests, the decline was around 50%.
- At six concurrent requests, the decline reached approximately 63%.
At one 2K-input test point, throughput dropped from approximately 688 tokens per second for a single request to 228 tokens per second at six concurrent requests.
Single-request performance therefore did not scale linearly with concurrency. GPU memory capacity, KV cache usage, batch limits, and scheduling policies all constrained performance.
A decline in per-request throughput is not necessarily a problem if aggregate throughput improves and latency remains acceptable. In these tests, however, greater concurrency also substantially increased waiting time, making server-side queuing a key concern.
Stable Generation Speed, but Weak Long-Context Concurrency
Single-request generation speed ranged from approximately 23.8 to 28.7 tokens per second and was relatively stable. Generation is typically more sensitive than prefill to model size, GPU memory bandwidth, and decoding strategy, so these results provide a useful reference for single-user conversational workloads.
With multiple concurrent requests, generation speed generally ranged from 8 to 18 tokens per second. At input lengths of 16K or 32K tokens and concurrency levels of four to six, some measurements fell to 8–11 tokens per second.
A few 32K test points recovered to 20–28 tokens per second. These results may reflect scheduling timing, differences in request lengths, or measurement noise and should not be treated as sustained performance.
The findings suggest that this deployment is better suited to low-concurrency content analysis or individual local use. A shared online service would need request queuing, rate limiting, and dynamic batching controls to avoid noticeably slow output for some users.
3. Time to First Token and Queuing
TTFT Increases with Context Length
Time to first token increased roughly linearly with input length. At a 32K context length:
- Single-request TTFT was approximately 51.5 seconds.
- At six concurrent requests, TTFT reached approximately 186.4 seconds.
Long inputs require substantial prefill time, and concurrent requests amplify that delay. Users are often more sensitive to TTFT than to total completion time. Even if subsequent generation is reasonably fast, waiting tens of seconds or several minutes for the first token makes the interaction feel unresponsive.
Queuing Was a Major Source of Latency
The deployment’s maximum number of parallel sequences was set relatively low, at approximately two. Once concurrency exceeded that limit, additional requests had to wait for earlier tasks to release resources.
Long-context prefill consumes substantial compute and KV cache resources. When several long requests queue up, the effects compound:
- Later requests cannot begin prefill promptly.
- Active long requests continue occupying compute resources.
- Prefill stages compete for available capacity.
- Effective throughput is shared across requests.
- Time to first token rises sharply.
The observed slowdown therefore cannot be attributed entirely to the model’s computational capability. Deployment settings that were not well matched to the available hardware may also have contributed.
4. Deployment Tuning Priorities
Increase Parallel Sequence Capacity Gradually
Raising the maximum number of parallel sequences may allow the server to accommodate more requests simultaneously. This should be done cautiously: every additional long-context request can significantly increase KV cache usage.
If GPU memory utilization is already close to 91%, there is limited headroom. Increasing concurrency further may lead to:
- Out-of-memory conditions;
- Frequent request blocking;
- Service instability;
- Unexpected process termination;
- Forced truncation of long-context requests.
Increase the limit incrementally, recording throughput, TTFT, GPU memory utilization, and error rates after each adjustment.
Adjust the Batched Token Limit
The maximum number of batched tokens controls how many input tokens the server can process in a scheduling step. Raising this limit may improve aggregate throughput for long inputs, but it also increases peak memory and compute pressure.
Monitor the following metrics together:
- Single-request TTFT;
- Aggregate throughput across concurrent requests;
- Average generation speed;
- P95 and P99 latency;
- Peak GPU memory usage;
- Request failure rate.
Average throughput alone can hide extreme waiting times. For user-facing services, tail latency often reveals stability problems more clearly than averages.
Separate Request Classes
Different workloads should not necessarily share the same scheduling policy. Requests can be divided into three groups:
- Short-context requests with limited output: prioritize fast responses.
- Long-context analysis requests: limit concurrency to prevent them from blocking short requests.
- Offline batch tasks: use a separate queue and process them with spare capacity.
A single shared queue allows long requests to delay short ones. Workload separation can reduce interference and improve the overall experience.
5. SQL Test Results
Good Performance on Basic Tasks
The model passed 9 of 25 SQL tasks, yielding a strict pass rate of 36%. Results by difficulty were:
- All eight simple tasks passed.
- One relatively easy task passed.
- No medium-difficulty tasks passed.
- No difficult tasks passed.
These results indicate useful basic SQL generation capability, but weaker performance on complex business definitions, multi-table joins, combinations of window functions, and strict output constraints.
The model completed the tool-use loop for all 25 tasks: generating SQL, executing it, inspecting results, and attempting corrections. It therefore demonstrated task execution capability beyond producing a single answer and stopping.
Format Mismatches Accounted for Much of the Score Loss
A recurring problem was failure to apply the exact ROUND precision requested. For example, a task might require two decimal places, while the model generated an otherwise logically correct expression without the required rounding.
A human reviewer might consider such an answer broadly correct. Automated evaluation, however, may require agreement on all of the following:
- Number of returned rows;
- Number of returned columns;
- Column names;
- First-row values;
- Numeric precision;
- String formatting.
A mismatch in any one of these areas can cause the entire task to fail.
Under a more permissive numerical tolerance, an estimated 22 tasks could pass, bringing the pass rate to approximately 88%. This is an estimate rather than a confirmed result from a separate evaluation. It suggests that a substantial weakness lies in output-contract compliance, not solely in business logic.
Structural Errors in Complex Tasks
Several error patterns stood out.
Multi-table joins and discount calculations. The model could construct common table expressions and join multiple tables, but sometimes returned the wrong set of fields. This caused column-name or result-structure mismatches.
Quarter-over-quarter analysis. The model attempted to use window functions, but produced empty results, incomplete ordering logic, or incorrect column names. It recognized the relevant SQL technique without consistently handling data boundaries, chronological ordering, and null values correctly.
Misinterpreted business definitions. In one channel-share task, the model calculated the share of the internet channel when the task required the dealer channel. This was not a syntax error; it reflected an incorrect interpretation of the business definition and filtering conditions.
6. Token Consumption and Tool-Use Efficiency
Simple and relatively easy tasks required approximately two tool-call rounds on average, consuming around 2,200 input and output tokens plus a small amount of additional token usage.
Difficult tasks averaged approximately six tool-call rounds. One task required as many as 17 rounds, and token consumption for an individual task exceeded 55,000 tokens.
This creates two problems:
- Task execution takes substantially longer.
- Accumulating multi-round context places additional pressure on the KV cache.
Without a clear error-localization strategy, the model may repeatedly modify unrelated parts of a query and enter an inefficient correction loop. Improvements include:
- Changing only the parts directly related to the current error;
- Returning database errors to the model in a structured form;
- Checking field names, join conditions, and output columns before retrying;
- Setting a maximum retry count for repeated failures;
- Converting task requirements into an explicit result-validation checklist.
7. Prompt and Evaluation Improvements
System instructions should explicitly require the model to:
- Apply the exact
ROUNDprecision specified in the task; - Preserve the requested column names;
- Match the required row and column counts;
- Avoid changing business definitions;
- Check
JOIN,WHERE,GROUP BY, and window-function logic before execution; - Ensure that the final output exactly matches the specified format.
For window-function tasks, generic examples can clarify how to handle:
- Chronological ordering;
- Retrieval of the previous period’s value;
- The first period, where no previous value exists;
- Division by zero in period-over-period calculations;
- Result-column naming;
- Diagnosis of empty result sets.
Examples should clarify conventions rather than replace reasoning. Mechanical reuse can introduce new errors when a task uses different business definitions.
8. Overall Assessment
The combined performance and SQL tests support four main conclusions.
First, single-request inference was relatively stable. Prefill throughput was strong, and generation speed was usable for individual interactions.
Second, concurrency scaling was limited in the tested deployment. As concurrency and context length increased, prefill throughput declined, TTFT rose sharply, and queuing became a major bottleneck.
Third, the model handled basic SQL reasonably well and could execute an iterative tool-use and correction workflow. Complex multi-table analysis, window functions, and business-definition interpretation still required human review.
Fourth, strict format compliance was weak. Many tasks were close to logically correct but failed because precision, column names, or result structure did not meet the requirements.
The model is therefore better suited to low-concurrency local development assistance, SQL drafting, exploratory data analysis, and interactive experimentation. Enterprise online deployment would require further work on concurrency scheduling, GPU memory management, workload separation, automated validation, and retry handling.
A final evaluation should look beyond the quality of a single answer and assess four dimensions together: correctness, format compliance, cost per task, and stability under high concurrency. Large-scale usefulness depends on achieving a practical balance across all four.
