Benchmarking Four Models with a Fixed Agent Harness: What Actually Drives Agent Efficiency

    This article reports a controlled benchmark that holds the Agent harness, task, environment, and acceptance rules constant while swapping only the underlying model. Four mid-sized models all passed the same task, but their paths differed sharply: one finished in 17 minutes with no full rerun, while the others took 64 to 88 minutes due to full reruns, internal retries, or repeated rate-limit failures. The article breaks down the four sources of the efficiency gap—action rounds and wasted loops, tool-call success and error recovery, service stability and backoff strategy, and context management—and closes with a reusable evaluation and tuning checklist that shifts measurement from final screenshots to process metrics such as first-success time, total time, action rounds, and tool failure rate.

    1. Background and Problem Definition

    In the engineering practice of Agent applications, a common misconception is treating “model capability” as equivalent to “Agent efficiency.” Selection often focuses only on parameter count, context window size, and per-call price, while overlooking the factors that actually determine end-to-end delivery time: whether the model falls into unproductive loops across multiple rounds of action, how well it recovers after a tool call fails, how stable the service is under high concurrency, and how well it manages context as it accumulates.

    The core idea of this comparison is to control variables. In the previous round, the underlying model was fixed and four different Agent harnesses were swapped in to observe how framework differences affected elapsed time. This round inverts the variable: the harness is fixed, and the task description, asset files, context injection method, browser environment, and acceptance rules are all held identical, with only the underlying model changing. The comparison covers four models with parameter counts in the mid-range or below, one of which serves as a horizontal reference for long-context capability.

    The value of this kind of experiment is not to rank models, but to expose process differences. The final screenshots may all look like the task was completed, yet the quality of the completion path varies enormously—and that variance is exactly what gets amplified in production into cost, latency, and user experience problems.

    2. Experiment Design: Ensuring Comparability

    For the conclusions to be credible, uncontrollable factors must be reduced as much as possible. This experiment followed a few principles:

    1. Single harness: All four runs used the same Agent framework, with identical prompt templates, tool registry, and retry strategy entry points.
    2. Single task: The same medium-complexity task involving creative collaboration and multi-page generation was used, with acceptance based on executable checks rather than subjective impressions.
    3. Single environment: The browser instance, asset directory, and network egress were kept consistent to avoid environment jitter polluting the data.
    4. Complete records: Action rounds, tool call counts, failure and retry counts, first-success time, and total elapsed time were all logged.

    The record structure can be abstracted schematically as:

    1. {
    2. "model_alias": "model_a",
    3. "action_rounds": 42,
    4. "tool_calls": 118,
    5. "tool_failures": 3,
    6. "auto_retries": 0,
    7. "first_success_at_sec": 1020,
    8. "total_sec": 1020
    9. }

    The gap between first_success_at_sec and total_sec is the “rerun cost”—a key metric missing from many evaluation reports.

    3. Results Overview: Four Distinct Completion Paths

    All four models eventually passed acceptance, but their process curves were completely different:

    • Model A: Passed on the first attempt in 17 minutes, with no full rerun, the fewest action rounds, and the highest first-try success rate for tool calls.
    • Model B: Failed the first round, triggered a full rerun, then succeeded, for a cumulative 1 hour 12 minutes.
    • Model C: No full rerun, but 3 automatic internal retries by the harness, for a cumulative 88 minutes.
    • Model D: Failed twice in a row under the default backoff strategy, then completed after switching to a longer backoff interval, for a cumulative first success at 1 hour 04 minutes.

    Plotted on the same timeline, these four paths reveal a counterintuitive fact: the slowest model does not necessarily have the worst single-action quality, and the fastest model is not necessarily the “smartest”—it is more likely the one that makes the fewest mistakes.

    4. Root Cause Analysis: Four Sources of the Efficiency Gap

    4.1 Action Rounds and Unproductive Loops

    Agent elapsed time is roughly “action rounds × per-round latency.” Model B’s full rerun meant all work from earlier rounds was discarded—the most expensive failure mode. Engineering practice should reduce this loss with a checkpoint mechanism: persist completed artifacts and resume from the most recent checkpoint on rerun instead of starting from zero.

    4.2 Tool Call Success Rate and Error Recovery

    Model C’s 3 internal automatic retries show that failure is not fatal, but each retry consumes context budget. If the error returned by a tool is semantically vague, the model tends to repeat the same wrong action. The improvement direction is to structure tool errors, for example:

    1. {"ok": false, "reason": "selector_not_found", "hint": "page_not_loaded", "retryable": true}

    Explicit retryable and hint fields can significantly reduce blind retries.

    4.3 Service Stability and Backoff Strategy

    Model D exposed server-side rate limiting or transient unavailability. Default short-interval retries will almost certainly fail repeatedly under rate limiting. The sensible approach is exponential backoff with jitter, and distinguishing “retryable errors” from “non-retryable errors” so that parameter errors are not swept into retries.

    4.4 Context Management

    The advantage of a long-context model is that it can hold more assets, but the cost is higher per-round latency and diluted attention. In practice, context should be compressed: keep task constraints and acceptance criteria, summarize historical tool output, and switch large blocks of assets to on-demand retrieval rather than full injection.

    5. A Reusable Evaluation and Tuning Checklist

    • Fix the harness and acceptance rules, and change only a single variable;
    • Record both first-success time and total time to expose rerun cost;
    • Introduce checkpoints and artifact persistence for long tasks;
    • Structure tool errors and mark whether they are retryable;
    • Use exponential backoff with jitter for retries, and set an upper limit;
    • Manage context in layers: constraints stay resident, assets are fetched on demand;
    • Use action rounds and tool failure rate as core process metrics, rather than only looking at the final screenshot.

    6. Conclusion

    Positioning a model as “low cost” or “high speed” describes only one facet of capability. Real Agent efficiency is the combined result of model action quality, tool ecosystem maturity, service stability, and context engineering. The recommendation for developers is to upgrade evaluation from “looking at results” to “looking at the process,” and to expand optimization from “swapping models” to “changing the harness, changing tool contracts, and changing retry and context strategies.” Only then can you achieve a stable, predictable end-to-end delivery time at a controlled cost.