Benchmarking Four Models with a Fixed Harness: A Breakdown of Agent Efficiency

    This article compares four lightweight models running under an identical agent harness to show why end-to-end task speed is not the same as raw model speed. It explains the single-variable experiment design, the process metrics worth tracking, where the efficiency gaps appeared, four root causes behind them, and reusable tuning recommendations for model selection.

    1. Background and the Core Question

    A common misconception in agent deployment is treating “the model runs fast” as “the task finishes fast.” In reality, end-to-end latency is the sum of several stages: model inference, tool calls, network round trips, retries after failures, context compaction, and result validation. When any single stage fluctuates, total latency is amplified significantly.

    This controlled experiment follows a single-variable principle: the execution framework (harness) stays fixed, while the task description, input materials, context window strategy, browser environment, and acceptance rules all remain identical. Only the underlying model is swapped. All participating models are lightweight models below roughly 300B parameters, plus one long-context model included as a horizontal reference.

    2. Experiment Design: Keeping the Conclusions Trustworthy

    For the comparison to mean anything, the non-model variables must be locked down first. In practice, five categories of elements should be fixed:

    1. Task and acceptance: the same requirements document and the same automated acceptance script, with pass/fail decisions that do not depend on subjective human scoring.
    2. Materials and context: the same initial files, the same system prompt, and the same context trimming and summarization strategy.
    3. Tools and runtime: the same browser, file system, terminal, and network egress, so environment differences do not pollute the data.
    4. Retries and backoff: default retry counts, the backoff curve, and the moments when manual intervention was applied are all recorded explicitly.
    5. Observed metrics: beyond total elapsed time, also record action rounds, tool call counts, failure counts, and context compaction counts.

    Illustrative instrumentation can be organized like this:

    1. metrics = {
    2. "model": "model_alias",
    3. "total_seconds": 0,
    4. "action_rounds": 0,
    5. "tool_calls": 0,
    6. "retries": 0,
    7. "context_compactions": 0,
    8. "first_success_at": None,
    9. }

    3. Process Data: Where the Differences Showed Up

    All four models eventually completed the task, but the paths differed far more than the outcomes:

    • Model A: no full reruns, finished in 17 minutes, with the fewest action rounds and a high first-attempt success rate on tool calls.
    • Model B: failed on the first round; including a full rerun, cumulative time reached 1 hour 12 minutes, with most of the loss coming from continued progress in the wrong direction.
    • Model C: no full reruns, but 3 automatic retries were triggered internally, for a cumulative 88 minutes spent on local rollbacks and repeated validation.
    • Model D: failed twice in a row under the default retry policy, then completed after switching to a longer backoff interval, with a cumulative first success at 1 hour 04 minutes.

    This data shows that the “lightweight, high-speed” positioning describes only one facet of capability. Real efficiency is the product of model capability × engineering stability × context management, and a shortfall in any one of them stretches the whole chain.

    4. Four Root Causes of the Efficiency Gap

    1. Action rounds: the more rounds, the higher the accumulated cost of inference and tool round trips. Whether the agent converges within a small number of rounds is the first dividing line for efficiency.
    2. Tool call quality: whether parameters are constructed correctly and whether returned results are parsed correctly determines whether calls must be repeated.
    3. Service stability: rate limiting, timeouts, and intermittent errors trigger backoff waits, and that time produces no business progress at all.
    4. Context management: overly long context dilutes critical instructions, while overly short context loses necessary information; compaction and summarization strategies directly affect the rework rate.

    5. Reusable Tuning Recommendations

    • Build layered retries: distinguish recoverable errors from logic errors; back off and retry the former, and roll back to the planning stage immediately for the latter.
    • Set a round budget: define a maximum number of action rounds and a timeout ceiling per task to avoid unproductive long runs.
    • Move acceptance earlier: write acceptance rules into the prompt and tool constraints to reduce endgame rework.
    • Observability first: fill in instrumentation for rounds, calls, and retries before choosing a model, instead of deciding by feel.
    • Scenario-based selection: short-chain, high-frequency tasks favor low-latency models, while long-chain complex tasks put more weight on stability and context retention.

    6. Conclusion

    Benchmarking models under a unified harness is valuable not because it produces a “strongest model” ranking, but because it exposes where the real bottleneck is. Engineering teams should upgrade evaluation from a one-off benchmark run to a controlled experiment with observable processes, using the four metric families of rounds, calls, retries, and context to characterize agent efficiency, so that reasonable trade-offs can be made among cost, speed, and stability.