Skip to content
Benchmarks

6,243 requests a second on two cores.

Kaeso 0.7.2 against LiteLLM, Bifrost and Portkey on BerriAI’s ai-gateway-bench, the benchmark from the company behind LiteLLM. One machine, one mock provider, the benchmark’s own drivers.

Kaeso 0.7.2 · 25 November 2026 · Frankfurt

6,243
requests a second on two cores; LiteLLM Rust served 3,286
0.79
ms added at the median with 16 clients
320
µs of CPU per request at full load
0
failed requests, in every run of every gateway

Nearly twice the load on the same cores.

Each gateway got the same two dedicated cores, 64 clients and a mock provider that answers at once, so the gateway itself was the limit.

  1. 01Kaeso0.7.26,2436,179–6,454
  2. 02Kaeso0.7.2, request logs on5,1775,065–5,270
  3. 03LiteLLM Rustmain at d4e8f96, unreleased3,2863,272–3,321
  4. 04Bifrost2.6.02,8582,853–2,867
  5. 05Portkey1.15.2821790–836
  6. 06LiteLLM Python1.110.27575–76

Requests a second, the median of 3 rounds; the thin line runs from the slowest round to the fastest. The same driver reached 27,946 a second straight to the mock, far above any gateway.

GatewayRequests a secondLatency p50 / p99CPU per requestPeak memory
Kaeso0.7.2Requests a second6,243Latency p50 / p9910.2 / 15.9 msCPU per request320 µsPeak memory104 MB, and 559 MB for its databases
Kaeso0.7.2, request logs onRequests a second5,177Latency p50 / p9912.3 / 20.2 msCPU per request385 µsPeak memory212 MB, and 1,453 MB for its databases
LiteLLM Rustmain at d4e8f96, unreleasedRequests a second3,286Latency p50 / p9919.3 / 31.9 msCPU per request560 µsPeak memory86 MB, no database
Bifrost2.6.0Requests a second2,858Latency p50 / p9920.6 / 52.3 msCPU per request693 µsPeak memory452 MB, no database
Portkey1.15.2Requests a second821Latency p50 / p9977.9 / 113.5 msCPU per request1,366 µsPeak memory301 MB, no database
LiteLLM Python1.110.2Requests a second75Latency p50 / p99849.0 / 918.0 msCPU per request13,381 µsPeak memory744 MB, no database

Under a millisecond at the median.

How much longer a request takes through the gateway than straight to the mock, which answers in about 22 ms as a fast provider would.

Gateway1 client4 clients16 clients
Kaeso0.7.21 client+0.87 / +1.63p99 1.12 to 1.944 clients+0.66 / +1.23p99 1.01 to 1.6616 clients+0.79 / +1.73p99 1.49 to 1.76
Kaeso0.7.2, request logs on1 client+0.67 / +1.62p99 1.56 to 2.654 clients+0.52 / +1.97p99 1.53 to 2.9716 clients+0.56 / +1.83p99 1.71 to 1.84
LiteLLM Rustmain at d4e8f96, unreleased1 client+1.01 / +1.09p99 1.09 to 1.224 clients+0.89 / +2.11p99 1.56 to 2.4716 clients+0.67 / +2.33p99 2.03 to 2.43
Bifrost2.6.01 client+1.09 / +1.24p99 1.10 to 1.364 clients+0.96 / +2.36p99 2.19 to 2.3816 clients+0.57 / +2.98p99 2.32 to 3.17
Portkey1.15.21 client+2.12 / +4.79p99 4.41 to 5.574 clients+1.11 / +6.49p99 6.21 to 7.3416 clients+2.9 / +16.4p99 16.3 to 19.8
LiteLLM Python1.110.21 client+15.8 / +17.3p99 17.1 to 17.54 clients+49.3 / +57.8p99 56.2 to 57.916 clients+185 / +206p99 204 to 210

Added latency in ms, p50 and p99, the median of 3 rounds, with the p99’s range under it. Each run was paired with a direct run of the same shape just before it.

No row for 64 clients: there the mock and the drivers share two cores and top out near 2,900 requests a second, so subtracting the direct run would understate every gateway’s time. The capacity figure measures that load instead.

Streams arrive as they were sent.

200 streamed requests at 16 clients, and two coding agents’ recorded sessions replayed turn by turn.

