Agent Efficiency Differences Under a Fixed Execution Framework

    In real-world agent deployments, teams often evaluate model efficiency by whether the task was completed and how long it took end to end. This article presents a controlled-variable experiment: with a single agent execution framework, identical tasks, inputs, browser environment, and acceptance criteria, four anonymized models of similar parameter scale are swapped in to compare process-level differences. It breaks down completion time into first-success time, end-to-end latency, retry cost, action rounds, tool-call quality, context management, and service stability, and offers practical engineering guidance for evaluating and building production-grade agent systems.

    Agent Efficiency Differences Under a Fixed Execution Framework

    When deploying agent-based applications, many teams evaluate model efficiency using simple measures: “Was the task completed?” and “How long did it take end to end?” But complex tasks typically involve multi-step planning, tool calls, state maintenance, error recovery, and result validation. Looking only at the final screenshot or total elapsed time tends to hide the factors that actually determine production readiness. This article presents a controlled-variable experiment examining how different models behave when completing the same complex task under a unified agent execution framework, and distills reusable engineering evaluation methods.

    1. Background: Why Reverse the Controlled Variable

    A previous round of experiments fixed the model and swapped different agent execution frameworks to observe how the framework affects task completion efficiency. The results showed that the execution framework itself significantly influences planning style, tool-call organization, context passing, and error handling—and therefore end-to-end latency.

    This round reverses the variable: the execution framework is fixed, while the task, input materials, context, browser environment, and acceptance rules remain identical. Only the model is replaced. The four models in the comparison are relatively close in parameter scale: three are small-to-mid-sized models below roughly the 300B parameter range, and one serves as a lateral baseline. To avoid turning this into a product review, model names are not disclosed; they are referred to as Model A, B, C, and D, with the focus on process metrics and engineering insights.

    It is important to stress that this is a single-task, single-environment observational experiment—not a standardized benchmark. Its value lies not in ranking models, but in revealing the cost structure behind “completion time”: first-success time, full restarts, internal automatic retries, action rounds, tool-call success rates, context management, and service stability all affect real-world agent efficiency.

    2. Experiment Design and Metrics

    The controlled conditions are as follows:

    • Execution framework: the same agent execution framework for all runs;
    • Task and materials: identical task objectives, input materials, and context;
    • Browser environment: the same browser environment and interaction rules;
    • Acceptance rules: the same result-validation criteria;
    • Model substitution: only the underlying model is changed;
    • Logging: start time, first-success time, end-to-end duration, failure count, retry count, whether a full restart occurred, and any human intervention.

    Evaluation should go beyond “did it finish” and break down into the following categories:

    1. End-to-end latency: total time from task start to final acceptance, including failures, restarts, and waiting.
    2. First-success time: the time at which a validatable result is first produced, reflecting how well the model and framework work together.
    3. Retry cost: number of automatic retries, restart rounds, backoff waiting time, and whether retries preserve existing state.
    4. Action rounds: the number of rounds from planning to execution. Too many may indicate poor planning quality; too few may indicate insufficient exploration.
    5. Tool-call quality: whether the right tools are selected, parameters are valid, and failures are corrected based on observed errors.
    6. Context management: whether long tasks suffer from information loss, redundant reads, state drift, or context bloat.
    7. Service stability: whether rate limiting, timeouts, network fluctuation, and other retryable errors occur, and whether the retry strategy is sound.

    3. Results Overview

    All four models eventually completed the task, but the process differences were significant. The anonymized results:

    Model Outcome Process Characteristics Time/Retry Observations
    Model A Completed and passed acceptance Relatively direct process; no full restart ~17 minutes
    Model B Completed and passed acceptance First attempt failed, then a full restart ~1h 12m including the restart
    Model C Completed and passed acceptance No full restart; 3 internal automatic retries ~88 minutes of execution
    Model D Completed and passed acceptance Default retry policy failed twice consecutively; finished after extended backoff Cumulative first success at ~1h 04m, with 85 total retries

    Model A had the shortest end-to-end latency, but that alone does not justify the conclusion that it is “better across the board.” Model C avoided a full restart, showing that its internal state recovery and automatic retry mechanisms prevented starting over. Model D accumulated a large number of retries but eventually finished through extended backoff, showing how heavily retry strategy and service stability affect long-tail tasks. Model B’s full restart exposed insufficient state reuse after failure.

    4. Process Differences Matter More Than the Final Result

    4.1 Split Completion Time into First Success and End-to-End Latency

    End-to-end latency is the most intuitive metric for users, but it blends model inference, tool calls, failure waiting, retry backoff, and full restarts into a single number. Production systems should record at least both first-success time and final completion time.

    If first success is fast but end-to-end time is long, bottlenecks likely exist in validation, retries, or post-processing. If first success is slow, investigate whether the cause is slow planning, frequent tool-call failures, or context management forcing repeated trial and error. Only by splitting the metrics can you locate optimization targets.

    4.2 Full Restarts and Internal Retries Are Different Cost Structures

    A full restart means much of the state is discarded after failure—re-planning, re-reading materials, and re-invoking tools. Its cost is typically higher than internal automatic retries, which can resume from existing checkpoints or intermediate state.

    Agent frameworks should therefore support checkpointing: save task state, tool returns, confirmed facts, and pending items at key steps. On recovery, resume from the most recent checkpoint rather than from scratch. For tool calls with side effects, ensure idempotency so retries do not cause duplicate submissions or repeated modifications.

    4.3 Retry Strategy Determines Whether Long-Tail Tasks Converge

    Model D needed 85 cumulative retries to finish, which shows how critical retry strategy is for long-tail tasks. Fixed-interval retries tend to keep failing during service instability or rate limiting. A better approach is exponential backoff with random jitter, plus a clear distinction between retryable and non-retryable errors.

    For example, timeouts, rate limiting, and transient network errors are retryable; invalid parameters, insufficient permissions, or explicit acceptance-rule violations should not be blindly retried. Retries also need caps, circuit breakers, and degradation strategies to avoid burning time and resources on futile attempts.

    4.4 Action Rounds and Tool-Call Quality Jointly Determine Efficiency

    Fewer action rounds are not necessarily better. If the model terminates early and misses acceptance criteria, rework is still required. More rounds are not necessarily worse either—if each round meaningfully converges, the count simply reflects task complexity.

    Tool-call quality deserves more attention: whether the right tool is chosen, parameters are correct, failures are corrected based on error messages, the same tool is not called redundantly, and similar operations are batched. A high tool-call failure rate directly lengthens the action chain and increases the context burden.

    4.5 Context Management Is the Foundation of Long-Task Stability

    In complex tasks, context keeps growing with tool returns, page content, error logs, and intermediate conclusions. Without management, key information gets buried, the model re-reads content, and state becomes inconsistent.

    Engineering approaches include summarization and compression, externalizing structured state, segmented retrieval, checkpoint persistence, and maintaining a fact table. Structurally storing “current goal, completed steps, pending items, key constraints, and verified facts” is far more stable than stuffing the entire message history back into the context.

    4.6 Service Stability and Observability Cannot Be Ignored

    Agent efficiency depends not only on model capability but also on service stability. Rate limiting, timeouts, network jitter, and tool-side errors all change end-to-end latency. Without observability, you cannot tell whether a failure is a model problem, a tool problem, or a service problem.

    It is recommended to log, for every action, the timestamp, a summary of model output, tool name, parameter summary, return status, retry count, and error type—and to aggregate success rates, P50/P95 latency, retry rates, and human-intervention rates. For cloud deployments, you can build an observability stack using general-purpose capabilities such as log services, monitoring and alerting, and object storage, subject to what your platform actually provides.

    5. Engineering Recommendations

    A more robust task execution loop can be abstracted as the following pseudocode:

    1. function run_task(task, model, policy):
    2. checkpoint = load_checkpoint(task.id)
    3. for round in range(policy.max_rounds):
    4. try:
    5. state = model.step(task, checkpoint)
    6. validate(state)
    7. checkpoint = save_checkpoint(state)
    8. if state.done:
    9. return state
    10. except RetryableError as e:
    11. delay = min(policy.base_delay * 2^e.attempt, policy.max_delay)
    12. sleep(delay + random_jitter())
    13. continue
    14. except FatalError:
    15. raise
    16. return fail_with_checkpoint(checkpoint)

    Supporting strategies include:

    • Set timeouts, retries, and circuit breakers for tool calls;
    • Guarantee idempotency keys for write operations;
    • Set stage checkpoints for long tasks;
    • Distinguish recoverable from non-recoverable errors in retries;
    • Preserve the scene and output diagnosable information on acceptance failure;
    • Define clear escalation rules for human intervention points.

    6. Model Selection and Evaluation Methodology

    When evaluating models for agent use, build a multi-dimensional metric set rather than comparing a single completion time:

    1. Efficiency: first-success time, end-to-end latency, P95 latency;
    2. Stability: retry rate, failure recovery rate, full-restart rate;
    3. Quality: acceptance pass rate, tool-call accuracy, context consistency;
    4. Cost: inference consumption, retry consumption, human-intervention cost;
    5. Operability: log completeness, error diagnosability, checkpoint availability.

    Different scenarios warrant different weights. Latency-sensitive scenarios care more about first-success time; long-task scenarios care more about checkpoints and retry convergence; high-reliability scenarios care more about failure recovery and idempotency; cost-sensitive scenarios must weigh retry consumption and human-intervention costs together.

    7. Conclusion

    The most important conclusion from this experiment is not “who was fastest,” but that “completion time is only part of efficiency.” Positioning a model as low-cost or high-speed describes only part of its capability. Real agent efficiency also depends on action rounds, tool-call quality, service stability, retry strategy, and context management. For enterprise-grade agent systems, the model, execution framework, tool layer, and observability should be designed as an integrated whole, and efficiency should be measured jointly through first-success time, end-to-end latency, retry cost, and recovery capability—only then will the conclusions reflect production reality.