Fixed-Harness Model Benchmarking: How Model Differences Determine Agent Execution Efficiency

    This article presents a controlled experiment that evaluates four comparable models on the same complex coding-agent task with a fixed harness, context, and acceptance criteria. The results show that completion time alone is misleading—operational metrics such as action rounds, retry counts, tool-call quality, and context management reveal the true engineering differences between models. The analysis identifies four key variables that drive agent efficiency and offers a reproducible methodology for model selection in production environments.

    Introduction: Why Fixed-Variable Agent Evaluation Matters

    As large language models evolve rapidly, developers face a practical question: how should they choose a model for agentic coding scenarios? The market is full of benchmark scores and positioning labels—“low cost,” “high speed,” “long context”—but do these tags truly reflect how a model performs in end-to-end tasks?

    To answer this reliably, the only sound approach is a controlled experiment. In agent scenarios, model performance depends not only on the model itself but also on external factors such as the execution harness, task context, toolchain, and acceptance criteria. If different models run on different frameworks and tasks, any comparison is meaningless.

    This article describes a set of horizontal experiments in which the harness, task materials, context length, browser environment, and acceptance rules were all fixed—only the model was changed. Four models of similar parameter scale were observed on the same complex task. The key conclusion: whether a model finishes the task is only the surface; the number of rounds, retries, tool-call quality, and context management during execution reveal the model’s true engineering capability.

    Experiment Design: How to Achieve a True “Change-Only-Model” Comparison

    Scope of Controlled Variables

    A credible model comparison must fix at least the following variables:

    • Harness (execution framework): Handles scheduling between the model and tools, including file I/O, command execution, browser operations, automatic retries, etc. A different framework can drastically change the same model’s performance.
    • Task definition: This experiment uses a highly complex creative collaboration system development task involving multiple pages, components, and front-end/back-end interactions—sufficient to discriminate models’ engineering limits.
    • Context and materials: The input prompt, design assets, and reference documents are identical, avoiding hidden bias such as giving model A more information than model B.
    • Environment: Browser and network conditions are identical, eliminating external fluctuations.
    • Acceptance criteria: A unified checklist for the deliverable—e.g., whether pages render fully, interactions work, and core flows pass—avoids subjective scoring.

    Selection Logic for the Tested Models

    Four models with similar positioning were chosen: three are recently released lightweight models under 300B parameters (focused on low cost or high speed), plus one model known for its ultra-long context as a horizontal control. Choosing models of similar scale keeps the focus on engineering capability differences, not parameter-size differences.

    This is important: comparing a trillion-parameter flagship against a 10-billion-parameter lightweight yields a predictable result and offers little selection value. Real engineering choices usually happen among candidate models in the same price and scale range.

    Experimental Results: Process Differences Behind Completion Time

    All four models eventually completed the task—this must be stated upfront. If one only looks at the final deliverable screenshots, the differences are not obvious. The real differences are hidden in the execution process:

    Model category First completion time Process characteristics
    Model A (speed-oriented) ~17 minutes Completed in one pass, no full re-run
    Model B (lightweight) ~1 hour 12 minutes First attempt failed, completed after a full re-run
    Model C (lightweight) ~88 minutes No full re-run, but triggered 3 automatic retries internally
    Model D (long-context) ~1 hour 4 minutes (cumulative) Default retry strategy failed twice consecutively; completed after extended backoff

    The Fastest Model: Efficiency from “Getting It Right the First Time”

    The 17-minute model’s value is not simply “speed” but highly convergent action sequences: every tool call has a clear purpose, no redundant exploratory operations, and no oscillating file edits. In agent tasks, “doing it right once” saves not only time but also context consumption—each unnecessary round consumes limited context window and increases the risk of later mistakes.

    The Model That Failed the First Round: Failure Mode Matters More Than the Failure Itself

    The model that took 1 hour 12 minutes failed its first execution. Analysis of its failure logs shows the problem was not code ability but planning drift in long tasks: after running to the mid-point, the model gradually deviated from the initial task decomposition, producing components with inconsistent interfaces, and the final acceptance test failed.

    This type of failure is typical for lightweight models: single-step reasoning quality is good, but maintaining global consistency over a long multi-step chain is weaker. A full re-run costs double token consumption plus human waiting time—unacceptable in production.

    The Model with Internal Retries: Framework Fallback Masks Model Shortcoming

    The 88-minute model did not trigger a full re-run, but its logs show three automatic retries. The harness’s retry mechanism successfully caught local mistakes—such as a malformed tool-call parameter or a syntax error in generated code.

    This case illustrates the value of harness design: a good execution framework can turn a model’s “occasional errors” into “recoverable delays.” But conversely, when evaluating a model, we must look through the framework’s fallback logic and inspect the raw retry records—otherwise we may draw overly optimistic conclusions.

    The Model with Retry-Strategy Failure: Service Stability Is a Hidden Variable

    The most intriguing case is the long-context control model: two consecutive failures under the default retry strategy, succeeding only after enabling an exponential backoff strategy, with a cumulative time of 1 hour 4 minutes. The root cause of such failures is usually not model capability but server-side instability—rate limiting, timeouts, or request failures due to load spikes.

    This reminds us that a model’s “actual usability” = model capability × service stability. If a capable model’s inference service frequently times out during peak hours, its performance in agent scenarios may be worse than a slightly weaker but more stable model. When designing retry strategies, it is recommended to use jittered exponential backoff:

    1. import random
    2. import time
    3. def call_with_backoff(fn, max_retries=5, base_delay=2):
    4. for attempt in range(max_retries):
    5. try:
    6. return fn()
    7. except TransientError as e:
    8. if attempt == max_retries - 1:
    9. raise
    10. delay = base_delay * (2 ** attempt) + random.uniform(0, 1)
    11. time.sleep(delay)

    Deep Analysis: Four Real Variables That Determine Agent Efficiency

    Based on this experiment, we can distill four core variables that influence real agent efficiency:

    Number of Action Rounds and Path Convergence

    For the same task, some models use 30 tool calls, others use 80. The difference in rounds directly determines time and cost. Models with strong path convergence tend to plan more thoroughly before acting (e.g., outputting a complete file structure design and interface contract first) rather than improvising as they go. When evaluating models, track the tool-call count per task and the percentage of invalid/rolled-back operations—these metrics reflect engineering efficiency better than “task completion rate.”

    Tool-Call Format Reliability

    In agent scenarios, models need to frequently output structured calls (function parameters, file paths, command sequences). Format error rate is a common weakness in lightweight models: wrong parameter types, a missing JSON bracket, incorrect path concatenation. A single error may seem trivial, but over a chain of dozens of rounds, these errors accumulate into significant delays. When selecting a model, test its first-pass accuracy for structured output, not just natural language generation quality.

    Service Stability and Retry Cost

    As mentioned, server-side rate limiting and timeouts directly translate into task failures. For enterprise deployments, you must include the model’s service tier and peak-concurrency performance in the evaluation, and implement graded retries in the harness layer: instantaneous errors use exponential backoff, while logic errors should trigger self-reflection or a fallback strategy—the two must not be conflated.

    Context Management Efficiency

    A long context window does not equal efficient context utilization. Some models support ultra-long context but in long sessions exhibit problems like “forgetting early constraints” or “regenerating already-produced content.” An efficient approach is to introduce context compression and stage-based summarization in the harness: after each milestone, compress historical details into a structured summary and pass only key state to subsequent steps. This not only relieves context pressure but also reduces the probability of model drift over long chains.

    Methodology: How to Reproduce This Evaluation

    If you want to run a similar evaluation for your candidate models, we recommend the following process:

    1. Choose a high-complexity benchmark task: The task must be complex enough (involving at least 10 files and multi-module coordination) to expose differences; simple tasks make every model “look equally good.”
    2. Fix the harness and acceptance checklist: The acceptance rules should be automatically executable—for example, using end-to-end test scripts to validate page rendering and interaction flows.
    3. Log the full execution trace: Record every round’s prompt, tool call, return value, retry event, and timestamp. An evaluation without trace logs is equivalent to not doing it.
    4. Run multiple repetitions: Single runs are stochastic. Run each model at least three times, take the median, and record the variance.
    5. Score across multiple dimensions: Don’t give only a total score; separately report completion time, number of action rounds, retry count, token consumption, and first-pass success rate.

    For enterprise adoption, you can deploy this evaluation pipeline on cloud infrastructure: use container platforms to isolate execution environments for different models, use object storage to archive trace logs, and combine log services with monitoring and alerting for offline attribution analysis of failure modes—forming a sustainable model-selection system. Mainstream cloud platforms like Baidu AI Cloud offer general-purpose product categories (containers, storage, logs, monitoring) that can support the entire evaluation infrastructure.

    Conclusion: Look Beyond Positioning Labels, Rely on Process Data

    The most important lesson from this experiment is: positioning labels like “low-cost model,” “high-speed model,” or “long-context model” describe only one dimension and cannot predict a model’s comprehensive performance in real agent tasks. The fastest model finished in 17 minutes, the slowest took over an hour—a fourfold efficiency gap that is invisible in any public benchmark score. Only fixed-variable experiments that drill into process logs and quantify trajectories can reveal such differences.

    For teams selecting models for agent deployments, we recommend shifting the evaluation focus from “can the model complete the task?” to “at what cost does the model complete the task?”—the four dimensions of action rounds, retry count, context consumption, and service stability provide the real data for engineering decisions. Models are evolving rapidly, but a rigorous evaluation methodology can survive any model release cycle.