Horizontal Evaluation of Four Small-to-Medium LLMs in a Fixed Agent Framework: Why Efficiency Matters More Than Capability

    When evaluating LLM-driven agent systems, benchmark scores often fail to reflect real-world delivery efficiency. By fixing the engineering variables and testing four small-to-medium parameter models (under 300B) within the same agent framework on a complex frontend task, this evaluation reveals that while all models completed the task, the time and cost varied drastically. The article analyzes the root causes of these efficiency gaps—ranging from action rounds and tool call accuracy to service stability and context management—and provides actionable insights for engineering teams to optimize agent system selection and design.

    1. Why Run a “Fixed Framework, Variable Model” Experiment?

    When evaluating LLM-driven agent systems, many teams simply run several models through open-source benchmarks and compare the scores. The problem with this approach is that benchmarks measure single-point model capabilities, whereas the completion quality and efficiency of real agent tasks are the combined result of “model capability × execution framework × toolchain × service stability.” A one-dimensional score cannot explain why two models with similar capabilities might take vastly different times to complete the same engineering task—one converging in 17 minutes, while the other struggles for over an hour before delivery.

    To answer this, I designed a controlled comparative experiment: fixing all engineering variables and only changing the model.

    The unified variables in the experiment included:

    • Execution framework: The same agent orchestration framework, with identical scheduling strategies, retry strategies, and context management logic.
    • Task: The same complex full-stack frontend product challenge—a creative studio collaboration system requiring five states (project overview, Moodboard, asset location comments, version approval, publish preview) and supporting three roles with specific permissions and interactions.
    • Context: All models used a 262K context window and a 200K task budget.
    • Toolchain: Unified access to browser automation tools (via the Playwright protocol), with desktop checks at 1440×1000 and mobile checks at 390×844.
    • Acceptance criteria: Each group saved first-version screenshots, allowed only one round of repair, and had to retain code, screenshots, logs, review records, and runtime metrics.

    The subjects tested were four small-to-medium parameter general LLMs (roughly under 300B), referred to below as Model A, B, C, and D. Model D served as a long-context control group.

    2. Results Overview: All Completed, but at Vastly Different Costs

    All four models eventually passed the acceptance criteria. This is a crucial preliminary conclusion: at the current capability level of small-to-medium parameter models, “whether the task can be completed” is no longer the main differentiator. The real divergence lies in “at what cost it is completed.”

    Specifically:

    • Model A: Completed in 17 minutes, passed on the first attempt, and the process was clean and efficient.
    • Model B: Failed on the first execution; including the rerun, it took 1 hour and 12 minutes. The cost of failure almost negated its advantages in other areas.
    • Model C: Did not trigger a full rerun, but carried 3 internal auto-retries, accumulating 88 minutes of execution time.
    • Model D: Failed twice consecutively under the default retry strategy, and only completed after expanding the backoff strategy. The cumulative time for the first successful run was 1 hour and 4 minutes.

    If we define the core metric of agent efficiency as “delivering usable results per unit of time,” Model A’s efficiency was three to five times that of the other three. This gap is almost invisible during static capability evaluations.

    3. Where the Gaps Come From: Four Underestimated Dimensions

    1. Action Rounds and Planning Quality

    The essence of an agent completing a task is a multi-step decision sequence. For the same task, an efficient model can plan a more comprehensive solution in fewer rounds—scaffolding first, then filling in interactions, and finally handling state persistence. Inefficient models tend to discover omissions as they go, frequently backtracking and reworking. Every extra action round means an extra tool call, an additional context segment, and a higher probability of error. The difference in action rounds amplifies into a difference in total duration through a multiplier effect.

    2. Tool Call Accuracy

    Browser automation is a high-frequency failure point for such tasks. A single incorrect selector parameter or an improperly set wait condition can trigger a failure-retry loop. Retries not only consume time but also pile up massive amounts of failure information in the context, further disrupting subsequent decisions. In the experiment, a large portion of the long execution times for Models C and D was spent on this kind of “non-creative work.”

    3. Service Stability and Retry Strategy

    This is the most easily overlooked aspect: an agent’s end-to-end duration = model thinking time + tool execution time + service call round-trip time + retry wait time. When the inference service experiences rate limiting, timeouts, or fluctuations, the framework’s backoff strategy determines the magnitude of the cost. Model D’s consecutive failures under the default retry strategy, only succeeding with extended backoff, illustrate how fragile service links combined with aggressive retry strategies can drag a minutes-long task out to an hour. Engineering-wise, it is worth treating backoff curves, timeout thresholds, and circuit breaker logic as first-class citizens in design, rather than simply applying default values.

    4. Context Management

    Long tasks mean constantly inflating context. Historical rounds, tool outputs, and failure logs all squeeze the context window. Models with good context management can continuously grasp task constraints (e.g., “state must not be lost after a refresh”), while models with poor management suffer from constraint amnesia in later rounds, leading to repeated patching during the acceptance phase.

    4. Insights for Engineering Teams

    First, selection must focus on end-to-end efficiency rather than benchmark scores. It is recommended to run controlled comparative experiments on your own real tasks, fixing the framework and recording total duration, action rounds, tool call failure rate, and retry count. These four metrics offer more decision-making value than any benchmark score.

    Second, treat stability as a system property, not just a model property. Retry strategies, backoff algorithms, and task resumption capabilities should be solidified at the framework layer. A well-designed framework can allow a “medium model + robust framework” to outperform a “strong model + bare framework.”

    Third, complex product tasks are better touchstones than pure coding tasks. Tasks like the one in this experiment, which require multi-state, multi-role, and multi-interaction coordination, do not expose coding ability but rather long-range planning and constraint maintenance capabilities—precisely the scarcest capabilities in agent scenarios.

    The core conclusion of this set of experiments can be distilled into a single sentence: In the agent era, model positioning labels (such as “low cost” or “high speed”) only describe part of the capability. Real delivery efficiency is jointly determined by action rounds, tool calls, service stability, and context management. Evaluation and selection should always revolve around end-to-end results.