Agent Efficiency Benchmark: How Execution Differs When You Swap the Model

    This article presents a controlled benchmark that holds the agent framework and all external variables constant and changes only the underlying model. Four small and mid-sized models complete the same complex frontend collaboration task, revealing four distinct failure modes and execution paths despite nearly identical final screenshots. It then distills a reusable four-dimension framework for evaluating agent efficiency, covering action turns, tool-call success rate, service stability, and context management.

    Agent Efficiency Benchmark: How Execution Differs When You Swap the Model

    In the engineering practice of agent systems, one long-underestimated question is: when we evaluate whether a model is “good for agents,” what are we actually evaluating?

    Parameter count, context window, and single-turn response latency are important metrics, but they only describe part of a model’s capability. Efficiency in real tasks is often determined by the number of action turns, tool-call success rate, service stability, and context management strategy. Using a controlled comparison experiment as a thread, this article fixes the execution framework and all external variables, replaces only the underlying model, observes how four model types perform in the same complex frontend collaboration system, and abstracts a reusable evaluation methodology.

    1. Experiment Design: Reducing the Variables to Just the Model

    A meaningful comparison starts with subtraction. This experiment fixes the execution framework as the same in-house agent scheduling framework (referred to below as the Harness). The task description, input assets, context injection method, browser automation capability, and acceptance rules all remain identical. The only variable is the underlying reasoning model.

    All four tested models are in the small-to-mid parameter range (roughly under 300B). One has visual understanding capability, and another serves as a control with an extra-long context window. This selection deliberately avoids the uninformative comparison of “a flagship model crushing smaller models” and instead observes how models of similar scale diverge in behavior on real engineering tasks.

    The task itself is a complex product problem: build a creative studio collaboration system. The inputs are only six open-license images, a project member list, asset metadata, version records, and seed comment data, with no existing pages to reference. The model must autonomously build five stateful pages: project overview, inspiration board, asset-located comments, version approval, and publish preview.

    The system must also support three roles (creative director, designer, client), implement asset drag-and-drop, comment anchor positioning, version switching, approval and rejection, and ensure state persists after refresh.

    The unified resource constraints are as follows:

    1. Context window: 262K
    2. Task budget: 200K tokens
    3. Tool capability: browser automation (page actions + screenshots + console log collection)
    4. Acceptance viewports: desktop 1440x1000 / mobile 390x844
    5. Fix strategy: save the first-version screenshot, allow only one round of fixes
    6. Deliverables: code + screenshots + run logs + self-check report + metrics data

    The value of this design is that it separates “model capability” from “framework capability,” making attribution of differences clear.

    2. Results Overview: Same Completion, Different Paths

    All four models eventually completed the task, but the process data differed significantly:

    Model type Full rerun Internal auto-retries Cumulative time to first success
    Vision-capable small-mid model No 0 ~17 minutes
    Balanced small-mid model Yes (1 failure) 1 ~72 minutes
    High-information-density model No 3 ~88 minutes
    Long-context control model Default policy failed twice in a row Succeeded after adjusting backoff ~64 minutes

    The most valuable conclusion is not “who was fastest,” but this: the final screenshots are nearly indistinguishable across the four, yet the execution traces reveal completely different failure modes.

    3. Engineering Interpretation of the Four Failure Modes

    1. First-Pass Success: Short Paths Depend on Strong Planning

    The fastest model decomposed the task with great restraint: it first established the data model and state structure, then generated the page skeleton in one pass, and finally used the browser to verify key interactions. It had the fewest action turns, and nearly all its tool calls hit their targets.

    This behavior shows that a model’s “efficiency” is essentially equivalent to planning quality—reducing ineffective exploration means reducing time cost.

    2. Full Rerun: The Error Was Baked In Early

    The balanced model failed acceptance on its first delivery. The problem was concentrated in state persistence: after refresh, role permissions and approval state reverted to initial values. Because the error occurred at the architecture layer rather than the styling layer, only a full rerun could resolve it.

    This highlights a common trap: local fixes cannot solve structural defects. In an agent workflow, automated state-consistency checks should be introduced as early as possible, rather than waiting for the visual acceptance stage.

    3. Internal Retries: Stability Ate the Speed Advantage

    The high-information-density model produced the most complete engineering implementation, but triggered three automatic retries during the process. The retries mostly occurred during long-context compression and tool-return parsing, and the waiting and repeated reasoning from each retry accumulated into the main time cost.

    The corresponding optimization direction is to design tool calls to be idempotent and to add cache reuse for context compression, avoiding repeated execution of the same reasoning.

    4. Backoff Strategy: Default Parameters Do Not Fit Long Windows

    The long-context model failed twice in a row under the default retry policy and only succeeded after adjusting the backoff interval and maximum attempts. This was not a lack of model capability, but a mismatch between scheduling parameters and model characteristics.

    The engineering takeaway is direct: retry policies should not be globally hard-coded, but tuned separately according to each model’s service characteristics.

    1. # Example: configure retries and backoff differently by model characteristics
    2. RETRY_POLICY = {
    3. "default": {"max_attempts": 2, "backoff": 2.0},
    4. "long_context": {"max_attempts": 4, "backoff": 8.0, "jitter": True},
    5. }
    6. def call_with_policy(model_key, fn):
    7. policy = RETRY_POLICY.get(model_key, RETRY_POLICY["default"])
    8. for attempt in range(policy["max_attempts"]):
    9. try:
    10. return fn()
    11. except TransientError:
    12. sleep(policy["backoff"] * (attempt + 1))
    13. raise ExhaustedError(model_key)

    4. A Reusable Framework for Evaluating Agent Efficiency

    Based on the observations above, agent evaluation should be upgraded from “scoring a single result” to four dimensions:

    1. Action turns: the effective decision steps needed to reach the goal, which directly map to time cost.
    2. Tool-call success rate: failed calls trigger retries and context expansion, and are the main source of hidden cost.
    3. Service stability: latency jitter and rate-limiting behavior determine the variance of long tasks.
    4. Context management quality: compression, retrieval, and reuse strategies determine whether long tasks degrade.

    In practice, you can integrate logging services and monitoring alerts into the execution pipeline, write each turn’s tool return codes, latency, and token increments into a unified metrics store, and then use a container platform to run parallel evaluation tasks, obtaining comparable cross-model data.

    5. Conclusion

    Positioning like “low cost” and “high speed” can only describe one facet of model capability. Real agent efficiency is the result of coupling model characteristics, the scheduling framework, and acceptance criteria. For engineering teams, a more pragmatic approach is to fix the framework and acceptance standards, treat the model as a replaceable component for continuous benchmarking, and incorporate retries, backoff, and context compression into a tunable parameter system. Only then does model selection turn from subjective preference into a measurable engineering decision.