How to Evaluate a New LLM Release: Performance, Cost, and Architecture Considerations
When a new model is released, public benchmarks, subjective impressions, and pricing tables each tell only part of the story. This article presents a systematic evaluation framework: how to read public benchmarks correctly, how to build a task-based evaluation from real workflows, how to judge reliability on long-horizon tasks, and how to estimate true per-task costs beyond per-token pricing. Sample code for evaluation records and cost estimation is included.
1. Why a Systematic Evaluation Matters
When a new model is released, discussion usually concentrates on three things: benchmark scores, subjective impressions, and pricing. All three are useful signals, but relying on any one of them alone leads to one-sided conclusions. Benchmark scores reflect performance on specific test sets. Subjective impressions vary with use cases and prompting style. Pricing only becomes meaningful when combined with actual token consumption.
A reliable approach is to place all three types of information into a single framework and compare candidate models using a unified task set and a consistent recording method. The sections below follow this approach.
2. Reading Public Benchmarks Correctly
Public benchmark scores are suitable for rough filtering. When reading a leaderboard, verify four things:
- Which capabilities the test set covers, such as coding, math, long-context comprehension, or tool calling;
- Whether the evaluation setup (context length, sampling parameters, whether tools are enabled) is close to your own scenario;
- Whether the scores correspond to the official release version, or to an early version or intermediate checkpoint;
- Whether statistical error from repeated runs is reported.
A common mistake is treating a gap of a few percentage points as a stable advantage. On many benchmarks, differences of this size may fall within the variance of repeated runs. To determine whether a difference is significant, you need multiple runs and an observation of the variance. Benchmark results also need to be mapped to your own tasks — strengths on a test set do not necessarily translate into strengths in your business.
3. Evaluating with Real Workflows
More valuable than public leaderboards is evaluating on your own tasks. A recommended approach is to extract 20 to 50 tasks from real work, covering the following types:
- Reading multiple files and locating a problem;
- Generating or modifying code according to established conventions;
- Calling tools to complete multi-step operations;
- Maintaining early constraints across a long conversation;
- Producing structured output, such as JSON that conforms to a fixed schema.
Each task needs an explicit success criterion, such as “all tests pass after the modification” or “output fields exactly match the schema.” For tasks that cannot be judged automatically, two reviewers can score independently and the average can be taken.
Below is a simplified evaluation framework. Here client is a unified calling client you wrap yourself, and the field structure of resp.usage should be adjusted to match the actual API:
import osimport timefrom dataclasses import dataclass, field@dataclassclass Usage:input_tokens: int = 0cached_tokens: int = 0output_tokens: int = 0@dataclassclass EvalRecord:task_id: strpassed: boollatency_s: floatusage: Usage = field(default_factory=Usage)error: str | None = Nonedef run_eval(client, tasks, checker):model = os.environ["EVAL_MODEL_NAME"] # model name passed via env var, not hardcodedrecords = []for task in tasks:start = time.perf_counter()try:resp = client.chat(model=model, messages=task["messages"])passed = checker(task, resp.text)usage = Usage(input_tokens=resp.usage["input"],cached_tokens=resp.usage.get("cached", 0),output_tokens=resp.usage["output"],)records.append(EvalRecord(task["id"], passed, time.perf_counter() - start, usage))except Exception as exc:# record infrastructure errors (timeouts, stream drops) separately from wrong answersrecords.append(EvalRecord(task["id"], False, time.perf_counter() - start, error=str(exc)))return records
This code records “wrong answer” and “call exception” separately. The two have different causes and require different handling. A wrong answer points to a problem with model capability or prompting, while a call exception more often points to network issues, timeouts, or service stability. Mixing the two distorts the selection conclusions.
4. Judging Usability on Long-Horizon Tasks
Long-horizon tasks are jobs that require tens to hundreds of consecutive steps across multiple rounds of tool calls. When judging usability for these tasks, you cannot look only at whether the task eventually completes; you also need to examine behavior during the process:
- Interruption recovery: after a connection drops, can execution resume from the breakpoint instead of starting over?
- State retention: late in a long session, does the model still follow constraints and file structures established early on?
- Error self-correction: when a tool returns an error, can the model identify the cause and adjust its plan?
- Behavioral stability: when the same task runs multiple times, is the distribution of outcomes acceptable?
On the engineering side, you typically need to add corresponding fallback capabilities, including session persistence, checkpoints, retries with backoff, and programmatic validation of outputs. Model capability and engineering fallbacks together determine final usability. If the model occasionally drops the stream and there is no checkpoint mechanism, the completion rate of long tasks will decline noticeably.
5. Cost Evaluation: Don’t Just Look at Unit Prices
A pricing table is only part of the cost picture. Actual cost is determined by three factors: the number of tokens consumed per task, the unit price of each token type, and the cache hit rate. The formula is:
Per-task cost = (input tokens − cached tokens) × regular input price + cached tokens × cached input price + output tokens × output price
Cached tokens are typically a subset of input tokens, so the formula subtracts them first. The following code estimates cost according to this formula:
from dataclasses import dataclass@dataclassclass Price:input_per_m: float # price per million regular input tokenscached_per_m: float # price per million cached input tokensoutput_per_m: float # price per million output tokensdef estimate_cost(input_tokens, cached_tokens, output_tokens, price):if cached_tokens > input_tokens:raise ValueError("cached tokens cannot exceed total input tokens")uncached = input_tokens - cached_tokenstotal = (uncached * price.input_per_m+ cached_tokens * price.cached_per_m+ output_tokens * price.output_per_m)return total / 1_000_000
Price parameters should be read from the provider’s official pricing page, with the query date recorded, since pricing can change at any time.
Three additional points to keep in mind during evaluation:
- Token consumption for the same task can differ significantly across models. Causes include tokenization methods, reasoning styles, and redundant output during tool calling.
- The cache hit rate depends on context structure. Placing stable system instructions and fixed file contents at the front of the prompt prefix helps improve the hit rate.
- Comparisons should use “total cost to complete a single task” as the unit, rather than comparing per-million-token prices. A model with a higher unit price but lower consumption may have a lower total cost.
