Skip to content
← All posts

Research · Benchmark

Your AI agent may be reading the same 100,000 tokens again and again

Agent loops on 100K-token contexts, code review across 200 repositories, and all of it behind one gateway under five routing policies. Caching enabled against our optimization on the same A100 and H100.

The result, explained

4.8×

more completed requests per minute

Mixed-workload gateway · 10.8 → 51.5 requests/min

Best tested routing policy per setup; extra host included in optimized cost.

Agentic traffic on two GPUs

Qwen 3.8 27B (int8 weights) · vLLM · one A100-80GB + one H100-80GB · September 14–18, 2026

Agent turns per minute, 16 agents

3.3 → 20.0

6.0×; steady state 1.9 → 27.8

Code reviews completed, 8 in flight

67 → 270

p95 time to first token 57.9 s → 9.8 s

Mixed fleet, requests per minute

10.8 → 51.5

best routing on each side: 4.8×

Cost per 1,000 agent turns, steady state

$141 → $16.61

both GPUs and the extra host, list prices

Agentic traffic is long-context traffic with a worse shape. An agent carries a large context (a document, a repository, its own history), calls a tool, waits, and comes back with the same context plus a little more. A code-review bot reads the same repository for every pull request. Behind a gateway, the next turn lands on whichever GPU the router picks. Each of those is a chance to process the same tens of thousands of tokens again.

We ran three such workloads on the same pair of GPUs, each with caching enabled and with our optimization, and report throughput, time to first token and cost per unit of work.

Agent loops on 100K-token contexts

K agents, each on a document of about 100,000 tokens, append-only turns, a tool call of 15 to 45 seconds between turns, each turn sent to a random GPU, eight minutes per load level, nothing loaded in advance.

Agent turns completed per minute

0.010.020.081632concurrent agentsturns per minute4.56.10.010.020.081632concurrent agentsturns per minute4.56.1
caching enabledour optimization
Two GPUs carry 8 agents either way. At 16 the configuration with caching enabled spends most of its time on contexts it has already processed; at 32 both are past what two GPUs can carry. Campaign of September 14–15, 2026.
AgentsSetupTurns / minRepeat turn p50Repeat turn p95Repeats within 3 s
8Caching enabled8.61.33 s10.8 s82%
8Our optimization9.20.98 s2.4 s98%
16Caching enabled3.3256 s302 s19%
16Our optimization20.00.95 s3.1 s94%
32Caching enabled4.520.3 s706 s28%
32Our optimization6.1323 s483 s38%

A second run held 16 agents long enough to leave the warm-up behind. In steady state our optimization completed 27.8 turns a minute against 1.9, answered every repeat turn within 3 seconds (p95 2.3 s against 310 s), and cost $16.61 per 1,000 turns against $141. At 24 agents it still completed 25.9 turns a minute at $17.86 per 1,000.

Code review across 200 repositories

200 repository bundles of 20,000 to 60,000 tokens, 300 reviews over 127 of them with a skewed popularity (a few repositories get most pull requests), and a unique 2,000 to 6,000-token diff in every review: a prompt of about 46,000 tokens of which only the diff is new. Both setups warmed up before measuring; ours with every repository indexed ahead of time, the steady state of an organisation that has connected all its repositories.

Code reviewFirst token p50p95Completed, 8 in flightTokens / s, 8 in flightp95, 16 in flight$ / 1k, one at a time
Caching enabled4.27 s13.79 s6711,642135.2 s$78.30
Our optimization1.13 s2.85 s27051,13222.5 s$25.12

One review at a time the median first token fell 3.8× and the p95 4.8×. Under load the difference grows: at eight reviews in flight our optimization completed four times as many in the same window, and at sixteen its p95 was 22.5 s against 135.2 s.

A mixed fleet behind one gateway

Real fleets run all of this at once. Eight agents, four retrieval workers and four code-review workers shared the two GPUs behind one gateway for 10 to 15 minutes per arm, and we crossed the two setups with five standard routing policies.

Requests per minute by routing policy

0.020.040.0requests per minute5.020.2random5.327.1session affinity10.838.0least busy9.049.2lowest latency5.631.1weighted0.020.040.0requests per minute5.020.2random5.327.1sessionaffinity10.838.0leastbusy9.049.2lowestlatency5.631.1weighted
caching enabledour optimization
The worst policy with our optimization beat the best policy with caching enabled. Campaign of September 18, 2026.
Mixed fleetRequests / minPrompt tokens / sFirst token p50Within 3 sGPU $ / 1kWith extra host
Caching enabled, least busy (its best)10.815,12325.76 s0%$24.71$24.71
Our optimization, lowest latency49.263,0741.75 s57%$5.44$9.39
Our optimization, affinity + least busy (its best)51.564,9951.75 s59%$5.20$8.97

Results reflect the configurations described in this post. Performance varies by model, hardware, traffic, context and application requirements.