Why Do AI Agent Task Times Vary by 4x?

    This article examines why a model's benchmark speed does not guarantee fast end-to-end AI agent delivery. Using a controlled, single-variable experiment that fixes the harness, task, context budget, browser environment, and acceptance rules while swapping only the underlying model, it compares four candidate models (A/B/C/D) on a multi-state creative studio collaboration system. It reports four distinct runtime curves and failure modes, then breaks down four key variables—action turns, tool-call quality, service stability, and context management—along with a practical optimization checklist and deployment recommendations. Readers will learn which metrics, such as retry count and first-success time, matter most when building a reproducible agent evaluation pipeline.

    1. Background: Why a Fast Benchmark Does Not Mean Fast Agent Delivery

    When an AI agent handles end-to-end engineering tasks, the evaluation standard is shifting from “single-response quality” to “full task-loop efficiency.” A complex task often involves requirement understanding, page structure planning, state design, multiple rounds of tool calls, browser verification, and failure rollback. The response speed of a single inference accounts for only a small part of the total time. What really determines the overall duration is the quality of the model’s decisions across multiple rounds of action.

    The original experiment’s design is worth borrowing: fix the execution harness, the task, the assets, the context, the browser environment, and the acceptance rules, and replace only the underlying model. This “single-variable control” attributes differences to the model itself rather than to differences in the engineering scaffolding. To avoid brand bias, this article abstracts the candidates into four model types, A/B/C/D, where A is a high-speed lightweight type, B and C are general-purpose types of the same tier, and D is a long-context reference type.

    2. Experiment Design: Lock Down the Variables to Make the Conclusions Clear

    The task is a creative studio collaboration system. It provides only a few open image assets plus seed data for members and comments, with no existing pages to reference. The model must build five states on its own: project overview, inspiration board, asset-located comments, version approval, and publish preview. It must also support permission differences across three roles (creative director, designer, client), asset drag-and-drop, comment anchor positioning, version switching, and approve/return actions, with state preserved after refresh.

    The acceptance rules are fixed as well: state must persist, interactions must be reproducible, and the view must be correct after switching roles. A reusable experiment skeleton looks like this:

    1. harness: fixed # execution harness fixed
    2. task: atelier_collab # task fixed
    3. context_budget: 32k # context budget fixed
    4. browser: enabled # browser verification enabled
    5. acceptance:
    6. - state_persistence
    7. - role_based_view
    8. - interaction_replay
    9. variables: [model] # the only variable

    3. Results: Four Runtime Curves, Four Failure Modes

    • Model A: passed on the first attempt in 17 minutes, with the fewest action turns and almost no invalid tool calls.
    • Model B: failed on the first round; 1 hour 12 minutes total including a rerun, with failures concentrated in state-persistence design.
    • Model C: no full-round rerun, but 3 automatic internal retries were triggered, totaling 88 minutes, with time consumed by tool-layer retry waits.
    • Model D: the default retry strategy failed twice in a row; after relaxing the backoff parameters it completed, with a first-success total of 1 hour 04 minutes.

    The conclusion is not that “one model is stronger.” Rather, a low-cost or high-speed model positioning only describes part of its capability. Real efficiency is determined jointly by the number of action turns, tool-call success rate, service stability, and context management.

    4. Four Key Variables and an Optimization Checklist

    1) Action turns: the more turns, the more obvious the accumulated latency and context bloat. The optimization is to provide clearer preconditions for acceptance and reduce exploratory calls.

    2) Tool-call quality: wrong parameters and wrong paths trigger invalid round trips. It is recommended to add input validation to tools and return structured error messages.

    3) Service stability: rate limiting and timeouts are hidden costs. Set reasonable exponential backoff and a maximum retry limit to avoid “infinite retries” eating up the budget.

    4) Context management: long-context models are not inherently faster; the key is retrieval and compression strategies that inject only the fragments relevant to the current subtask.

    On the engineering side, these metrics can be wired into logging services and monitoring alerts to form an observability dashboard of duration, turn count, and retry count. Artifacts and assets can be stored in object storage, task distribution can be decoupled with a message queue, and the execution environment can run on a container platform, ensuring the control experiment is repeatable.

    5. Implementation Recommendations

    If an enterprise wants to build a similar agent evaluation pipeline on Baidu AI Cloud, it can adopt a general-purpose capability combination: a container platform to host the execution sandbox, object storage to hold assets and version artifacts, a message queue to schedule tasks, and a logging and monitoring system to accumulate metrics. During evaluation, stick to the single-variable principle: first fix the harness and acceptance rules, then compare models horizontally, and treat “retry count” and “first-success time” as core metrics rather than only checking whether the final screenshot is usable.