GatewayFirst token, addedGap between chunks, p99Claude Code session, addedCodex session, added
Kaeso0.7.2First token, added+0.95 msGap between chunks, p997.7 msClaude Code session, added+43.5 msCodex session, added+44.8 ms
Kaeso0.7.2, request logs onFirst token, added+0.98 msGap between chunks, p998.0 msClaude Code session, added+42.1 msCodex session, added+58.6 ms
LiteLLM Rustmain at d4e8f96, unreleasedFirst token, added+0.94 msGap between chunks, p9940.4 msClaude Code session, added+45.2 msCodex session, added+46.6 ms
Bifrost2.6.0First token, addedNot comparableGap between chunks, p9920.6 msClaude Code session, added+125.3 msCodex session, added+94.5 ms
Portkey1.15.2First token, added+27.5 msGap between chunks, p998.1 msClaude Code session, added+100.0 msCodex session, added+104.5 ms
LiteLLM Python1.110.2First token, added+114 msGap between chunks, p9933.3 msClaude Code session, added+510.5 msCodex session, added+504.6 ms

Straight to the mock, the gap between chunks is 7.5 ms at p99. A session is 30 recorded turns sent one after another; added is its whole time through the gateway minus straight to the mock. Every streamed session gave valid tool calls through every gateway.

Bifrost sends its first event before the provider answers, and the benchmark counts that as the first token, so its time to first token reads as negative.

Where others are ahead.

Results Kaeso doesn’t win, and what its extra work costs.

Memory01

LiteLLM Rust never went above 86 MB and needs no database. Kaeso reached 160 MB, and its PostgreSQL and Valkey took another 559 MB.

Sixteen clients02

At the median with 16 clients, Bifrost added +0.57 ms and LiteLLM Rust +0.67 ms, against Kaeso’s +0.79 ms, and every round of Bifrost’s came out lower than every round of Kaeso’s. At p99, Kaeso added the least.

A draw03

Time to first token (+0.95 against +0.94 ms) and the Claude Code session (+43.5 against +45.2 ms) fall within each other’s range.

Request logs04

With every request logged to ClickHouse, Kaeso served 5,177 requests a second, 17% fewer, and its databases took 1,453 MB.

Kaeso 0.7.2 against 0.7.0.

The same benchmark, scripts and images of every other gateway, on another c-4 of the same type; only Kaeso changed. The unchanged gateways’ capacity moved by up to 5% between the two runs, so a difference counts only where both runs’ rounds don’t overlap and the other gateways didn’t move the same way.

Measure0.7.0, 22 November 20260.7.2, 25 November 2026Reading
Requests a second at full load0.7.0, 22 November 20266,3386,086 to 6,3550.7.2, 25 November 20266,2436,179 to 6,454ReadingThe same: the rounds overlap
The same, request logs on0.7.0, 22 November 20265,3245,085 to 5,3880.7.2, 25 November 20265,1775,065 to 5,270ReadingThe same: the rounds overlap
CPU per request at full load0.7.0, 22 November 2026314 µs0.7.2, 25 November 2026320 µsReadingThe same: within a tenth, or within what the other gateways moved
Added at the median, 1 client0.7.0, 22 November 2026+0.73 ms0.70 to 0.730.7.2, 25 November 2026+0.87 ms0.86 to 0.88ReadingHigher, but another gateway rose about as much: the machine
Added at the median, 4 clients0.7.0, 22 November 2026+0.56 ms0.50 to 0.560.7.2, 25 November 2026+0.66 ms0.63 to 0.69ReadingHigher, but another gateway rose about as much: the machine
Added at the median, 16 clients0.7.0, 22 November 2026+0.54 ms0.49 to 0.560.7.2, 25 November 2026+0.79 ms0.67 to 0.80ReadingHigher, beyond both sets of rounds
Added at p99, 16 clients0.7.0, 22 November 2026+1.47 ms1.44 to 1.570.7.2, 25 November 2026+1.73 ms1.49 to 1.76ReadingThe same: the rounds overlap
Gap between chunks, p990.7.0, 22 November 20267.8 ms7.7 to 7.90.7.2, 25 November 20267.7 ms7.6 to 7.7ReadingThe same: the rounds overlap
Peak memory at full load, request logs on0.7.0, 22 November 2026450 MB0.7.2, 25 November 2026212 MBReadingLower, far beyond the other gateways’ change
Peak memory of Kaeso’s databases at full load0.7.0, 22 November 2026271 MB0.7.2, 25 November 2026559 MBReadingHigher; no other gateway has databases to tell Kaeso from the machine

Each value is the median of three rounds, with the lowest and highest round under it. 0.7.2 keeps the request log rows that wait for ClickHouse within logs.buffer_size, which fits the lower peak memory with request logs on. Kaeso’s PostgreSQL peaked at about twice the memory while its CPU per request stayed the same, and this run doesn’t show whether 0.7.2 or the machine caused it. Kaeso’s added median at 16 clients rose while the other gateways’ didn’t; its p99 there stayed within the rounds, and this run doesn’t show why.

