Median gateway time, October vs November 2026
The first question engineers ask about any LLM gateway is a fair one: what does the extra hop cost me?
So we measured it. In November we pushed 5,380 requests through the public Mesh API endpoint, against live models, at five load levels from "one person chatting" to "busy production service". Then we pulled out just the time each request spent inside our gateway, with model time removed.
The short version:
- Median gateway time: 9-11 ms with one request at a time, and still 9-10 ms at 80 requests in flight.
- Share of a request: under 5%. On the frontier tier it was 0.6-1.1%. The model is 93-99% of the wait.
- Completion: 5,380 of 5,380. Zero rejected, zero retried.
- A month earlier, the same test gave 24-32 ms. The median dropped by roughly two thirds.
- Not everything is solved. A burst of 100 simultaneous requests still pushed the frontier tier's slowest 1% to 144 ms. More on that below.
How we ran the test
Same harness in October and November, so the two runs are directly comparable.
- Endpoint: the public
api.meshapi.ai, not an internal shortcut. - Models: live provider models, not mocks. A fast tier (non-streamed) and a frontier tier (streamed).
- Request: a chat completion with a one-sentence prompt ("In one sentence, what is a rate limit?") and
max_tokens200. - Cache: off, so every request reached the model. No retries.
- Client: one load client in one cloud region.
- Volume: 2,690 requests per tier, 5,380 total.
Five load levels, each mapped to a real usage pattern:
| Level | Requests | What it simulates |
|---|---|---|
| Single | 50, one at a time | One person chatting |
| Steady | 40, 20 in flight | A small team |
| Sustained | 500, 20 in flight | A backend job working through a queue |
| Spike | 100 at once | An agent fanning out calls |
| Stress | 2,000, 80 in flight (150 s cap) | A busy production service |
How gateway time is isolated. The gateway reports its own processing time separately from the provider call. The client measures the total. Network time is whatever is left. For streamed requests, gateway time is everything before the first token.
A note on percentiles: p50 is the median, p90 is slower than 90% of requests, p99 is slower than 99%. At the Single and Steady levels, p99 rests on 50 and 40 requests, so a single slow request can move it. Sustained and Stress (500 and 2,000 requests) give stable tails.
Result 1: the median is about 10 ms, and load barely moves it
From one request at a time to 80 in flight, the November median sat between 9 and 11 ms on both tiers. Only the 100-at-once spike lifted it, to 17-21 ms.
Here is the month-on-month change in the median, computed from the two reports:
| Level | Fast tier, Oct → Nov | Change | Frontier tier, Oct → Nov | Change |
|---|---|---|---|---|
| Single | 27 → 10 ms | −63% | 28 → 11 ms | −61% |
| Steady | 32 → 11 ms | −66% | 30 → 11 ms | −63% |
| Sustained | 27 → 9 ms | −67% | 24 → 9 ms | −63% |
| Spike | 52 → 21 ms | −60% | 85 → 17 ms | −80% |
| Stress | 29 → 10 ms | −66% | 25 → 9 ms | −64% |
Every level, both tiers, a 60-80% drop.
Result 2: load shows up in the tail first
p50, p90 and p99 by load level, November 2026
The median is flat. The slowest requests are where load becomes visible. At 80 in flight, p99 reached 37 ms on the fast tier and 40 ms on the frontier tier. In October, the same level gave 124 ms and 97 ms.
p99 gateway time, October vs November 2026
The full November percentiles, in milliseconds:
| Level | Fast p50 | Fast p90 | Fast p99 | Frontier p50 | Frontier p90 | Frontier p99 |
|---|---|---|---|---|---|---|
| Single, 1 in flight | 10 | 13 | 16 | 11 | 18 | 27 |
| Steady, 20 in flight | 11 | 23 | 26 | 11 | 14 | 17 |
| Sustained, 20 in flight | 9 | 12 | 25 | 9 | 11 | 22 |
| Spike, 100 at once | 21 | 35 | 49 | 17 | 37 | 144 |
| Stress, 80 in flight | 10 | 16 | 37 | 9 | 13 | 40 |
What we have not fixed yet
Two things in this data we would rather be honest about than bury.
The frontier spike tail. When 100 streamed requests land at the same instant, the slowest 1% took 144 ms in the gateway. In October that number was 170 ms. Every other p99 dropped by 55-73%; this one dropped by 15%. If your workload is an agent that fans out dozens of streamed calls at once, this is the number that applies to you, not the 10 ms median.
Long-running pods. The November test ran on freshly restarted gateway pods. In a run earlier the same day, on pods that had been up for as long as 22 hours, the median was unchanged but p99 reached 297 ms. Something accumulates over pod lifetime, and it hits the tail. We are publishing the number because a benchmark that only shows fresh pods is a benchmark that flatters itself.
Where the 10 ms goes
Every request passes through up to six gateway steps before and after the model call:
The six steps a request takes through the Mesh API gateway
- Check your key (authentication)
- Apply limits (rate limits)
- Check the cache. A hit is answered right here and skips the remaining steps.
- Route (auto routing picks the model and provider)
- Retry or fall back if a provider fails
- Record usage (the usage object on your response)
In context, that is a sliver:
A one-second frontier request: about 10 ms is gateway time
On the fast tier, the gateway was 1-5% of a median request. On the frontier tier, which writes longer answers, it was 0.6-1.1%. The longer the model thinks, the smaller the gateway's share.
Streaming. All of the gateway's overhead lands before the first token: 9-11 ms at the median, 17 ms during the spike. After that, tokens flow through.
When 10 ms actually matters
For a single chat turn, 10 ms is noise next to a model call that takes hundreds of milliseconds to seconds. It starts to add up in two patterns:
| Your pattern | What it costs | What to do |
|---|---|---|
| One call per user action | ~10 ms, under 5% of the request | Nothing |
| Ten calls in a chain (each waits on the last) | ~0.1 s of gateway time in total | Run independent calls in parallel |
| Same prompts repeated (evals, FAQs, retries) | Full model time on every repeat, without the cache | Turn on the response cache; a hit skips routing and the model |
| Agent fanning out 100 calls at once | Median 17-21 ms, p99 up to 144 ms | Stagger bursts if your tail latency budget is tight |
| Memory, RAG or prompt templates enabled | More than measured here | Measure your own requests (below) |
Measure it on your own traffic
Our client sat in one cloud region. Yours does not. So here is how to check the number yourself.
Non-streamed responses carry an X-Provider-Latency-Ms header with the model's time. Subtract it from your total and you have Mesh API plus network time. Send X-Mesh-Cache: no-store so nothing is served from cache, and compare medians across many runs.
import os, time, statistics, requests URL = "https://api.meshapi.ai/v1/chat/completions"HEADERS = { "Authorization": f"Bearer {os.environ['MESH_API_KEY']}", "Content-Type": "application/json", "X-Mesh-Cache": "no-store", # every request goes to the model}BODY = { "model": "openai/gpt-4o-mini", "messages": [{"role": "user", "content": "In one sentence, what is a rate limit?"}], "max_tokens": 200,} overhead = []with requests.Session() as s: s.post(URL, headers=HEADERS, json=BODY) # untimed warm-up for _ in range(100): t0 = time.perf_counter() r = s.post(URL, headers=HEADERS, json=BODY) total_ms = (time.perf_counter() - t0) * 1000 provider_ms = float(r.headers["X-Provider-Latency-Ms"]) overhead.append(total_ms - provider_ms) overhead.sort()print(f"Mesh API + network, p50: {statistics.median(overhead):.1f} ms")print(f"Mesh API + network, p90: {overhead[int(len(overhead) * 0.9)]:.1f} ms")This number includes your network round trip, so it will read higher than our gateway-only figures, especially from far away. Run a few hundred requests before you trust a p99.
What this test does not tell you
- One region. A client elsewhere adds network time, not gateway time.
- Plain chat completions only. Memory, RAG and prompt templates do extra gateway work that was not measured.
- One request shape. Longer prompts or answers change model time, and with it the gateway's share.
- Fresh pods. See the 297 ms caveat above.
FAQ
Is 10 ms the time to first token? No. It is the gateway's own time. Time to first token also includes the model and the network. For streamed requests, all of the gateway's 10 ms happens before the first token.
Why did the median drop so much between October and November? Both runs used the same harness, load levels and request shape. The reports do not attribute the drop to one change, and two setup details differ: the November frontier tier used a different model of the same class, and the gateway was restarted just before the November run. That second point is why we publish the long-running pod numbers alongside the headline.
Which models were tested? The reports describe a fast tier and a frontier tier of live provider models, each served from the provider region nearest the client. Gateway time is measured separately from model time, so the model choice mainly changes the gateway's share of the request rather than its milliseconds.
Does caching change these numbers? The test ran with the cache off on purpose. A cache hit is answered at step three and skips routing, retries and the model call entirely.
The full percentiles, setup and reproduction steps are in the November 2026 report, with the October 2026 run for comparison. The summary lives on the performance overview. We plan to keep rerunning this test and publishing whatever it shows, including the tail.