Benchmarking Four Open-Source LLMs in the Same Agent Framework: Where Do Agent Efficiency Differences Come From?

    This article presents a controlled benchmark of four open-source LLMs under an identical agent framework and task setup. By fixing the orchestration layer, prompts, assets, browser environment, and acceptance criteria, the experiment isolates model-level differences in multi-turn tool-calling efficiency. All four models eventually passed validation, but their execution paths differed sharply: one completed in about 17 minutes with almost no retries, while others required full reruns, internal retries, or extended backoff. The article analyzes the results across action rounds, tool-call quality, service stability, and context management, and offers practical guidance for model selection, retry design, execution tracing, and cost evaluation in agent applications.

    1. Experiment Background: Moving the Variable from Framework to Model

    In the previous experiment, I fixed the same model and swapped four different agent execution frameworks to observe how the framework layer affects task completion efficiency. The results showed that framework choice has a major impact on delivery speed for complex tasks, with the best combination finishing several times faster than the others.

    This time, I reversed the experimental variable: keep the framework fixed and replace only the underlying LLM.

    The motivation is straightforward. Several open-source models below the 300B parameter scale have been released recently, and they commonly claim low latency, low cost, and high throughput. For teams building agent applications, a natural question is: how efficient are these “fast” and “cheap” models in real multi-turn tool-calling scenarios?

    The experiment selected four models:

    • Model A: a flash-level model focused on visual understanding and low-latency inference
    • Model B: a lightweight model based on a new-generation mixture-of-experts architecture
    • Model C: a flash-level model in the same size class
    • Model D: a model focused on very long context windows, used as a side-by-side control

    2. Experiment Design: Key Details for Controlling Variables

    The core of a fair benchmark is to keep everything except the tested variable consistent. The fixed conditions in this experiment were:

    1. Fixed execution framework: All four runs used the exact same agent orchestration layer, including task planning, tool invocation, result validation, and retry strategy.
    2. Fixed task: The same complex creative collaboration system development task, involving multi-page UI generation, component interaction logic, and unified visual style.
    3. Fixed assets and context: The initial prompts, reference screenshots, design assets, and documents provided to the models were identical.
    4. Fixed browser environment: The browser operation environment, resolution, and network conditions during execution were consistent.
    5. Fixed acceptance rules: Final deliverables were judged by the same automated acceptance standard. Failure to pass acceptance marked that run as failed.

    The significance of this design is that the measured differences in elapsed time and retries can be attributed to differences in the models themselves, rather than interference from the framework, prompts, or environment.

    3. Results: All Four Models Finished, but the Execution Paths Were Very Different

    All four models eventually passed acceptance, but the execution data is far more informative than the final screenshots:

    Model First-round result Total time Key characteristics
    Model A Passed on first attempt About 17 minutes Few action rounds; almost no retries
    Model B Failed first-round acceptance About 1 hour 12 minutes, including a full rerun Large first-round deviation; required a complete restart
    Model C Passed About 88 minutes No full rerun, but 3 internal automatic retries
    Model D Completed after two consecutive failures About 1 hour 4 minutes cumulative Succeeded only after relying on an extended backoff strategy

    1. Model A: Fast Because of Decision Quality, Not Just Inference Speed

    Model A completed the task in only 17 minutes. On the surface, this could be attributed to “fast inference,” but a closer look at the execution trace shows that its advantage came more from high single-step decision quality: tool-call parameters were accurate, generated code passed more often on the first attempt, and the task chain therefore had very few invalid rounds. The total time of an agent task is roughly “effective rounds × time per round,” so reducing invalid rounds often brings larger gains than compressing per-round latency.

    2. Model B: First-Round Failure Exposed a First-Pass Correctness Gap

    Model B failed acceptance after the first round of execution and had to rerun the entire task. Typical causes of this kind of failure include: misunderstanding the requirements of a complex, multi-constraint task; producing an early structure that made later convergence difficult; or gradually drifting away from the initial intent during a long execution chain. For agent scenarios, “can it get it right the first time” matters much more than “how fast is a single response.”

    3. Model C: Retries Were Internal, and Total Time Was Silently Extended

    Model C did not trigger a full rerun, but framework records show that it went through 3 automatic retries internally, for a total time of 88 minutes. This indicates that the model’s outputs were unstable in some stages and needed the retry mechanism as a fallback. Hidden retries are a cost that many teams underestimate: they do not appear as obvious failures, yet they continuously consume time and token budget.

    4. Model D: Only Completed with a Backoff Strategy

    The control model D failed twice under the default retry strategy and completed only after switching to extended backoff, which gradually lengthens retry intervals. The cumulative time exceeded 1 hour. This is often related to rate limiting and timeouts when the server is under high load. It also reminds us that model service stability is a first-class factor in agent efficiency. In long-chain tasks especially, any server-side anomaly can interrupt the execution rhythm.

    4. From Data to Conclusions: Four Determinants of Agent Efficiency

    The most important takeaway from this experiment is that model positioning labels such as fast, cheap, and long-context describe only part of a model’s capability. Real agent efficiency is determined by the following four factors together:

    1. Action rounds: Whether the model can make correct decisions in fewer steps directly sets the upper bound on total time.
    2. Tool-call quality: Function-parameter generation accuracy and format-following ability determine retry frequency.
    3. Service stability: Rate limits, timeouts, and occasional errors are amplified in long tasks, making backoff strategy design critical.
    4. Context management: Whether the model can maintain intent consistency across multiple rounds and avoid forgetting early constraints determines first-pass correctness.

    5. Practical Recommendations

    • Base model selection on real tests, not just parameters and labels. Build a benchmark pipeline with a fixed framework using your own real tasks, and collect metrics such as rounds, retry count, and token consumption.
    • Design retry strategies in layers: use short intervals for quick fallback on single-step retries, and use extended backoff after a full-round failure instead of blindly retrying linearly and wasting time.
    • Record complete execution traces. Classifying failure causes—requirement misunderstanding, format errors, or service anomalies—can directly guide prompt optimization and model replacement decisions.
    • Include hidden retries in cost accounting. A model with a low nominal unit price may end up with a higher overall cost if its retry rate is high.

    For teams building agent applications on the cloud, it is advisable to combine model services with infrastructure such as monitoring and alerting and logging, retain execution-trace data, and continuously iterate on model selection and orchestration strategy. Only then can model capability be translated into stable delivery efficiency.