A Practical Benchmark of Four Leading LLMs for Agentic Coding Efficiency

    This controlled engineering benchmark compares four mid-sized general-purpose reasoning models on a complex agentic coding task. By keeping the execution framework, task description, assets, browser environment, context strategy, and acceptance criteria constant, the study isolates differences in completion time, action count, retry frequency, context management, and service reliability. The results show why real-world agent efficiency depends on more than whether a model can complete a task.

    A Controlled Benchmark of LLMs for Agentic Coding: Engineering Results and Efficiency Analysis

    1. Background: Why Control Variables in Model Evaluation Matter

    As AI agent coding capabilities mature, more developers are using combinations of models and execution frameworks to handle complex engineering tasks. These tasks may include building a complete application from scratch with frontend-backend interaction, creative asset generation, and real-time collaboration.

    There are now many models to choose from, and most claim strong performance in code generation, tool use, and long-context reasoning benchmarks.

    However, benchmark scores often differ significantly from real-world engineering efficiency. A model that performs well in single-turn evaluations may still struggle with a task requiring dozens of actions, repeated browser interactions, and multiple terminal tool calls.

    To address this gap, we designed a controlled comparison. The execution framework, task description, asset resources, context injection method, browser environment, and acceptance criteria were kept identical. Only the underlying reasoning model was changed, allowing performance differences to be attributed as much as possible to the models themselves.

    The four models included in the evaluation were general-purpose reasoning models in the mid-sized parameter range. One had visual understanding capabilities, while another was known for its extremely long context window and served as a comparison group.

    2. Experimental Design: How to Make the Comparison Fair

    2.1 A Standardized Task and Acceptance Criteria

    The test required each model to build a relatively complex creative collaboration system with multiple functional modules, asset management, and interaction logic.

    The acceptance criteria were defined in advance and included:

    • Functional completeness checks
    • Page accessibility verification
    • Successful execution of key interaction flows

    These fixed criteria reduced the gap between a model believing it had completed the task and the task actually passing validation.

    2.2 A Fixed Execution Framework

    All models operated within the same agent execution framework. The framework handled:

    • Context assembly
    • Tool scheduling
    • Action-loop management
    • Automatic retry policies

    Using a fixed framework ensured that every model faced the same tool interfaces, prompt structure, and failure-recovery behavior. The main sources of variation were therefore reasoning quality, instruction following, and output stability.

    2.3 Observed Metrics

    In addition to the binary outcome of whether a model completed the task, we recorded several process metrics:

    • End-to-end completion time: The total time from task submission to successful acceptance, including reruns.
    • Number of actions: The total number of planning and tool-call rounds issued by the model.
    • Automatic retries: Retries triggered by malformed model output, tool-call failures, or server-side issues.
    • Context management performance: Whether the model forgot early constraints or repeated completed steps during the long-running task.

    3. Evaluation Results: Process Data Reveals More Than Screenshots

    All four models eventually completed the task and passed acceptance testing. This is significant: it suggests that mid-sized models have reached a capability threshold sufficient for complex agentic tasks.

    However, their execution processes differed substantially.

    Model 1, an experimental version with visual capabilities, performed best. It completed the task in approximately 17 minutes. Its action sequence was concise, with very little unproductive exploration. Tool-call parameters were correctly formed on the first attempt in most cases, indicating strong understanding of the execution protocol and effective planning across a long action chain.

    Model 2 failed during its first complete run. The failure occurred in the middle-to-late stages of the task, when it needed to maintain consistent state across the application. Including the full rerun, the total time was approximately 1 hour and 12 minutes. This type of failure is often not caused by a single reasoning mistake. Instead, the model loses track of global progress in a long context, causing later steps to rely on incorrect assumptions.

    Model 3 did not require a full rerun, but the framework triggered three automatic retries. Its total execution time was 88 minutes. This model was relatively slow but stable: individual steps were generally acceptable, but its planning was conservative and it issued substantially more actions. The validation overhead at each step extended the overall completion time.

    Model 4, the long-context comparison model, had the most difficult execution process. Under the default retry policy, it failed twice in succession. It completed only after the framework switched to an extended backoff strategy, which increased retry intervals and reduced request frequency to avoid potential rate-limiting or unstable server-side windows. Its cumulative completion time was approximately 1 hour and 4 minutes.

    Importantly, its failures were driven more by the interaction between service stability and retry policy than by model capability alone.

    4. Deeper Analysis: Four Hidden Variables That Determine Agent Efficiency

    4.1 Action Count Is the Real Cost

    Many teams evaluate models only by asking whether they can complete a task. They overlook how many steps the model takes to do so.

    The number of actions directly affects token consumption, latency, and the probability of failure. As the action sequence grows, the context becomes longer and the risk of forgetting or behavioral drift increases.

    In this evaluation, the fastest model also had the most concise action sequence. This suggests that high-quality upfront planning—thinking through the task before acting—is more valuable than frequent trial and error.

    4.2 The First-Attempt Success Rate of Tool Calls

    The smoothness of an agent workflow depends heavily on the accuracy of generated tool-call parameters.

    Format errors, missing parameters, and incorrect field types can all trigger framework retries. Each retry may consume tens of seconds without producing useful progress.

    When selecting a model, teams should create dedicated tool-call stress tests and measure each model’s first-attempt success rate under the same tool protocol.

    4.3 The Coupling Between Service Stability and Retry Policy

    The fourth model revealed an issue that is often underestimated: service instability can be amplified by a fixed retry policy.

    When a service is being rate-limited or experiencing temporary fluctuations, rapid retries are usually ineffective. Extended or exponential backoff can significantly improve the probability of eventual success.

    The engineering implication is that retry policies in agent frameworks should be configurable. Different failure types—such as network timeouts, rate limits, and malformed output—should use different recovery strategies.

    1. # Example: differentiated retry backoff
    2. def retry_with_backoff(fn, max_retries=5):
    3. for attempt in range(max_retries):
    4. try:
    5. return fn()
    6. except RateLimitError:
    7. time.sleep(2 ** attempt * 5) # Rate limits: long backoff
    8. except FormatError:
    9. time.sleep(1) # Format errors: quick retry
    10. except TimeoutError:
    11. time.sleep(2 ** attempt) # Timeouts: moderate backoff
    12. raise MaxRetryExceeded()

    4.4 Context Management Is the Lifeline of Long-Running Tasks

    The longer the task, the more the model depends on the execution framework’s ability to trim, summarize, and maintain context.

    The second model’s failure was fundamentally a loss of global state tracking. In practice, structured progress snapshots can significantly reduce this type of failure. These snapshots should periodically compress completed steps, the current objective, and known constraints into a summary that is injected back into the context.

    5. Model Selection: An Evaluation Framework Beyond Cost and Speed

    The central conclusion of this experiment is that labels such as “low cost” and “high speed” describe only part of a model’s capabilities.

    Real-world agent efficiency is a composite metric determined by:

    • Number of actions
    • Tool-call success rate
    • Service stability
    • Context management capability

    We recommend that developers use the following approach when evaluating models:

    1. Keep the execution framework and task fixed, and change only the model.
    2. Record process metrics rather than only final outcomes, especially retry counts and action counts.
    3. Distinguish failure sources: Determine whether a failure came from model reasoning or service instability, since the two require different optimization strategies.
    4. Test on real business tasks: General benchmark scores provide limited evidence of production performance.
    5. Build flexibility into the framework: Configurable retry backoff, context compression, and progress snapshots can improve the practical efficiency of the same model.

    From an implementation perspective, enterprises can use model inference, logging, monitoring, and alerting capabilities provided by general-purpose cloud platforms to build their own evaluation pipelines. Automating the collection of these metrics makes it possible to establish a continuous feedback loop for model selection and optimization.

    6. Conclusion

    When every participating model can complete the task, the competitive question shifts from “Can it do the job?” to “How fast, how reliably, and at what cost?”

    The gap between 17 minutes and 88 minutes reflects more than inference speed. It also represents differences in planning quality, protocol compliance, and engineering support from the surrounding framework.

    A controlled evaluation methodology can help teams make model-selection decisions based on measured performance rather than promotional claims, especially as new models continue to enter the market.