n4nAI

Topic

Long-Context Latency Benchmarks

13 posts on long-context latency benchmarks — part of benchmarks & performance on the n4n AI blog.

Benchmarks & performanceAnalysis

Why long-context requests slow down time to first token

Analyzes why long context time to first token slowdown occurs, breaking down prefill cost, attention scaling, and scheduling, with practical mitigations.

4 min read
Benchmarks & performanceHow-to

Measuring latency cost of large system prompts

Step-by-step method to measure system prompt latency cost on LLM endpoints, isolating prefill overhead with streaming and controlled prompt sizes across models.

3 min read
Benchmarks & performanceAnalysis

Long-context latency: Claude Opus 4.5 at 200k tokens

Analyzing Claude Opus 4.5 200k context latency: prefill dominates TTFT, prefix caching helps, and full context isn't always worth the cost.

5 min read
Benchmarks & performanceAnalysis

Llama 4 Scout long-context latency at 10M tokens

Analysis of Llama 4 Scout 10M context latency: why KV-cache footprint and prefill scheduling dominate, and how to serve open-weight long-context models in production.

4 min read
Benchmarks & performanceAnalysis

How much does a 100k-token prompt add to response time

Analyzing how a 100k token prompt affects LLM response time: prefill cost, time-to-first-token, caching, and practical latency tradeoffs for engineers.

4 min read
Benchmarks & performanceAnalysis

How context length affects time to first token

Analyze how prompt size drives time to first token in LLM inference, why it's sublinear in practice, and how to benchmark and reduce long-context TTFT.

4 min read
Benchmarks & performanceComparison

Long-context latency: GPT-4.1 vs Claude Sonnet 4.5

Head-to-head comparison of GPT-4.1 vs Claude Sonnet long context latency: measuring TTFT, throughput, cost, and ergonomics for engineering teams.

4 min read
Benchmarks & performanceComparison

Long-context latency benchmark across 8 LLM providers

A head-to-head long context latency benchmark across 8 LLM providers, comparing capabilities, cost, speed, and ergonomics to guide your architecture.

5 min read
Benchmarks & performanceComparison

Latency at 128k tokens: GPT-4o vs Claude vs Gemini

A practical 128k token context latency benchmark comparing GPT-4o, Claude, and Gemini on cost, speed, and ergonomics for long-context LLM apps.

4 min read
Benchmarks & performanceAnalysis

Does prompt caching fix long-context latency?

Prompt caching reduces long-context latency for repeated prefixes but doesn't solve decode or cache-miss costs. An engineer's breakdown of tradeoffs.

4 min read
Benchmarks & performanceGuide

Context window latency benchmark for RAG-heavy prompts

A practical guide to benchmarking context window latency RAG prompts, with actionable steps, code, and tradeoffs for engineers shipping LLM systems.

3 min read
Benchmarks & performanceAnalysis

Benchmarking Gemini 1.5 Pro's 1M token context latency

A practitioner's analysis of Gemini 1.5 Pro 1M context latency: prefill dominance, measurement methodology, tradeoffs vs RAG, and production patterns.

5 min read
Benchmarks & performanceAnalysis

32k vs 128k vs 1M: context length latency scaling

Context length latency scaling from 32k to 1M tokens is non-linear. This analysis explains the mechanics and gives engineers concrete mitigation strategies.

4 min read