Why Slower LLM Models Sometimes Make Fewer Code Changes
A side-by-side LLM benchmark shows a slower model making only a small local edit while a faster model migrates a port and adds new configuration, with both passing all checks. This article explains why comparing latency and change volume directly is a category error, defines eight reproducible metrics from TTFT to cost per edit, and shows how separating reasoning tokens from answer tokens resolves the apparent paradox to support practical model selection.
1. The Observation: The Slower Response Changed Less
In a side-by-side model comparison environment, two models were given the same flawed operations configuration file and asked to locate and fix the problems. The result was counterintuitive: Model A took nearly three times as long as Model B but made only about a dozen lines of local adjustments. Model B finished in under 20 seconds, yet it migrated a port and added a dedicated set of parameters for the new port. Both models ultimately passed all 3 validation checks.
This is often misread as “the slow model is weaker” or “the fast model is too aggressive.” In reality, putting latency and change volume on the same axis is a mismatch of measurement criteria. To understand it, you first need to see what actually happens on the timeline of a streaming request.
2. The Evaluation Environment: Fix the Variables First
The credibility of any comparison depends on whether the environment is reproducible. A well-formed side-by-side evaluation setup typically has the following characteristics:
- The same prompt is sent as a single user message to 2 or more models at the same time;
- No additional system prompt is injected, and no sampling parameters such as temperature or reasoning effort are set;
- Requests using standard model identifiers have no maximum output limit, or the limit is set far above actual usage;
- Usage fields in the streaming response are enabled, and a browser-side timer starts the moment the request is sent.
It is important to note that models handle “default reasoning effort” differently: some reason at medium effort when it is not explicitly specified, while others require thinking mode to be explicitly enabled. If this difference is not recorded during evaluation, all subsequent latency comparisons lose their meaning. Similarly, as long as actual output is far from the limit, the output length cap is not a variable.
3. Eight Metrics: What Each One Actually Measures
Vague metric definitions are the root cause of misused evaluation conclusions. It is recommended to fix at least the following eight criteria:
- Time to First Token (TTFT): The time from sending the request to receiving the first streaming chunk. For models that output reasoning content, the timer stops at the first reasoning chunk.
- Time to First Answer (TTFA): The time from sending the request to receiving the first formal answer chunk. It reflects “how long until the user sees an answer” better than TTFT.
- Total time: From sending the request to the end of the stream.
- Total output tokens: The completion token count from the usage field of the last chunk.
- Reasoning tokens: The reasoning token field in the usage details.
- Answer tokens: Total output tokens minus reasoning tokens.
- Tokens per second: The sum of reasoning and answer tokens divided by total time, measuring end-to-end throughput.
- Cost per edit: The cost derived from total time and token usage, divided by the number of effective changed lines.
The first seven describe “how fast the machine is”; only the eighth describes “how cost-effective this fix was.” Once the eighth is introduced, the paradox of “slow but changed less” dissolves naturally: the slow model spent its time on reasoning tokens, produced very few answer tokens, and therefore converged on a smaller change; the fast model reasoned briefly, went straight to rewriting the configuration, and naturally made more changes.
The illustrative calculation logic can be expressed as:
TTFT = t(first_chunk)TTFA = t(first_content_delta)total = t(stream_end)answer_tokens = completion_tokens - reasoning_tokenstok_per_sec = (reasoning_tokens + answer_tokens) / totalcost_per_edit = (input_tokens * p_in + completion_tokens * p_out) / changed_lines
4. The Prompt: The Key to a Reproducible Comparison
The prompt must be published verbatim, or the conclusions cannot be verified. A qualified task prompt should contain four elements: role and goal, constraints, acceptance criteria, and output format. For example:
You are an operations engineer. The configuration list below contains defects; please fix them.Constraints: change only the necessary lines, do not refactor unrelated fields; preserve indentation and naming style.Acceptance: after the fix, all 3 configuration checks must pass.Output: first give a one-sentence diagnosis, then provide the complete fixed file.
The “change only the necessary lines” clause directly determines whether the change volume metric is comparable. If one side is asked to minimize changes and the other is not constrained, the difference in change volume is merely a prompt difference, not a model difference.
5. The Cost Perspective: Cheap Input vs. Cheap Output
Two models often have complementary pricing structures: one has a lower input unit price, the other a lower output unit price. When selecting, plug in the real workload characteristics:
- Long-context, short-output scenarios (such as large-repository code Q&A and log analysis) are input-dominated, so favor the model with the lower input unit price;
- Short-prompt, long-output scenarios (such as batch code generation and document writing) are output-dominated, so favor the model with the lower output unit price;
- Models that include a reasoning process must also count reasoning tokens on the output-side cost, or the bill will be systematically underestimated.
In engineering, it is advisable to ground cost estimation in an actionable metric, such as budgeting by “cost per thousand effective fixes” rather than “price per million tokens,” and to include effective changed lines and test pass rate as well.
6. Selection Guidance: Map Metrics to Scenarios
- For interaction feel: prioritize TTFA and tokens per second rather than total time;
- For controllable, auditable changes: prioritize answer tokens and cost per edit, combined with a minimal-change prompt constraint;
- For batch throughput: focus on end-to-end throughput and stability under concurrency, and run stress tests on a container platform if necessary;
- In any scenario, treat the test pass rate as a hard gate; speed metrics only become meaningful for comparison after that gate is passed.
7. Conclusion
“Slower yet changed less” is not a paradox but an inevitable result of the difference in allocation between reasoning tokens and answer tokens. When comparing models, first unify the environment and prompt, then interpret the eight metrics in layers, and finally close with cost per edit. Only then can a single demonstration be turned into a reusable selection method. In environments that support multi-model access, such as Baidu AI Cloud, this set of criteria can be directly established as an internal evaluation baseline for the team.
