Benchmarking Four Lightweight LLMs on the Same Agent Framework: Where the Efficiency Gaps Come From
This article presents a controlled benchmark of four lightweight LLMs (under 300B parameters) running the same complex product-building task on an identical agent framework. While all four models eventually passed acceptance checks, completion times ranged from 17 to 88 minutes. The analysis breaks down the four decisive factors behind agent execution efficiency—action rounds, tool-call quality, service stability with retry strategies, and context management—and offers practical guidance for model selection in real-world agent applications.
Benchmarking Four Lightweight LLMs on the Same Agent Framework: Why the Efficiency Gap Is So Large
1. Experiment Design: Control Every Variable Except the Model
When evaluating an LLM’s agent execution capability, the most common pitfall is changing the model while also changing the task, the prompts, and the toolchain—producing conclusions contaminated by too many variables. To obtain a convincing comparison, this experiment strictly follows the single-variable principle:
- Fixed execution framework: All four models run on the same agent orchestration framework (Harness), which handles task decomposition, tool scheduling, browser interaction, and result verification. Its own capabilities remain constant.
- Fixed tasks and assets: Identical inputs, including six openly licensed museum images, a project member list, an asset inventory, version records, and seed comment data.
- Fixed context and acceptance rules: Context window trimming strategy, failure retry mechanism, and final delivery acceptance criteria are aligned item by item.
- The only variable: The underlying LLM is swapped between four lightweight models, each under 300B parameters, referred to here as Model A, Model B, Model C, and Model D.
It is worth emphasizing that this article does not recommend any specific vendor. Instead, through this controlled experiment, it addresses a more general question: when we say a model is “fast” or “cheap,” what actually determines its performance on real agent tasks?
2. The Test Task: Building a Complex Product System from Scratch
The difficulty of this task lies in having no reference point. The model must build a creative studio collaboration system from scratch, given only raw assets and seed data, with no existing pages to imitate.
The system must cover five core business states:
- Project overview: Aggregated display of all projects, progress, and member assignments.
- Moodboard: Free drag-and-drop and visual organization of assets.
- Asset-anchored comments: Comments must be anchored to specific coordinate regions on an image, not simply attached below an item.
- Version approval workflow: Support for version switching, approval, and rejection, with state records for every operation.
- Publish preview: A read-only view simulating the final deliverable.
In addition, the system includes three roles—creative director, designer, and client—each with different operational permissions. The most demanding acceptance requirement is: all state must be persisted; no drag positions, comments, or approval records may be lost after a page refresh.
This type of task is highly comprehensive: it tests the model’s front-end engineering ability (drag-and-drop interaction, state management, routing design), its long-horizon task planning ability (whether to build the skeleton first or fill in data first), and its self-recovery ability when errors occur.
3. Results: All Four Models Finished, but the Journeys Were Worlds Apart
All four models ultimately passed acceptance—worth acknowledging, since building a complex product is no longer a barrier for lightweight models. But the differences in process are far more informative than the final screenshots:
| Model | Completion Path | Total Time |
|---|---|---|
| Model A | Passed on the first attempt, no reruns | ~17 minutes |
| Model B | First attempt failed; succeeded after a full rerun | ~72 minutes |
| Model C | No full reruns, but 3 internal automatic retries triggered | ~88 minutes |
| Model D | Default retry strategy failed twice in a row; succeeded after switching to an extended backoff strategy | ~64 minutes |
The fastest and slowest differ by nearly 5x, and the reasons for “slow” vary: some models took more action rounds, some suffered a single-round failure that forced a complete restart, and some were hit by retry storms caused by server-side instability.
4. The Four Decisive Variables Behind the Efficiency Gap
4.1 Action Rounds: Planning Quality Determines Total Steps
Model A finished in 17 minutes not because of fast per-step generation, but because of a short planning path. Before writing any code, it completed task decomposition, settled on the directory structure, state management approach, and data flow—after which there was almost no rework. The slower models, by contrast, typically discovered mid-development that their state persistence design conflicted with the comment-anchoring feature, forcing them to overturn parts of the design.
The takeaway: when evaluating agent efficiency, “first-pass planning accuracy” is a more important metric than token generation speed.
4.2 Tool-Call Quality: One Correct Call Beats Ten Trials
Features like drag-and-drop, coordinate anchoring, and persistent storage usually require the framework’s tool interfaces. High-quality models rigorously validate parameters, read error messages returned by tools, and apply precise fixes. Some models, however, exhibit “blind editing”—changing the code and retrying without reading the error details—which inflates the number of ineffective calls. A significant portion of Model C’s 88 minutes was spent rebuilding context across its three automatic retries.
4.3 Service Stability: Retry Strategy Is a Double-Edged Sword
Model D’s case is the most representative: its default retry strategy was rapid-fire resubmission, which failed twice in a row, and the framework declared the task failed. After switching to an exponential backoff strategy—where each retry interval doubles, giving the server time to recover—the task completed successfully.
Illustrative pseudocode for the backoff strategy:
def call_with_backoff(fn, max_retries=5):delay = 1 # initial interval of 1 secondfor attempt in range(max_retries):try:return fn()except TransientError:if attempt == max_retries - 1:raisesleep(delay)delay *= 2 # interval doubles: 1, 2, 4, 8, 16
This detail shows that a model’s real-world usability is the product of three factors—“model capability × inference service stability × retry strategy design”—and any weak link gets amplified over long tasks.
4.4 Context Management: The Hidden Cost of Long Tasks
Multi-turn dialogue in a full task quickly consumes the context window. Well-performing models tend to output compact incremental changes and apply summary-style compression to earlier context. Some models, however, “forget early conventions” in long contexts—for example, generating naming inconsistent with the persistence keys agreed upon earlier, introducing subtle defects. Context management strategies (such as summarizing key information and storing state snapshots externally) should be treated as foundational framework capabilities, not optional extras.
5. Practical Implications for Model Selection
Based on this experiment, here are four actionable recommendations:
- Don’t rely solely on single-turn QA benchmark scores. For agent scenarios, measure end-to-end task completion time and first-pass success rate, and build your own small benchmark task set.
- Factor “retry cost” into total cost. A model with a low unit price may end up costing more in practice if it frequently triggers reruns.
- Build defensive design into the framework layer: exponential backoff retries, externalized state persistence, and context summarization/compression. These three measures significantly level out stability differences between models.
- Tier models by task type. Use lightweight models for simple tasks to cut costs; for complex long-horizon tasks, prioritize models with proven planning ability and tool-call reliability, and consider hybrid scheduling where necessary.
6. Conclusion
The core conclusion of this benchmark is: labels like “low cost” and “high speed” only describe one facet of a model’s capability. Real agent execution efficiency is the combined result of action rounds, tool-call quality, service stability, and context management. For teams building agent applications, rather than chasing leaderboard rankings, it is far better to run your own controlled experiments under a unified framework—with the same tasks and the same acceptance rules—to find the model that genuinely fits your business.
