Comparing Agentic Coding Efficiency of Four LLMs Under the Same Evaluation Framework

    This article presents a controlled comparison of four similarly sized large language models in an agentic coding workflow. By fixing the evaluation framework, task, input assets, context budget, browser validation environment, and acceptance rules, it isolates model behavior across completion time, retries, tool-call quality, service stability, and context management. It also summarizes design-quality differences and offers practical guidance for teams selecting models for automated development pipelines.

    Comparing Agentic Coding Efficiency of Four LLMs Under the Same Evaluation Framework

    Introduction: Why Test Models Under the Same Framework

    At a time when LLM coding capabilities are evolving quickly, benchmark leaderboards keep proliferating, yet there is often a clear gap between leaderboard scores and real engineering experience. A model may perform well in a single Q&A turn but lose momentum in agent tasks that require multiple tool calls, long-context planning, and self-repair. To answer “which model is better suited to my automated R&D pipeline,” the only reliable approach is to fix everything except the model and let candidate models run the same complete workflow under identical tasks, assets, context, and acceptance rules.

    This experiment follows that approach. The evaluation framework, task description, input assets, browser environment, and acceptance criteria were all locked. The only variable was four LLMs of similar parameter scale (referred to below as Models A, B, C, and D). All four are positioned as representative options in low-cost, high-speed, or long-context directions. All final deliverables were completed, but the differences in process are far more informative than the binary result of whether they completed. The fastest model took only about 17 minutes. The slowest case first succeeded only after an extended retry backoff strategy, with cumulative time exceeding one hour and dozens of automatic retries in between.

    This controlled experiment reveals an easily overlooked conclusion: a model’s marketing positioning—cheap, fast, long context—describes only one side of its capability. Real agent efficiency is a composite metric determined jointly by the number of action rounds, tool-call quality, service stability, and context management.

    1. Experiment Design: How to Run a Fair Comparison

    1.1 Boundaries of Controlled Variables

    The first principle of fair evaluation is to separate framework capability from model capability. The experiment fixed the following elements:

    • Unified evaluation framework: all four models connected to the same agent execution framework, with identical prompt templates, tool sets, and loop-control logic;
    • Unified task and assets: identical inputs, including image assets, seed data, and functional requirements;
    • Unified context specifications: about a 262K context window and a 200K token task budget;
    • Unified browser validation environment: real page operations and screenshot validation through a browser automation protocol, with desktop checks at a 1440×1000 viewport and mobile checks at a 390×844 viewport;
    • Unified acceptance rules: first-version screenshots retained for each group, only one round of repair allowed, and final output required to include code, screenshots, execution logs, review records, and metric data.

    1.2 The Task Itself: A Multi-State Collaboration System

    The test task was to build a creative studio collaboration system. The input consisted only of six open-license images and seed data for project members, assets, versions, and comments; no existing page was available to imitate. The model had to autonomously complete five core states: project overview, inspiration board, asset-location comments, version approval, and publish preview. The system included three built-in roles—creative director, designer, and client—and required support for asset drag-and-drop, comment anchor positioning, version switching, approve and return actions, and state persistence after refresh.

    This type of task is suitable for agent evaluation because it tests four capabilities at once: information architecture design (how to organize the five states), interaction logic implementation (drag-and-drop and state persistence), visual expression (original design without reference pages), and engineering quality (responsiveness and data consistency). Any weak link will be exposed during browser acceptance.

    2. Results Analysis: Process Is More Informative Than Outcome

    2.1 Completion Time and Retry Behavior

    All four models ultimately delivered usable results, but their paths were very different:

    Model Completion mode Cumulative time Key characteristics
    Model A Passed on first attempt About 17 min Fewest action rounds; clear path planning
    Model B First round failed; full round rerun About 72 min Failure occurred late in the workflow; rerun cost was high
    Model C No full rerun; three internal automatic retries About 88 min Fast local recovery, but total round count was relatively high
    Model D Default retries failed repeatedly; succeeded after extended backoff About 64 min (to first success) Service stability was the main bottleneck

    Completion is too coarse a conclusion. The time difference between Model A and Model C is more than five times. If they are placed in a production pipeline billed per call, the cost difference would be further amplified.

    2.2 Subjective Dimensions of Output Quality

    Beyond efficiency, the deliverables showed clear differences in design orientation: Model A used a light editorial style, with the lightest information structure and clear project status and member relationships; Model B combined dark tones with off-white, with the strongest brand feel and mobile consistency; Model C built a professional workbench with the highest information density and outstanding engineering completeness; Model D presented a restrained archive-system style. This suggests that, once functionality meets the bar, a model’s default aesthetics and information-organization habits should also be part of model selection, especially when output is directly user-facing.

    3. Four Determinants of Efficiency Differences

    3.1 Action Rounds: Externalizing Planning Capability

    Total agent task time is approximately action rounds × per-round latency. Model A was fast not because single-round generation was faster, but because it completed more thorough planning before acting, reducing rework rounds. This suggests that when evaluating a model’s agent capability, we should measure the ratio of effective actions rather than only end-to-end time. A model that is fast in every round but frequently backtracks may cost far more overall than a model that is slightly slower per round but follows a straight path.

    3.2 Tool-Call Quality

    Tool calls such as browser operations, file reads/writes, and command execution are the atomic operations of agent tasks. Models with high failure rates generate many invalid calls: wrong selectors, drifting file paths, inappropriate command parameters. Each error looks minor alone, but cumulatively they determine whether a task needs a full rerun. Evaluation should record the total number of tool calls, failure count, and failure-type distribution for each group; this reflects engineering reliability better than final screenshots.

    3.3 Service Stability and Retry Strategy

    Model D shows that the efficiency bottleneck may not be model intelligence but inference service stability. Default retry strategies, such as fixed-interval retries, repeatedly hit the same wall when the service is persistently overloaded. Exponential backoff with jitter is often the correct recovery approach. An illustrative backoff implementation is shown below:

    1. import random, time
    2. def call_with_backoff(fn, max_retries=6, base=1.0, cap=60.0):
    3. for attempt in range(max_retries):
    4. try:
    5. return fn()
    6. except RetryableError:
    7. delay = min(cap, base * (2 ** attempt))
    8. time.sleep(delay * (0.5 + random.random()))
    9. raise RuntimeError("exceeded max retries")

    In production, an agent framework should treat retry budget, backoff curve, and circuit-breaker thresholds as first-class configuration items rather than relying on defaults.

    3.4 Context Management

    A 262K window may look ample, but in tool-call loops with hundreds of rounds, history expands quickly. A good framework needs to summarize and compress when approaching the budget cap, trim redundant tool-return content, and ensure that critical state—such as the completed subtask list—is not truncated. Models also differ in long-context utilization efficiency: some show degraded instruction following when context approaches full load, causing later workflow failures. Model B’s first-round failure occurred at this stage.

    4. Implications for Team Model Selection

    Based on this experiment, here are three actionable recommendations:

    First, use real tasks instead of leaderboards. Choose a complex task covering the team’s typical workload, fix the framework and acceptance rules, and let each candidate model run at least one complete workflow. Record four core metrics: time, action rounds, retry count, and tool-call failure rate.

    Second, include retry and context strategies in the evaluation. The same model can perform very differently under different backoff strategies and context-compression schemes. Engineering optimization at the framework layer can often compensate for some model-layer shortcomings.

    Third, distinguish generation quality from delivery efficiency as two procurement goals. If output is directly customer-facing, such as marketing page generation, aesthetics and brand consistency should carry more weight. If it is for an internal automation pipeline, first-pass success rate and end-to-end time are key. In this regard, leveraging model services and evaluation infrastructure from mainstream cloud providers such as Baidu AI Cloud can help teams build their own controlled experiment environments at lower cost, use general cloud capabilities such as log services and monitoring/alerting to retain metric data from each evaluation, and form a sustainable basis for model selection.

    Conclusion

    As model capabilities become increasingly comparable, the focus of competition is shifting from how smart a single generation is to reliable delivery on long-chain tasks. The core takeaway from this four-model comparison is not which model was fastest, but the validation of a reusable evaluation paradigm: fixed framework, single variable, process traceability, and multi-dimensional measurement. Only by engineering the experimental method itself can teams continue to make evidence-based rather than marketing-based selection decisions as models iterate rapidly.