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.

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
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.
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.
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.
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.
200 streamed requests at 16 clients, and two coding agents’ recorded sessions replayed turn by turn.
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.
Results Kaeso doesn’t win, and what its extra work costs.
LiteLLM Rust never went above 86 MB and needs no database. Kaeso reached 160 MB, and its PostgreSQL and Valkey took another 559 MB.
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.
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.
With every request logged to ClickHouse, Kaeso served 5,177 requests a second, 17% fewer, and its databases took 1,453 MB.
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.
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.
Every gateway ran as its project ships it, against the mock in Anthropic’s Messages format. Kaeso checked the most on every request.
Everything needed to check a number: the machine, the benchmark, every version and how each run was paired.
ghcr.io/logicplanes/kaeso-gateway:0.7.2sha256:7db4ee52773bc546746fb5e3d513457929d1782fdb89795f7b9c9f406a94ae79github.com/BerriAI/litellm@d4e8f96, litellm-gateway built with rust:1.98.0sha256:b80e284d93b67806511e0371456d80083d6f1d932abd723a1b31c1ed578ae122maximhq/bifrost:v2.6.0sha256:5968d007ba4f74ee01bc4ceb071decb9927a0b7bb43dbb9072208f75e2d522e3portkeyai/gateway:1.15.2sha256:97f094d9c8a764cbfaa2a7138c0017b247ca923bb06db1b4c13b7f8a33b5200dghcr.io/berriai/litellm:v1.110.2sha256:ef798594ca3db8d81bad2e1439f536f49b71fe095ee9f20416f5e149b4e22035Kaeso’s databases: postgres:18.6-alpine, valkey/valkey:9.1.3-alpine and clickhouse/clickhouse-server:26.3.62.3-alpine.
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.pyThree 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.

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