Skip to content
Benchmarks

4,835 requests a second on two cores.

Kaeso 0.7.3 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.3 · 25 November 2026 · New York

4,835
requests a second on two cores; LiteLLM Rust served 2,068
0.53
ms added at the median with 16 clients
412
µs of CPU per request at full load
0
failed requests, in every run of every gateway

More than 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.34,8354,776–4,858
  2. 02Kaeso0.7.3, request logs on3,9143,842–3,928
  3. 03Bifrost2.6.02,0882,040–2,135
  4. 04LiteLLM Rustmain at d4e8f96, unreleased2,0682,006–2,078
  5. 05Portkey1.15.2599590–601
  6. 06LiteLLM Python1.110.23939–40

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

GatewayRequests a secondLatency p50 / p99CPU per requestPeak memory
Kaeso0.7.3Requests a second4,835Latency p50 / p9912.8 / 22.6 msCPU per request412 µsPeak memory181 MB, and 633 MB for its databases
Kaeso0.7.3, request logs onRequests a second3,914Latency p50 / p9915.9 / 28.3 msCPU per request506 µsPeak memory179 MB, and 1,476 MB for its databases
Bifrost2.6.0Requests a second2,088Latency p50 / p9927.9 / 68.7 msCPU per request954 µsPeak memory422 MB, no database
LiteLLM Rustmain at d4e8f96, unreleasedRequests a second2,068Latency p50 / p9930.4 / 53.7 msCPU per request842 µsPeak memory86 MB, no database
Portkey1.15.2Requests a second599Latency p50 / p99104.1 / 159.8 msCPU per request1,908 µsPeak memory290 MB, no database
LiteLLM Python1.110.2Requests a second39Latency p50 / p991,622.0 / 1,827.0 msCPU per request25,484 µsPeak memory742 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.31 client+0.81 / +1.97p99 1.52 to 2.624 clients+0.67 / +2.16p99 1.69 to 2.1716 clients+0.53 / +1.81p99 1.07 to 2.15
Kaeso0.7.3, request logs on1 client+0.83 / +2.44p99 2.03 to 2.664 clients+0.68 / +2.39p99 2.37 to 2.4216 clients+0.55 / +1.93p99 1.68 to 2.01
LiteLLM Rustmain at d4e8f96, unreleased1 client+1.03 / +1.32p99 1.22 to 1.364 clients+0.78 / +1.95p99 1.91 to 2.3316 clients+0.88 / +4.83p99 4.16 to 4.91
Bifrost2.6.01 client+1.28 / +1.79p99 1.59 to 2.174 clients+1.02 / +2.60p99 2.40 to 2.6316 clients+1.01 / +4.10p99 3.72 to 4.53
Portkey1.15.21 client+2.32 / +6.63p99 5.87 to 6.694 clients+1.44 / +9.36p99 7.71 to 9.4916 clients+5.9 / +30.1p99 26.3 to 33.3
LiteLLM Python1.110.21 client+26.5 / +29.7p99 29.6 to 30.54 clients+87 / +110p99 109 to 11116 clients+376 / +420p99 409 to 425

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.3First token, added+1.21 msGap between chunks, p998.7 msClaude Code session, added+63.4 msCodex session, added+65.6 ms
Kaeso0.7.3, request logs onFirst token, added+1.49 msGap between chunks, p999.5 msClaude Code session, added+71.1 msCodex session, added+68.8 ms
LiteLLM Rustmain at d4e8f96, unreleasedFirst token, added+1.27 msGap between chunks, p9940.1 msClaude Code session, added+64.4 msCodex session, added+54.4 ms
Bifrost2.6.0First token, addedNot comparableGap between chunks, p9920.2 msClaude Code session, added+183.9 msCodex session, added+118.8 ms
Portkey1.15.2First token, added+28.2 msGap between chunks, p999.3 msClaude Code session, added+114.2 msCodex session, added+120.5 ms
LiteLLM Python1.110.2First token, added+402 msGap between chunks, p9971.2 msClaude Code session, added+814.8 msCodex session, added+835.7 ms

