A Deep Benchmark of Lightweight LLM Execution Efficiency Under an Agent Framework
All four lightweight LLMs (under 300B parameters) completed the same complex agent task, but their end-to-end execution times ranged from 17 minutes to 88 minutes. This article presents a controlled benchmark fixing the agent framework while swapping the underlying model, and analyzes why action path planning, tool-calling accuracy, context management, and retry strategies—not single-inference speed—determine real-world agent efficiency.
As large language model (LLM) technology continues to evolve, lightweight models with fewer than 300B parameters have become the go-to choice for developers and enterprises looking to reduce costs and improve efficiency. However, in automated agentic coding and multi-agent collaboration scenarios, fast single-shot inference does not equal high overall task execution efficiency. To investigate how lightweight models perform in real, complex business scenarios, we recently conducted a rigorous side-by-side benchmark.
1. Benchmark Design: A Strict Controlled-Variable Approach
In an earlier round of testing, we fixed a single underlying LLM and compared several mainstream agentic coding tools and orchestration frameworks. The results showed that the best-performing framework completed a highly complex creative collaboration system in only about 17 minutes.
This time, we reversed the variable: we fixed the agent orchestration framework (Harness) completely—unifying the task objective, source materials, context environment, browser access permissions, and final acceptance criteria. The only variable was the underlying LLM driving the agent. All models in this benchmark are mainstream lightweight LLMs under the 300B-parameter class, and the goal was to examine their real driving capability within the same agent framework.
2. Test Results and Process Analysis
All four models eventually completed the task successfully, but their execution processes differed dramatically—differences that are far more analytically valuable than the final screenshots:
- Model A: Optimal path, extremely fast completion. This model triggered no full-task reruns and no internal retry mechanisms during execution, completing the complex system build in just 17 minutes. This indicates very high code generation accuracy and sound tool-orchestration logic.
- Model B: Poor fault tolerance, time lost to retries. This model failed the acceptance check on its first run, triggering the framework’s full-task rerun mechanism. Including retry time, the total execution time reached 1 hour and 12 minutes.
- Model C: Errors absorbed internally, longest total time. Although this model never triggered a framework-level rerun, it invoked 3 internal automatic retries during execution. This invisible overhead substantially extended its runtime to 88 minutes, reflecting significant trial-and-error costs in local code generation or tool invocation.
- Model D: Backoff strategy kicked in, succeeded the hard way. This model failed twice in a row under the default retry policy, then triggered an extended backoff mechanism. After a period of waiting and strategy adjustment, it eventually succeeded. The cumulative time from launch to first success was 1 hour and 4 minutes.
3. Deeper Analysis: The Key Factors That Determine Real Agent Efficiency
This experiment clearly demonstrates that a low-cost or high-speed positioning only describes part of a model’s capability in single-shot inference. In a real agent execution environment, overall efficiency is a complex systems-engineering problem that depends on the combined performance of the following core factors.
3.1 Number of Action Steps and Path-Planning Capability
In complex system construction, a strong model can plan the optimal action path in one pass, reducing unnecessary interaction rounds. The key reason Model A completed the task so quickly was its strong logical reasoning and task-decomposition capabilities, which kept it from taking detours. Fewer action steps mean not only shorter execution time, but also lower risk of context pollution.
3.2 Precision of Tool Calling and API Interaction
Modern agent frameworks depend heavily on the LLM’s accurate invocation of external tools—code execution sandboxes, browser control engines, file system operations, and so on. Smaller-parameter models are often prone to errors in JSON formatting or parameter passing. Model C’s internal retries were very likely caused by mismatched tool-call instructions. Tool-calling precision directly determines whether an agent can advance its workflow smoothly.
3.3 Context Window Management
Long-running tasks generate large volumes of code snippets, logs, and history. Effectively compressing and managing context—avoiding “forgetting” the original instructions or producing context hallucinations—is a major challenge for any model. Poor context management can cause the model to drift from the objective late in the task, leading to acceptance failure and a full rerun, as seen with Model B.
3.4 Failure Recovery and Service Stability
Over long-running sessions, the stability of the model’s API service and the framework’s failure-recovery mechanisms are critical. Model D’s case shows that a well-designed backoff-and-retry strategy is the key safety net ensuring eventual task success. For enterprise-grade applications, leveraging containerized scheduling, logging services, and monitoring/alerting mechanisms provided by platforms such as Baidu AI Cloud can further improve the overall robustness of agent operations.
4. Conclusions and Practical Recommendations
This benchmark reveals the true complexity of agent task execution efficiency. A model’s theoretical throughput and parameter scale certainly matter, but in end-to-end automated tasks, the number of action steps, tool-calling accuracy, service stability, and context management are what ultimately determine total time and cost.
For developers and enterprise users, model selection should never be based solely on parameters in technical whitepapers or theoretical token speeds. Candidate models must be evaluated end to end in the target business scenario. Using a mature cloud-based AI development platform for multi-model orchestration and comparative testing—combined with automated evaluation metrics—is currently the best practice for verifying a model’s real business value. Only model-and-framework combinations that have been proven under real workloads can deliver genuine cost reduction and efficiency gains for the enterprise.
