Benchmarking Multiple Models on a Fixed Agent Harness: Analyzing Efficiency Differences

    This article presents a controlled benchmark that fixes the agent harness and varies only the underlying model to reveal what truly drives end-to-end agent efficiency. Four lightweight and long-context models were tested on a multi-role creative collaboration system under unified task, asset, context, environment, and acceptance conditions. The results show that final success does not reflect process cost: completion times ranged from 17 minutes to 88 minutes, with retry counts as high as 85. The article breaks down the real sources of the efficiency gap—action steps, tool-call quality, service stability, and context management—and shows how tuning retry and backoff policies can turn a failing run into a successful one. It concludes with practical model-selection guidance and a reusable formula for evaluating agent performance.

    Benchmarking Multiple Models on a Fixed Agent Harness: Analyzing Efficiency Differences

    1. Experiment Background and Variable Design

    In agent engineering, a common misconception is treating a high model benchmark score as equivalent to fast task completion. In real scenarios, the model is only the decision core; end-to-end latency is largely determined by how well the outer runtime framework (the harness) works with the model.

    In the previous round of controlled experiments, the model was fixed while four different agentic coding harnesses were swapped in. One in-house harness completed the most complex creative collaboration system build in 16 minutes 55 seconds. This round reverses the variables: the harness is fixed to the same in-house agent runtime across all runs, while the task description, asset files, context window configuration, browser automation environment, and acceptance rules are all kept identical. Only the underlying model is replaced.

    The four models compared are all lightweight models below the 300B parameter scale. Three are recently released Flash-series models (including one experimental vision-capable version), and the fourth is a long-context version serving as a horizontal control. This parameter range was chosen because enterprises have strong cost-reduction demands, making lightweight models the main battleground for balancing cost and effectiveness.

    Note that this article does not evaluate any specific vendor product. Models are abstracted as “lightweight text models A/B/C” and “long-context control model D,” focusing on reusable engineering conclusions.

    2. Unified Acceptance Criteria and Runtime Environment

    To ensure comparability, the experiment enforced five points of unification:

    • Unified task: Build a multi-role creative collaboration system with four modules—requirement parsing, asset management, generation task dispatch, and result review;
    • Unified assets: The same set of copy, images, and structured configuration;
    • Unified context: The same system prompt, history-message trimming strategy, and maximum turn limit;
    • Unified environment: The same browser automation sandbox, file system, and network egress;
    • Unified acceptance: Pass conditions are runnable functionality, a working critical path, and properly rendered pages.

    The acceptance script logic is shown below (pseudocode):

    1. def accept(env):
    2. assert env.module("requirement_parse").healthy()
    3. assert env.module("asset_store").count() >= N
    4. assert env.module("dispatch").run_pipeline() is True
    5. assert env.browser.render("/review") == "ok"
    6. return True

    A run is recorded as a “first-time success” only if all assertions pass; otherwise, it counts as a retry.

    3. Four Runs: Process Differences Far Exceed the Final Outcome

    All four models eventually completed the task, but their process curves differed dramatically:

    1. Lightweight model A (experimental vision version): Passed on the first try in 17 minutes, with the fewest action turns and almost no redundant tool calls;
    2. Lightweight model B: Failed on the first round, accumulating 1 hour 12 minutes including a full rerun;
    3. Lightweight model C: No full rerun, but triggered 3 internal automatic retries, totaling 88 minutes;
    4. Long-context control model D: Failed twice in a row under the default retry policy, then completed after extending the backoff window. First-time success accumulated to 1 hour 04 minutes, with a cumulative retry count as high as 85.

    The most valuable part of this data is not the final screenshot, but “where the time actually went.”

    4. Four Real Sources of the Efficiency Gap

    1. Action Steps

    Lightweight model A reached the goal with fewer reasoning-action loops, while some models tended to repeatedly “think-probe-rollback.” The inflation of turns directly and linearly extends the total time.

    2. Tool-Call Quality

    This includes whether commands are correct, whether parameters are right on the first attempt, and whether multiple corrections are needed. A single tool-call failure often means a full round trip to the environment.

    3. Service Stability

    A significant portion of model D’s 85 retries came from server-side rate limiting and timeouts rather than insufficient model capability. This shows that service availability is itself part of agent efficiency.

    4. Context Management

    The longer the context, the higher the per-inference latency and the greater the truncation risk. If the retry strategy does not match the context-trimming strategy, it falls into a negative loop where “the more you retry, the slower it gets.”

    5. Retry Strategy: An Underrated Tuning Lever

    A key action in the experiment was changing the default retry from “fixed interval, low attempt cap” to “exponential backoff with a raised cap,” which finally allowed the long-context model to pass. A deployable parameter skeleton is as follows:

    1. retry:
    2. policy: exponential_backoff
    3. base_ms: 2000
    4. factor: 2.0
    5. max_attempts: 120
    6. jitter: 0.2
    7. timeout_ms: 60000

    There are three key points: backoff should include jitter to avoid synchronized storms; timeouts should align with the model’s single-inference P99; and the retry attempt cap should cover the service fluctuation window rather than being arbitrarily set to 3.

    6. Engineering Conclusions and Selection Recommendations

    • Do not use “low unit price” or “fast speed” as the sole selection criteria; real agent efficiency = model capability × harness compatibility × service stability ÷ retry overhead;
    • Run a small-scale benchmark with a fixed harness first, recording three metrics—action steps, tool failure rate, and retry count—before deciding on a production model;
    • Treat retry and backoff as first-class configuration items and include them in version control;
    • Match the context strategy to the model’s context length to avoid the long-context model being dragged down by the trimming strategy;
    • For cloud deployments, you can combine general capabilities such as container platforms, log services, and monitoring/alerting to turn retry and timeout metrics into an observable dashboard for continuous regression.

    In one sentence: the performance bottleneck of the agent era is shifting from “how smart the model is” to “how stable the system is and how short the loops are.”