Benchmarking Four Lightweight LLMs Under a Fixed Agent Framework: Findings and Lessons

    We fixed the agent harness, tasks, context, and browser environment while swapping only the underlying model, then benchmarked four lightweight LLMs (under 30B parameters) on a complex multi-step product build. This article shares the completion-time data, failure patterns, and four hidden variables that truly determine agent efficiency—plus a reproducible methodology for running your own controlled evaluations.

    Why a “Fixed Framework, Model-Only” Benchmark

    As agent applications move into production, the question developers ask is no longer “which model has more parameters,” but “which model actually runs stably and fast in my real workflow.” Standard benchmark scores only reflect performance on curated test sets. Once a model enters real multi-step scenarios—calling tools, operating a browser, maintaining long context, handling UI state—its behavior often diverges sharply from leaderboard rankings.

    To answer this, we designed a controlled experiment: the agent execution framework (harness) was completely fixed. Task descriptions, source materials, context length, browser environment, and acceptance criteria were all identical. The only variable was the underlying model. The participants were four lightweight models with parameter counts under 30 billion: one experimental model with vision capabilities, two recently released fast-response models, and one model supporting an ultra-long context window as a horizontal reference.

    The value of this controlled-variable approach is that any difference in completion time, retry count, or output quality can be attributed to the model’s own behavioral characteristics—not to interference from the framework or the task.

    Task Design: A Complex Product Problem with No Reference Answer

    The evaluation task required each model to build a creative studio collaboration system from scratch. Inputs were deliberately minimal: several public-domain art images plus seed data for project members, assets, versions, and comments. No existing pages were provided as reference. The model had to autonomously implement five core business states:

    • Project overview: aggregated display of project progress, members, and asset distribution;
    • Inspiration board: free drag-and-drop layout of assets;
    • Asset-anchored comments: comments must be pinned to specific positions on specific assets;
    • Version approval: version switching, approval, and rejection workflows;
    • Publish preview: a read-only view for final reviewers.

    The system includes three roles—creative director, designer, and client—each with distinct permission boundaries. State had to survive a page refresh, which genuinely tests a model’s state management and persistence design capabilities.

    Engineering constraints were unified: a context window of roughly 260K tokens, a task budget of 200K tokens, UI verification via a browser automation protocol, desktop checks at 1440×1000 resolution, and mobile checks at 390×844. Each run saved a first-version screenshot, allowed only one round of fixes, and had to produce complete code, screenshots, run logs, review records, and quantitative metrics—ensuring auditable, reproducible results.

    Results: All Finished, but Completion Times Varied Wildly

    All four models eventually completed the task—a point worth emphasizing, since it shows lightweight models have crossed the baseline capability threshold for complex multi-step work. But the process data revealed enormous differences:

    Model 1 (vision-capable experimental model): ~17 minutes. The fastest of the group, with a compact action path, high tool-call success rate, and almost no wasted turns. Its output used a light, editorial-style design with a clean structure that made project status and asset relationships easy to read.

    Model 2 (fast model): first run failed; ~1 hour 12 minutes total including a full rerun. The failure wasn’t a capability gap—it was context management breaking down in the later stages of a long task, causing inconsistent intermediate state. After a rerun it completed successfully, producing a dark-and-cream design language whose permission matrix and approval-flow visual consistency were actually the best of the four.

    Model 3 (fast model): no full rerun, but 3 internal automatic retries; ~88 minutes total. This showed a different typical pattern—the framework’s automatic retry mechanism absorbed occasional failures and avoided a restart, but each retry consumed additional token budget and time.

    Model 4 (long-context model): failed twice under the default retry policy; completed after switching to an extended backoff strategy, ~1 hour 04 minutes to first success, with dozens of retries along the way. Its main bottleneck was not reasoning quality but the match between service stability and the retry/backoff strategy. The default fixed-interval retries were nearly useless against sustained failures; exponential backoff finally got the run through.

    Deep Analysis: Four Hidden Variables Behind Agent Efficiency

    1. Action count matters more than per-turn speed. The fastest model wasn’t the one with the highest tokens-per-second—it was the one whose every step landed closer to the correct direction, minimizing “do wrong → detect → roll back” loops. When evaluating models, measure the proportion of effective actions, not just raw generation speed.

    2. Tool-call reliability is a hidden dividing line. When a browser operation, file write, or state submission fails, every subsequent step is built on a false premise, and errors amplify along the task chain. A model’s ability to interpret tool results and self-correct directly determines whether the framework needs to step in.

    3. Retry strategy is an engineering problem, not just a model problem. The same model that failed repeatedly under fixed-interval retries completed successfully with exponential backoff. A general-purpose strategy:

    1. retry_delay = base_delay * (2 ^ attempt) + random_jitter
    2. Set max_attempts according to task budget, and classify failure types:
    3. - Transient errors (network, rate limits) -> backoff and retry
    4. - Logic errors (invalid output) -> regenerate with corrective prompting
    5. - State errors (context pollution) -> consider a full rollback

    4. A long context window is not the same as using context well. The long-context model showed no advantage in this experiment—in fact, it exhibited state drift during the long task. Context window is capacity; context management is capability. The two must not be conflated.

    Methodology: How to Build Your Own Reproducible Evaluation

    For teams looking to reuse this approach, we recommend the following principles: fix the framework and task, replacing only a single variable; preserve full logs, screenshots, and metrics while allowing a limited number of fix rounds; bring completion time, retry counts, token consumption, and effective-action ratio into a unified measurement framework; and classify failures by root cause, distinguishing model problems from framework problems and service problems. For production selection decisions, you should also pair evaluation with general-purpose cloud logging, monitoring, and alerting capabilities to maintain continuous observability of agents in operation—rather than relying on a one-off evaluation result.

    Conclusion

    The core takeaway from this experiment is that positioning labels like low-cost, high-speed, and long-context describe only part of a model’s capability. Real-world agent efficiency is the product of action quality, tool reliability, service stability, and context management—and any weak link gets amplified by multi-step tasks. For developers, rather than chasing leaderboards, run a controlled-variable experiment on your own task set. The data will tell you which model truly fits your scenario.