Straight to the mock, the gap between chunks is 8.2 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 87 MB and needs no database. Kaeso reached 181 MB, and its PostgreSQL and Valkey took another 633 MB.

One client02

With one request at a time, LiteLLM Rust’s p99 was +1.32 ms against Kaeso’s +1.97 ms, and no round of Kaeso’s came closer.

A draw03

Time to first token (+1.21 against +1.27 ms) and the Claude Code session (+63.4 against +64.4 ms) fall within each other’s range.

Request logs04

With every request logged to ClickHouse, Kaeso served 3,914 requests a second, 19% fewer, and its databases took 1,476 MB.

Kaeso 0.7.3 against 0.7.2.

Kaeso 0.7.2 ran again on this run’s machine, with and without request logs, so the two versions compare without the machine in between. A difference counts only where the two sets of rounds don’t overlap, and a value measured once, such as peak memory, only where it moved by more than a tenth.

Measure0.7.2, same machine0.7.3, 25 November 2026Reading
Requests a second at full load0.7.2, same machine4,6784,626 to 4,7190.7.3, 25 November 20264,8354,776 to 4,858ReadingHigher, beyond both sets of rounds
The same, request logs on0.7.2, same machine3,8493,831 to 3,8830.7.3, 25 November 20263,9143,842 to 3,928ReadingThe same: the rounds overlap
CPU per request at full load0.7.2, same machine427 µs0.7.3, 25 November 2026412 µsReadingThe same: within a tenth
Added at the median, 1 client0.7.2, same machine+0.76 ms0.72 to 0.780.7.3, 25 November 2026+0.81 ms0.79 to 0.81ReadingHigher, beyond both sets of rounds
Added at the median, 4 clients0.7.2, same machine+0.55 ms0.51 to 0.580.7.3, 25 November 2026+0.67 ms0.61 to 0.71ReadingHigher, beyond both sets of rounds
Added at the median, 16 clients0.7.2, same machine+0.56 ms0.38 to 0.590.7.3, 25 November 2026+0.53 ms0.49 to 0.56ReadingThe same: the rounds overlap
Added at p99, 16 clients0.7.2, same machine+1.54 ms1.38 to 1.780.7.3, 25 November 2026+1.81 ms1.07 to 2.15ReadingThe same: the rounds overlap
Gap between chunks, p990.7.2, same machine8.7 ms8.7 to 9.40.7.3, 25 November 20268.7 ms8.5 to 8.8ReadingThe same: the rounds overlap
Peak memory at full load, request logs on0.7.2, same machine168 MB0.7.3, 25 November 2026179 MBReadingThe same: within a tenth
Peak memory of Kaeso’s databases at full load0.7.2, same machine567 MB0.7.3, 25 November 2026633 MBReadingHigher, by more than a tenth

Each value is the median of three rounds, with the lowest and highest round under it. Kaeso 0.7.2 ran right after 0.7.3 on the same machine, not interleaved with it. Capacity was 3% higher in every round of 0.7.3 than in any round of 0.7.2, and the median added at 1 and 4 clients was 0.05 and 0.12 ms higher. One change of 0.7.3 is on this benchmark’s path: before a reply goes out, the gateway now notes the request so that a source’s copy of it counts once, which for an organization without sources is a cached check in a task of its own. Whether that or the machine over the hour between the two explains differences this small, the rounds can’t tell.

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.3Checked on each requestA project’s API key and the models the project allowsKeptUsage in PostgreSQL; no request logs
Kaesorequest logs onVersionRelease 0.7.3Checked 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 New York: 4 dedicated vCPUs (Intel Xeon Platinum 8168, 2.7 GHz), 8 GB of memory, Ubuntu 24.04 and Docker. New York, because c-4 is no longer offered in Frankfurt or Amsterdam. On this machine the same driver reached over a quarter fewer requests a second straight to the mock than in the earlier runs, so every gateway’s numbers are lower. 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.3ghcr.io/logicplanes/kaeso-gateway:0.7.3sha256:e070906766362fc298babb51d2d0ee9a60deb07cbf30aac2e408f6d193f91553
Kaeso0.7.2, same machineghcr.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/runs/0.7.3/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.