What each gateway did.

Every gateway ran as its project ships it, against the mock in Anthropic’s Messages format. Kaeso checked the most on every request.

GatewayVersionChecked on each requestKept
KaesoVersionRelease 0.7.2Checked on each requestA project’s API key and the models the project allowsKeptUsage in PostgreSQL; no request logs
Kaesorequest logs onVersionRelease 0.7.2Checked on each requestA project’s API key and the models the project allowsKeptUsage in PostgreSQL, and every request in ClickHouse
LiteLLM RustVersionmain at d4e8f96, unreleasedChecked on each requestOne master key from its configKeptNothing: no database
BifrostVersionRelease 2.6.0Checked on each requestNo keyKeptNothing: its logging and stores off
PortkeyVersionRelease 1.15.2Checked on each requestNo keyKeptNothing: its logging off
LiteLLM PythonVersionRelease 1.110.2Checked on each requestOne master key from its configKeptNothing: no database

How it ran.

Everything needed to check a number: the machine, the benchmark, every version and how each run was paired.

01
MachineA DigitalOcean CPU-Optimized c-4 in Frankfurt: 4 dedicated vCPUs (Intel Xeon Platinum 8358, 2.6 GHz), 8 GB of memory, Ubuntu 24.04 and Docker. Frankfurt, because c-4 wasn’t offered in Amsterdam that day. Everything runs on the one machine against a local mock, so the region doesn’t change the results.
02
CoresEach gateway ran in Docker on the host network, pinned to two cores. The mock, the load drivers and Kaeso’s databases ran on the other two.
03
BenchmarkBerriAI/ai-gateway-bench at 44365ca, with its mock provider and drivers unchanged: load-probe for requests, run_http_bench.py for streams and session_runner.py for agent sessions.
04
Mock providerAnswers in Anthropic’s Messages format: its first token after 20 ms, then 40 tokens 5 ms apart. In the capacity pass it answers at once.
05
Load1, 4, 16 and 64 clients sending 1,000, 2,000, 4,000 and 16,000 requests a round, 200 streams at 16 clients and four agent sessions of 30 turns.
06
Rounds3 rounds, the gateways in a new random order each round, each one measured right after a direct run of the same shape. Every figure is the median of the rounds, with their range.
07
CPU and memoryEvery process of the gateway’s container, read four times a second, and the same for its databases, reported beside it.
08
Day25 November 2026

Versions

GatewayImage or build
Kaeso0.7.2ghcr.io/logicplanes/kaeso-gateway:0.7.2sha256:7db4ee52773bc546746fb5e3d513457929d1782fdb89795f7b9c9f406a94ae79
LiteLLM Rustd4e8f96github.com/BerriAI/litellm@d4e8f96, litellm-gateway built with rust:1.98.0sha256:b80e284d93b67806511e0371456d80083d6f1d932abd723a1b31c1ed578ae122
Bifrost2.6.0maximhq/bifrost:v2.6.0sha256:5968d007ba4f74ee01bc4ceb071decb9927a0b7bb43dbb9072208f75e2d522e3
Portkey1.15.2portkeyai/gateway:1.15.2sha256:97f094d9c8a764cbfaa2a7138c0017b247ca923bb06db1b4c13b7f8a33b5200d
LiteLLM Python1.110.2ghcr.io/berriai/litellm:v1.110.2sha256:ef798594ca3db8d81bad2e1439f536f49b71fe095ee9f20416f5e149b4e22035

Kaeso’s databases: postgres:18.6-alpine, valkey/valkey:9.1.3-alpine and clickhouse/clickhouse-server:26.3.62.3-alpine.

Run it yourself.

On a fresh Linux machine with four cores, as root. The setup installs Docker, builds the benchmark and LiteLLM Rust at the same commits and pulls every image by its digest.

curl -fsSLO https://kaeso.app/benchmarks/2026-11-25/harness.tar.gztar -xzf harness.tar.gzbash kaeso-gateway-bench/setup.shcd /rootai-gateway-bench/.venv/bin/python run.pyai-gateway-bench/.venv/bin/python run_capacity.py

Three rounds of every gateway take about 90 minutes, the capacity pass another 30. Absolute numbers change from machine to machine, so compare gateways measured in the same run.

Runs on either side

Every run

Measure it onyour own machine.

Install Kaeso next to the gateway you run today and point the same benchmark at both.