Evaluating LLMs with 10 Million Tokens: A Full-Spectrum Test from Agent Coding to Lightweight Tasks

    A practical review of an LLM evaluation that consumed more than 10 million tokens across agent coding, complex reasoning, and lightweight tasks. It covers long-running execution, reasoning reliability, real cost under caching, and a reusable method for judging models for production.

    Evaluating LLMs with 10 Million Tokens: A Full-Spectrum Test from Agent Coding to Lightweight Tasks

    A few minutes of casual use only shows the surface of a large language model. What decides whether a model can enter production is stability on long-running tasks, reliability on hard reasoning, and cost-effectiveness under a real pricing structure. This article reviews a deep evaluation that consumed more than 10 million tokens across agent coding, complex reasoning, and lightweight tasks, and summarizes a reusable evaluation method.

    1. Goals and overall design

    The evaluation focused on three questions:

    • Long-running execution: Can the model finish engineering work on the order of tens of minutes with no human intervention, without stopping or falling into a dead loop?
    • Reasoning stability: On logic problems and hard math problems, what are the accuracy and the failure modes?
    • Cost structure: Under API pricing and caching together, how far does the real bill diverge from the listed unit price?

    We built a simple evaluation framework that stores task templates, sampling parameters, response logs, token counts, and judgments in one place so runs can be replayed and attributed later. The sketch looks like this:

    1. @dataclass
    2. class TaskResult:
    3. task_id: str
    4. category: str # agent_coding / reasoning / lightweight
    5. prompt_tokens: int
    6. completion_tokens: int
    7. cached_tokens: int
    8. duration_sec: float
    9. verdict: str # success / wrong_answer / loop / timeout
    10. trace_path: str
    11. def run_task(task, model_config):
    12. start = time.time()
    13. response = invoke_model(task.prompt, model_config)
    14. return TaskResult(
    15. task_id=task.id,
    16. category=task.category,
    17. prompt_tokens=response.usage.prompt_tokens,
    18. completion_tokens=response.usage.completion_tokens,
    19. cached_tokens=response.usage.cached_tokens,
    20. duration_sec=time.time() - start,
    21. verdict=task.judge(response.text),
    22. trace_path=save_trace(task, response),
    23. )

    The key point is not to record only the final answer. Save the full reasoning and tool-call trace. Many failures are not “the model cannot do it.” They come from planning drift, missing self-correction, or repeated tool calls. Only the trace shows the root cause.

    2. Agent coding: long-running autonomy is the dividing line

    Task constraints were kept deliberately thin. For example, the prompt only asked the model to “implement a system with bookkeeping, transaction statistics, and similar capabilities,” without detailed fields or API definitions. That tests autonomous planning: the model must break down requirements, design a data model, order the work, and verify the result itself.

    A strong model showed a closed loop of behavior:

    1. Plan before coding: It produced a module split and table design (in this case, 8 functional modules and 6 tables) and stated each component’s responsibility.
    2. Design verification up front: Before implementation it listed a verification checklist (about 10 items here) covering functional correctness and error paths.
    3. Keep executing without drifting: It coded continuously for about 60 minutes, stayed aligned with the initial plan, and neither stopped nor entered a dead loop.
    4. Deliver a usable front end: Core actions such as adding records, managing categories, and create/read/update/delete all worked without errors.

    Long-running work demands strong self-correction. In this evaluation, stronger models went back and revised the data model after a unit check failed, instead of retrying the same line of code. Metrics should therefore separate first-pass rate from pass rate after correction, and should record average correction rounds and useless loop counts. Even when base capability is similar, differences in long-running stability still decide whether agent coding is usable.

    3. Complex reasoning: strengths and gaps together

    On logic tasks such as lateral-thinking puzzles, models often produced a careful chain of reasoning and stayed stable. On hard math and contest problems, failure modes diverged:

    • Dead loops: The model kept trying the same derivation path, burning tokens without converging.
    • Confident wrong answers: The write-up looked reasonable, but a key step hid an error, and the model did not doubt itself.
    • Overthinking: A simple problem was made complicated and the answer drifted away.

    Reports should include not only accuracy but also the failure-mode distribution (wrong answer / loop / timeout / refusal), because that distribution drives online fallback policy. For reasoning calls, set a maximum step count and repetition detection: if several consecutive outputs are highly similar, stop and steer the model toward a different solving strategy.

    4. Lightweight tasks: watch the overthinking trap

    One counterintuitive result: on an elementary pricing problem for a car wash, a stronger model sometimes got the answer wrong. It habitually added overly complex assumptions, treated a simple question as a multi-step puzzle, and reasoned its way to the wrong conclusion.

    That suggests two practical choices:

    • Route by scenario: Send simple Q&A, format conversion, and information extraction to a lighter, more direct model. Reserve heavy reasoning models for complex planning and coding. That improves latency and cuts cost.
    • Intervene in the prompt: For lightweight tasks, explicitly ask for “a short answer with no extended reasoning.” That can suppress overthinking.

    5. Cost: look past the unit price to cache hit rate

    A higher listed API price does not mean the total bill rises by the same proportion. Long tasks repeat a lot of context—system prompts, tool definitions, and conversation history. Once that context hits the cache, those tokens are billed at a much lower rate. In this run, the bill increase on long tasks was clearly smaller than the listed price increase.

    Fix these metrics in any cost review:

    • Total cost per task = Σ (tokens of each type × the matching unit price);
    • Cache hit rate = cached input tokens / total input tokens;
    • Cost per successful outcome = total cost / number of successfully completed tasks.

    For agent coding, a 60-minute task billed entirely at full price would be hard to justify. Caching makes that class of work economically feasible. Keep system prompts and tool definitions stable across turns (avoid changing the prefix every round) so cache hits stay high.

    6. Conclusions and recommendations

    Across this 10-million-token evaluation:

    1. Agent coding can already support complex engineering work for about 60 minutes without human intervention. Long-range planning and self-verification are the decisive criteria.
    2. Complex reasoning still has clear gaps. Evaluate it with a failure-mode distribution, not accuracy alone, and add loop detection and fallbacks in the product.
    3. Route lightweight tasks separately from heavy reasoning so overthinking does not hurt both quality and cost.
    4. Cost decisions must include cache hit rate and should be made on cost per successful outcome.

    Teams running a similar evaluation should follow three rules: layer the tasks (long-running / reasoning / lightweight), keep full traces (so failures can be attributed, not just scored), and choose production-facing metrics (correction rate, loop rate, cache hit rate). Treat the model as a systems-engineering object. Only then do the results actually guide model selection and rollout.