Same-Task Benchmark: How Four LLMs Differ in Complex Frontend Agent Efficiency

    A controlled experiment compared four language models on the same complex frontend task while keeping the Agent Harness, task definition, tools, context window, budget, and acceptance criteria unchanged. Although all four models eventually completed the task, their planning quality, tool-call stability, retry behavior, recovery cost, and context management produced major differences in total delivery time. The results show why real-world Agent efficiency cannot be inferred from benchmark scores or single-request latency alone.

    1. Experiment Background: Why Change Only the Model?

    A common mistake when evaluating large language model agents is to treat benchmark scores as equivalent to real-world task efficiency. A credible comparison must minimize the number of changing variables. If the model, task, toolchain, and prompt are all changed at once, the observed differences cannot be reliably attributed to any single factor.

    A previous experiment took the opposite approach: it kept the model fixed and compared four Agent Harnesses, or execution frameworks. On the most complex collaborative system task, completion times ranged from approximately 17 minutes to several times longer, showing that the execution framework itself can be a significant variable.

    This experiment reversed the setup. The Harness was fixed, while the underlying model was changed. The task, assets, context, browser automation service, and acceptance criteria remained identical across all runs. Under these conditions, the observed differences could be more directly attributed to each model’s planning, tool-use, and recovery capabilities.

    2. Evaluation Design: Four Principles of Single-Variable Control

    2.1 A Unified Execution Environment

    All four experiments used the same Agent Harness, with an approximately 262K-token context window and a task budget of approximately 200K tokens. They also used the same browser automation MCP service.

    The desktop validation viewport was 1440×1000, while the mobile viewport was 390×844. Keeping these settings consistent reduced noise caused by differences in browser environments, screenshot timing, and validation scripts.

    2.2 Consistent Deliverables and Workflow Constraints

    Each run had to produce:

    • Runnable code
    • Initial screenshots
    • Execution logs
    • Review records
    • Metrics

    The workflow allowed only one repair round. After an initial run failed, the model could receive one repair opportunity based on the validation results. Unlimited retries were not allowed.

    2.3 Consistent Task Difficulty

    All models were given the same complex product task, described below. No reference page was provided for the models to copy. Each model had to build five page states and all required interactions from scratch. State also had to survive a browser refresh.

    2.4 Consistent Timing Rules

    Timing included the initial run, automatic retries, a full rerun after failure, and the single allowed repair round. The endpoint was the first successful delivery of the complete artifact.

    This measurement is closer to the real user experience than measuring the latency of a single API response.

    3. The Task: A High-Complexity Creative Collaboration System

    The evaluation task was a collaboration system for a creative studio. The only initial inputs were six openly licensed images from public museum collections, along with seed data for project members, assets, versions, and comments.

    The model had to independently build five page states:

    • Project overview: Displays project status and the relationships between assets and team members.
    • Moodboard: Supports browsing and organizing assets.
    • Asset-anchored comments: Allows comments to be attached to specific locations within an asset.
    • Version approval: Allows different roles—including the creative director, designer, and client—to approve or reject versions.
    • Publish preview: Presents the final publishing view.

    The required interactions included asset drag-and-drop, comment anchoring, version switching, role switching, and approve/reject actions. All state had to persist after a browser refresh, requiring an appropriate local persistence strategy.

    The difficulty came from the way requirements were distributed across multiple states and roles. The interactions were tightly coupled, so an inappropriate state model in one area could surface as a validation failure elsewhere.

    4. Overview of the Four Models’ Results

    All four models ultimately completed the task, but their execution paths differed far more than their final screenshots. The models are anonymized below.

    • Model A: Completed the task in approximately 17 minutes in a single run without triggering a retry. It used the lightest structure and adopted a light editorial style. The hierarchy of project status, assets, and team-member relationships was clear and easy to read.
    • Model B: Failed on its initial run. After a full rerun, total time reached approximately 1 hour and 12 minutes. Its visual design used black, gold, and ivory, with serif headings. The permission matrix and approval states formed a consistent museum-editorial aesthetic. It delivered the strongest brand consistency and mobile experience.
    • Model C: Did not require a full rerun, but completed the task after three internal automatic retries, taking approximately 88 minutes in total. It chose a dark professional workspace style. Navigation, progress, roles, deliveries, approvals, and the asset canvas formed a complete system. It had the highest information density and strongest engineering completeness.
    • Model D: Failed twice under the default retry policy. It completed the task only after switching to an extended backoff strategy, reaching its first successful delivery after approximately 1 hour and 4 minutes. Its output resembled an art museum archive system, with black serif headings, an ivory background, fine-line tables, and artwork thumbnails.

    These figures came from a single experiment involving a specific task and Harness. They should not be treated as a general ranking of model capabilities. However, the process-level patterns offer useful guidance for similar Agent workflows.

    5. Four Efficiency Dimensions Revealed by the Process Data

    5.1 Number of Actions and Planning Quality

    Model A’s one-shot completion was not simply a matter of being faster. Its plan was more complete from the beginning. During the early rounds, it established the state structure and data model, after which most actions were direct execution.

    Models that required multiple retries often made structural assumptions early in the process that conflicted with the acceptance criteria. They then had to rebuild significant portions of the application later.

    The number of actions can therefore be a more informative indicator of planning quality than total elapsed time alone.

    5.2 Tool-Call Stability and Granularity

    Failures in browser automation tasks often originate at the tool-call layer. Common examples include selector mismatches, incorrect wait timing, and screenshots taken before the page has stabilized.

    Automatic retries can hide these problems, but they also increase total execution time. Model C completed the task after three internal automatic retries, suggesting that its per-call success rate was supported by retry-based recovery. Model D failed twice with the default retry policy and succeeded only after extended backoff, exposing a different approach to handling failure signals.

    5.3 Service Stability and Retry Strategy

    The cost of a full rerun is much higher than the cost of a localized retry. Model B’s initial failure required the entire run to be repeated, showing how the Harness’s recovery granularity—session-level versus step-level—can strongly affect the cost of reaching a successful result.

    The model’s tolerance for context disruption also matters. In production environments, checkpoint-based continuation is often more effective than simply increasing the maximum retry count.

    5.4 Context Management

    A 262K-token context window and a 200K-token task budget may appear generous, but complex frontend tasks quickly accumulate page structures, logs, and validation feedback.

    Model A’s lightweight information architecture was also a form of context management. It avoided spending the budget on redundant decorative code, keeping the page structure direct and reducing the maintenance and repair burden in later rounds.

    Model C produced the densest and most complete system, but its 88-minute execution time suggests that high-density output can also require more rounds of self-validation.

    6. Methodological Lessons for Reliable Model Comparisons

    This experiment suggests a reusable methodology for evaluating models in Agent workflows:

    • Control one variable at a time: Change only one dimension while keeping everything else fixed, and record the relevant software versions and environment details.
    • Prioritize process metrics: In addition to total time, record the number of actions, tool calls, failure types—planning, tool-use, or service failures—and retry counts.
    • Classify failures by cause: Distinguish between “the model made an incorrect plan” and “the toolchain was unstable.” The former is difficult to fix through repeated execution, while the latter may be mitigated with retry and timeout policies.
    • Use a consistent timing endpoint: Measure until the complete artifact is delivered, including all retries and repairs.
    • Preserve raw evidence: Screenshots, logs, review records, and metrics are all necessary. Conclusions should not be based only on the final screenshot.
    • Avoid ranking models from a single run: Robust conclusions require repeated runs on the same task and additional task types.

    7. Conclusion

    The central conclusion of this single-variable experiment is that positioning a model as low-cost or fast describes only one aspect of its capability. Real Agent efficiency depends on the combined performance of action planning, tool-call stability, service reliability, and context management.

    In other words, evaluating whether a model is suitable for complex frontend Agent tasks requires more than looking at single-request latency or benchmark scores. The model must be evaluated on whether it can maintain structural consistency across long-running tasks with multiple states and roles, and whether it can recover from failures at minimal cost.

    For developers, choosing the “fastest model” is often less important than designing effective failure recovery, establishing a useful validation-feedback loop, and adopting a context management strategy that matches the complexity of the task. These three factors can have an impact on final delivery efficiency comparable to the model choice itself.