Same Agent Framework, Different LLMs: Where Execution Efficiency Gaps Come From

    A controlled comparison of four lightweight LLMs running inside the same agent framework on a complex frontend engineering task. The results show that action rounds, tool-call reliability, service stability, and context management affect delivery efficiency more than raw inference speed or cost. The article also covers the framework-level engineering measures that follow from these findings.

    1. Why a Fast Model Does Not Mean High Efficiency

    Many teams treat inference speed or cost as the main criteria when choosing a model. In real agent workflows, however, a model does not finish in a single call. It must keep planning, calling tools, reading feedback, and correcting errors across dozens of interaction rounds. In this setting, delivery efficiency is usually determined by four dimensions that teams often overlook:

    1. Action rounds: To complete the same task, some models converge within ten rounds, while others need dozens of rounds of trial and error.
    2. Tool-call success rate: Malformed parameters or poorly timed calls trigger chains of retries.
    3. Service stability: Occasional timeouts or rate limits in the inference service compound and extend total runtime.
    4. Context management: On long tasks, the ability to retain key information determines whether an entire run has to be repeated.

    I recently designed a set of controlled experiments to test this. I fixed the agent framework, task, materials, context, and acceptance rules, changed only the underlying model, and compared how each one performed on the same complex frontend engineering task.

    2. Experiment Design: Control Variables, Only the Model Changes

    2.1 Task Definition

    The task was to build a creative studio collaboration system from scratch. The only inputs were a set of openly licensed images, team member information, materials, and seed data for comments. No existing pages were provided as references. The system had to cover five core states:

    • Project overview
    • Inspiration board
    • Asset comments with positional anchors
    • Version approval
    • Release preview

    The pages also had to support three roles (creative director, designer, and client). They had to include interactions such as dragging assets, anchoring comments to specific positions, switching versions, and approving or returning versions. Application state had to persist after a page refresh.

    2.2 Shared Constraints

    All experimental groups used the same configuration:

    1. Context window: 262K tokens
    2. Task budget: 200K tokens
    3. Tool protocol: browser automation MCP
    4. Desktop acceptance: 1440 x 1000
    5. Mobile acceptance: 390 x 844
    6. Repair attempts: one round only
    7. Deliverables: code, screenshots, logs, review records, and metrics

    All compared models were lightweight variants under roughly 300B parameters. A model with an extra-long context window served as a horizontal control.

    3. Results: Four Models, Four Failure Patterns

    All four models completed the task. The differences in how they got there were more informative than the final screenshots.

    3.1 Execution Data

    Model First attempt Final duration Key traits
    Model A Passed on first try About 17 minutes Few rounds, accurate tool calls, no retries
    Model B Full run failed About 72 minutes, including the rerun Drifted from the task midway and had to restart completely
    Model C Passed About 88 minutes No full reruns, but triggered 3 automatic internal retries
    Model D Failed twice in a row About 64 minutes until the first success Default retry strategy failed, and it only completed after switching to extended backoff

    3.2 Breakdown

    Model A: the efficiency benchmark. It completed the most complex acceptance items in 17 minutes. Its planning was strong, and it produced an implementation close to acceptable on the first round, with almost no tool-call parameter errors. This supports the view that the primary driver of agent efficiency is the ability to get it right the first time, not single-step inference speed.

    Model B: the costliest full-run failure. Midway through execution, it departed from the task constraints, so the entire workflow had to be rerun. This shows a common problem: when context management is weak, a model can forget early settings in the second half of a long task. For agent engineering, this means the framework should include staged state checks and self-checkpoints so that drift is caught early and an entire run is not wasted.

    Model C: retry overhead. It avoided full reruns, but its three internal automatic retries stretched the run to 88 minutes. Each retry looks cheap on its own, but together they add up to nearly five times Model A’s runtime. Retries are a fault-tolerance mechanism. Frequent retries, however, often point to unstable output formatting or a weak grasp of the tool protocol.

    Model D: backoff strategy as a bottleneck. The default retry strategy failed twice in a row, and the task only succeeded after switching to an extended backoff strategy. This shows that inference service stability is also a hidden factor in agent efficiency. Even with a capable model, fluctuations at the infrastructure layer can noticeably extend delivery time.

    4. Engineering Takeaways

    4.1 Build a Multi-Dimensional Evaluation System

    When selecting a model, build your own evaluation set that covers at least the following metrics:

    1. Core metrics:
    2. - First-pass yield (FPY)
    3. - Average number of action rounds
    4. - Tool-call error rate
    5. - Full-rerun rate vs. local retry rate
    6. - End-to-end duration distribution (P50/P95)

    4.2 Fault Tolerance at the Framework Layer

    Regardless of which model you choose, the framework should provide:

    1. Checkpointing: Persist state after each stage so that execution can resume from a breakpoint instead of restarting the entire run.
    2. Tiered retries: Separate formatting errors, which are cheap to retry, from logical drift, which needs human review or validation.
    3. Exponential backoff: For server-side fluctuations, lengthen retry intervals gradually to avoid cascading failures.

    4.3 Compensating for Context Engineering Gaps

    For models with weaker context management, the framework can compensate in several ways:

    • Inject task summaries at key checkpoints to counter forgetting.
    • Use a structured task checklist so the model checks its progress against it every round.
    • Limit the size of each round’s output to reduce the chance of drift.

    5. Output Quality as a Separate Lens

    The four outputs differed visibly in visual and engineering style. One leaned toward a lightweight editorial style with a clear, easy-to-read structure. One had the strongest brand consistency across desktop and mobile. One had the highest information density and engineering completeness. One stood out for its typographic detail. Even with the same prompt, each model had a different default idea of what a good product looks like. When choosing a model, teams should check whether its stylistic tendencies match their product’s identity, in addition to efficiency metrics.

    6. Conclusion

    The most important finding from these experiments is this: a model’s low cost or high speed describes only part of its capability. Real agent efficiency depends on the combined performance of action rounds, tool calling, service stability, and context management. Rather than relying on a single leaderboard score, run a controlled comparison on your own real tasks. The data will show which model is the real efficiency leader in your engineering setup.