Benchmarking LLM Agents on Real Tasks: Stability and Completion Across Four Lightweight Models

    A controlled head-to-head evaluation of four lightweight large language models (all under 300B parameters) running the same complex agent task in an identical harness. The results show that engineering stability and multi-step decision quality matter far more than parameter counts or benchmark scores when it comes to real-world agent performance.

    As large language models move into production, choosing the right model for a specific business scenario has become one of the core engineering decisions developers face. Parameter counts and theoretical benchmark scores rarely reflect how a model actually performs on complex agent tasks. This article presents a controlled head-to-head experiment: under a fixed automation harness, four lightweight LLMs (all under 300B parameters) executed the same complex product design task, and we recorded and analyzed their significant differences in completion efficiency, stability, and output quality.

    1. Evaluation Approach: From Parameter Comparison to Task-Based Evidence

    Common model selection methods in the industry rely heavily on static benchmark leaderboards or single-dimension evaluations. However, once a model is embedded in an agent workflow that requires multi-turn decision-making, tool calling, context management, and state maintenance, its real performance often goes beyond what raw “capability parameters” can describe.

    This evaluation targets exactly that blind spot, with an experimental design built to verify the model’s “field performance”:

    • Unified environment: All models ran in an identical automation harness, including the same system prompt, the same toolset (Playwright browser automation), the same context window (262K), and the same task budget (200K tokens).
    • High-complexity task: The task was to build a front-end prototype of a creative studio collaboration system, covering five core functional modules—project overview, inspiration board, asset annotation and commenting, version approval, and release preview—while supporting permission interactions for three roles and state persistence.
    • Strict acceptance rules: All outputs had to pass two rounds of screenshot verification, on desktop (1440×1000) and mobile (390×844), and submit complete code, test logs, and self-assessment metrics.

    This setup removes the static variable of whether a model “can” do something and focuses directly on whether it “can reliably finish” in a real engineering environment.

    2. Results: Four Models, Four Distinctly Different Paths

    All four models eventually “completed” the task, but the process data reveals differences in value that go far beyond the final screenshots:

    Model Total Time Failure/Retry Record Output Style Characteristics
    Model A 17 min No full-run failures Lightweight structure, clear information hierarchy, highest reading efficiency
    Model B 72 min First run failed; full re-run Strongest visual design, best mobile consistency
    Model C 88 min 3 internal automatic retries, no full re-run Highest engineering completeness and information density
    Model D 64 min Default strategy failed twice in a row; succeeded after extended backoff Highly consistent UI style, well-structured data tables

    Notably, the most efficient model was not the one with the largest parameter count, and the slowest model produced the most engineering-complete deliverable in this evaluation. This directly demonstrates that selecting models based on product positioning labels like “lightweight” or “high-speed” often overlooks the engineering factors that truly determine task success.

    3. In-Depth Analysis: What Determines Final Agent Task Efficiency

    3.1 Action Rounds and Multi-Step Decision Quality

    In complex agent tasks, the model must decompose the final goal into a series of intermediate steps and choose the appropriate tool for each one. Every unnecessary action round consumes precious context space and time.

    Among the tested models, the most efficient one displayed a “few but precise” action pattern: after opening the asset page, it directly located the key elements, captured and saved the screenshot, with almost no redundant backtracking. The slower models, by contrast, frequently jumped between functional modules and repeatedly modified the same style code. This shows that the model’s task planning ability—rather than its single-step code generation speed—is the primary determinant of agent efficiency.

    3.2 Context Management Engineering

    With a 262K context window, how a model handles dynamically injected page screenshots, user stories, and existing code determines whether it will “forget” or “confuse” information during long-running tasks.

    Comparing the action logs reveals that the leading models tended to break tasks into independent “read–write–verify” loops: read the current page state, output the target code, verify via screenshot, and immediately mark the step as complete in context. This approach prevents historical information from continuously occupying the context, preserving enough room for later corrections. Less efficient models relied heavily on “append-style” output, causing the context to fill up with lengthy, repetitive code and compressing the effective reasoning space.

    3.3 Service Stability and Fault-Tolerance Strategies

    When tool calls encounter exceptions (such as a page element not being found or a screenshot timing out), each model’s response strategy is fully exposed:

    • Fail fast and adjust immediately: Some models, upon a single tool call failure, switch tools or adjust their element-locating strategy, finding an alternative path and continuing in parallel.
    • Full re-run: Some models clear the context and start over after a failure. They eventually succeed, but at a multiplied time cost.
    • Infinite retry trap: A few models repeatedly invoke the same failed operation under the default strategy, only changing course after triggering a fallback mechanism.

    In real production environments, this dimension may outweigh the model’s own code generation ability—given the normality of occasional API failures, network jitter, and DOM structure changes, fault tolerance and adaptability directly determine whether an agent is truly usable.

    3.4 Visual Consistency and Design Fidelity

    The acceptance phase of this test required not only functional implementation but also strict visual comparison. The results show that not every model can carry design specifications (such as switching from a light editing style to a dark workspace theme) through to the end, and maintaining state during mobile adaptation is an even greater challenge.

    During mobile (390×844) acceptance, some models’ components overflowed, overlapped, or lost interactivity, even though they worked perfectly on desktop. This suggests that when integrating agent capabilities, developers need to design explicit “multi-device acceptance” rules rather than relying on the model to handle cross-device adaptation on its own.

    4. Methodology Takeaways: A Reusable Framework for Agent Model Selection

    Based on this experiment, we distilled a reusable evaluation path that technical teams can reference when onboarding a new model or upgrading versions:

    1. Fix a single variable: Keep the task description, assets, toolchain, and acceptance rules identical; replace only the model itself to ensure comparable results.
    2. Design high-complexity, realistic business tasks: Avoid basic code generation problems. Use real product modules with at least five state transitions and three or more role interactions as the test case.
    3. Collect fine-grained process metrics: Beyond final screenshots, focus on recording action rounds, tool call counts, failure types (locating failure, data error, logic interruption), and recovery paths.
    4. Run dual acceptance: Both desktop and mobile checks are essential. Add a state-restoration test after scrolling to verify the model’s persistence handling.

    5. Conclusion: Lightweight Doesn’t Mean Unstable, and Benchmarks Don’t Equal Real-World Performance

    Through a controlled experimental design, this evaluation validates a core argument: for real agent tasks, a model’s engineering stability and multi-turn decision intelligence define its quality far better than parameter scale or theoretical benchmark scores. A low-cost, high-speed model can complete complex tasks with high quality, while a more premium-positioned model may stumble on fault-tolerance strategy.

    For AI application developers, we recommend abandoning the “benchmark-only” mindset in favor of task-oriented evaluation. When selecting a model, be clear about: How many turns of deep conversation will your agent face? Which external tools does it need to call? In extreme failure scenarios, how should the model fall back and retry? Only by building an evaluation suite around these real engineering questions—and tailored to your own business—can you make integration decisions with long-term value in a rapidly evolving model ecosystem.