Guide · Tools & workflows
AI Glossary: WER, RTFx, TTFT and Context Window
What WER, RTFx, TTFT, tokens per second, and context window actually measure, how each is computed, and the mistakes that follow when they are treated as one quality score.
Pavel Holmgren · Nov 27, 2026 · 6 min read
On this page
These five terms show up constantly in model cards, inference blogs, and speech-API pricing, often without a definition tight enough to budget against. This glossary explains word error rate (WER), real-time factor (RTFx), time to first token (TTFT), tokens per second, and context window — what each one measures, how it is usually computed, and the mistake that most often follows from treating it as a single quality score.
None of these metrics replaces a task-level evaluation. They are instruments. Used together, they tell you whether a system is accurate enough, fast enough, and large enough for a job. Used alone, any one of them can be gamed or misread. For coding and agent boards, start instead with AI benchmarks explained and SWE-bench vs Terminal-Bench. For serving method, see how to benchmark LLM inference.
WER (word error rate)
WER is the standard error rate for automatic speech recognition. You compare a reference transcript with the system transcript and count substitutions, deletions, and insertions, then divide by the number of words in the reference. A WER of 0.10, or 10%, means ten errors for every hundred reference words, not that 90% of utterances were perfect. Official evaluation sets (for example LibriSpeech or a vendor’s own test set) have to be named, because WER moves with the audio: accent, domain, overlap, and microphone quality all change it.
The usual mistake is to treat a lower WER as a better product in every setting. A model can post a strong WER on a clean read-speech set and collapse on meetings, names, or a language that was under-represented in the test. WER also ignores time: a transcript can be accurate and still arrive too late to use. When a speech API quotes WER without the dataset, the language, and whether numbers and punctuation were normalized, the figure is not comparable to another vendor’s figure.
RTFx (real-time factor)
RTFx, or real-time factor, is a speed metric for speech and other audio systems. It is the time the system took to process a clip, divided by the duration of the clip. An RTFx of 1.0 means the system took as long as the audio lasted. An RTFx of 0.2 means it ran five times faster than real time. An RTFx above 1.0 means it fell behind the audio. Some vendors invert the language and talk about “real-time multiples”; always check whether a larger number means faster or slower.
The usual mistake is to quote RTFx without the hardware, the batch size, and whether the measurement includes upload, encoding, and alignment, or only the decoder. A datacenter RTFx of 0.1 on a packed batch does not describe a laptop mic stream. RTFx also says nothing about accuracy. Pair it with WER, on the same audio, or you are comparing a fast bad transcript with a slow good one.
TTFT (time to first token)
Time to first token is the latency from sending a request to receiving the first output token of a language-model response. It is the number users feel when they wait for a stream to start. It is not the time to a complete answer. A system can have an excellent TTFT and still be slow to finish, or a slow TTFT and a fast remainder if the prompt is long or the first token is gated on a tool call.
The usual mistake is to publish a TTFT measured on a warm connection, a short prompt, and a nearby region, then treat it as a service-level objective for cold starts and long prompts. Say whether the figure includes queue time, authentication, and safety screening. For interactive products, TTFT and tokens per second need to be read together. Method notes for measuring them honestly are in how to benchmark LLM inference.
Tokens per second
Tokens per second is the generation throughput after the first token: how quickly the model produces the rest of the response, or, in a batch-serving setting, how many tokens the server emits across requests. The useful variant depends on the product. A chat app cares about tokens per second per stream. A batch job cares about tokens per second per GPU or per dollar. Both should name the hardware, the precision, the batch size, and the output length of the measurement.
The usual mistake is to compare a vendor’s peak tokens-per-second claim with another vendor’s end-to-end user-visible rate. Prefill (reading the prompt) and decode (writing the output) have different bottlenecks. A long prompt can dominate even when decode looks fast. Another mistake is to ignore that reasoning or “thinking” tokens may count toward both the bill and the throughput, even if they are not all shown to the user. For cost, always pair throughput with the official token rate from the pricing tracker or the vendor card.
Context window
A context window is the maximum number of tokens a model can consider in one request — usually input plus output, sometimes with a separate cap on each. A 1-million-token window means the API will accept a very large prompt, not that quality is flat across that range. Some rate cards, including OpenAI’s official pricing page as of 28 November 2026, also change the price above a threshold (OpenAI’s Long toggle is more than 272K input tokens). Capacity, quality at length, and price at length are three different facts.
The usual mistake is to treat the window as a retrieval strategy. A long window can still miss the one paragraph that matters, and it will bill you for everything you stuffed in. Chunking, lexical search, embeddings, and access filters exist because a window is not a filing system. See embeddings and retrieval and RAG explained when the job is to ground an answer in sources rather than to fill the window.
How to use these terms together
- For speech, report WER and RTFx on the same test set, and name the set.
- For interactive text, report TTFT and tokens per second, with prompt length and hardware.
- For a long-document product, report the window, the price tier at that length, and a quality test that is not a needle-in-a-haystack toy.
- Never average these metrics with SWE-bench or a chat arena score. They do not measure the same thing.
Sources and related reading
Definitions above follow standard evaluation practice for ASR (word error rate as edit distance over reference words; real-time factor as processing time over audio duration) and common serving measurements for LLM APIs. OpenAI’s Short/Long pricing split is from OpenAI API pricing, accessed 28 November 2026. Related Metarix pages: how to benchmark LLM inference; AI benchmarks explained; embeddings and retrieval; LLM API pricing tracker.