Agent Efficiency Benchmarking: Fixed Harness, Swapped Models — Measuring Turns, Retries, and Stability

    A practical methodology for comparing LLMs in agent scenarios: fix the execution harness and task, swap only the model, and measure first-run success rate, action turns, retry behavior, and service stability. Based on real tests across four models, this article explains why single-step speed doesn't equal end-to-end efficiency and proposes a five-dimension model selection framework. Agent efficiency emerges from the combined effect of model capability, harness engineering, and service reliability—not from benchmark scores alone.

    1. Why “Fast Inference” Doesn’t Mean “Fast Delivery”

    When evaluating models for agent scenarios, many teams habitually look at two metrics: parameter scale and single-inference speed. Both matter, but they only describe single-step capability. The end-to-end completion time of a real agent task is jointly determined by the total number of action turns, tool-call success and failure, exception retries, and context management. A model with fast single-step inference can end up slower overall if its tool-call format frequently breaks and requires multiple correction rounds.

    In my previous round of experiments, I fixed the model and compared four different agent execution frameworks (harnesses). The conclusion: the engineering maturity of the execution framework significantly impacts efficiency. This time, I inverted the variable: the harness stays completely fixed, and only the underlying model is swapped. Using the same task, assets, context, browser environment, and acceptance criteria, I compared several mid-sized models under the 300B parameter class, plus one long-context model as a control.

    2. Experiment Design: How to Make the Comparison Fair

    2.1 Controlled Variables

    For a model-swap comparison to be meaningful, everything except the model must stay identical:

    • Same task: one complex creative collaboration system build, involving multiple pages, components, state management, and interaction logic;
    • Same assets: identical design mockups, requirement descriptions, and reference resources;
    • Same context: identical system prompts, task instructions, and conversation history window configuration;
    • Same execution environment: the same browser automation setup and the same tool-calling interfaces;
    • Same acceptance criteria: final acceptance based on screenshots and feature completeness, with no relaxed standards for any model.

    2.2 What Data to Record

    Beyond total completion time, I focused on four categories of process data:

    1. First-run success rate: whether the task completes in a single pass;
    2. Action turns: the total number of steps the model drives the agent through;
    3. Retry behavior: whether retries happen at the framework level (full re-runs) or inside the model (self-correction);
    4. Service stability: frequency of API timeouts, rate limiting, and interrupted responses.

    These four categories are far more diagnostic than “what the final screenshot looks like”—a screenshot only tells you the outcome; process data tells you where the differences came from.

    3. Four Test Results and Process Analysis

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

    3.1 The Efficient Model: One Clean Pass in 17 Minutes

    The best-performing model finished in about 17 minutes with virtually no failed retries. Analyzing its behavior trace reveals three traits:

    • Stable tool-call formatting: every structured output (e.g., JSON for tool parameters) conformed to the spec, triggering zero parse failures;
    • Strong planning ability: it produced a sensible task decomposition up front, and execution followed the plan, minimizing wasteful “do it, then redo it” turns;
    • High context utilization: across a long task, it correctly referenced previously confirmed decisions, avoiding repeated confirmation.

    This shows that a model with fast single steps and strong format-following ability produces a compounding effect in agent scenarios—saving a little each turn adds up to a huge gap over dozens of turns.

    3.2 The First-Run Failure: 1h 12m After a Full Re-run

    Another model failed midway through its first execution and required a complete re-run, bringing total time to roughly 72 minutes. The failure cause is worth examining: a mid-task tool call returned an unexpected structure, the agent failed to recover automatically, the task state was corrupted, and the only option was to start over.

    This exposes a fault-tolerance design problem, not just a model problem. If the harness had a checkpoint mechanism, recovery could resume from the most recent stable state instead of restarting the entire run, significantly reducing total time. This reinforces a point from my previous article: framework engineering capability and model capability are multiplicative—a weakness on either side gets amplified.

    3.3 The Self-Healing Model: 88 Minutes, Zero Full Re-runs

    The third model never triggered a full re-run, but carried 3 internal automatic retries, totaling 88 minutes. Its pattern was “fix while failing”: when a step produced abnormal output, the model detected and corrected it in subsequent turns. The task kept moving forward, but at a slower pace.

    This behavior points to an important conclusion: model self-healing can substitute for part of the framework-level retry mechanism, but the cost is time. If your business is latency-sensitive, rather than relying on the model as a safety net, it’s better to implement input validation and schema constraints on structured output at the framework layer—intercepting errors before they happen.

    3.4 The Backoff-Retry Model: First Success After 1h 04m Cumulative

    The long-context control model showed yet another pattern: under the default retry policy it failed twice in a row, and only succeeded after the framework switched to exponential backoff—about 64 minutes cumulative to first success. The bottleneck here was not model capability but server-side stability—rate limiting, timeouts, and queueing all show up directly in end-to-end latency.

    A reminder for teams evaluating models: service availability must be part of the evaluation. In production, a service with unstable P99 latency will break an agent pipeline more easily than a service with slightly higher average latency but consistent behavior.

    4. A Model Selection Framework Derived from the Data

    Synthesizing the four results, I recommend upgrading model evaluation from “benchmark thinking” to “pipeline thinking,” focusing on five dimensions:

    4.1 Format Compliance and Tool-Call Success Rate

    Measure the tool-call parse failure rate. The difference between a 2% failure rate and a 10% failure rate is not linear over a 100-turn task, because failures tend to trigger cascading correction turns.

    4.2 Task Decomposition and Planning Quality

    Evaluate whether the model’s execution plan at the start of a task is sound. High planning quality eliminates large amounts of rework. A simple practice: have the model output its task decomposition first, get a human review, then release it to execute.

    4.3 Context Management

    In long tasks, can the model correctly track completed steps and confirmed decisions? Context loss leads to duplicated work or self-contradictory modifications.

    4.4 Exception Recovery Strategy

    Distinguish three recovery levels: in-model self-healing, framework-level local retry, and full re-run. The higher the priority and the finer the recovery granularity, the better the end-to-end efficiency. At the framework layer, graded retries can be designed as in this pseudocode:

    1. def execute_step(step, max_retries=3):
    2. for attempt in range(max_retries):
    3. result = model_call(step)
    4. if validate_schema(result):
    5. return result
    6. wait = base_delay * (2 ** attempt) # exponential backoff
    7. sleep(wait)
    8. rollback_to_checkpoint() # escalate local failure to state rollback

    4.5 Service Stability Metrics

    Track rate-limit incidents, timeout rates, and P99 latency. For agent tasks that run for hours, stability should outweigh average speed.

    5. Conclusion

    The biggest takeaway from this round of experiments: a model’s positioning labels (low cost, high speed, long context) only describe point capabilities. Real agent efficiency is the product of three factors—model capability, harness engineering maturity, and service stability. Teams should build their own fixed-harness evaluation pipelines, test with real tasks under unified acceptance criteria, and focus on collecting turns, retry, and stability data rather than relying on benchmark scores alone. Only by controlling the variables can you see each component’s true contribution to end-to-end efficiency.