Skip to content
Benchmarks

4,551 requests a second on two cores.

Kaeso 0.7.4 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.4 · 26 November 2026 · New York

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

Half again 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.44,5514,529–4,581
  2. 02Kaeso0.7.4, request logs on3,9623,951–4,071
  3. 03LiteLLM Rustmain at d4e8f96, unreleased2,9552,923–2,997
  4. 04Bifrost2.6.02,2422,219–2,262
  5. 05Portkey1.15.2619610–635
  6. 06LiteLLM Python1.110.25555–55

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

GatewayRequests a secondLatency p50 / p99CPU per requestPeak memory
Kaeso0.7.4Requests a second4,551Latency p50 / p9913.8 / 21.6 msCPU per request437 µsPeak memory163 MB, and 594 MB for its databases
Kaeso0.7.4, request logs onRequests a second3,962Latency p50 / p9915.8 / 27.2 msCPU per request500 µsPeak memory188 MB, and 1,489 MB for its databases
LiteLLM Rustmain at d4e8f96, unreleasedRequests a second2,955Latency p50 / p9921.4 / 35.5 msCPU per request642 µsPeak memory87 MB, no database
Bifrost2.6.0Requests a second2,242Latency p50 / p9924.7 / 63.9 msCPU per request887 µsPeak memory414 MB, no database
Portkey1.15.2Requests a second619Latency p50 / p99101.2 / 148.6 msCPU per request1,829 µsPeak memory303 MB, no database
LiteLLM Python1.110.2Requests a second55Latency p50 / p991,162.0 / 1,331.9 msCPU per request18,286 µ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.41 client+0.94 / +1.96p99 1.48 to 2.214 clients+0.92 / +1.81p99 1.74 to 1.9216 clients+0.64 / +1.86p99 1.59 to 1.89
Kaeso0.7.4, request logs on1 client+0.91 / +2.24p99 2.11 to 2.504 clients+0.99 / +2.53p99 2.52 to 3.3516 clients+0.77 / +2.08p99 2.04 to 2.47
LiteLLM Rustmain at d4e8f96, unreleased1 client+1.05 / +1.16p99 1.05 to 1.334 clients+0.97 / +1.67p99 1.48 to 1.7816 clients+0.82 / +2.43p99 1.99 to 3.00
Bifrost2.6.01 client+1.39 / +1.75p99 1.69 to 1.814 clients+1.31 / +2.76p99 2.69 to 2.9316 clients+0.89 / +5.03p99 4.02 to 5.68
Portkey1.15.21 client+2.63 / +6.76p99 5.83 to 7.054 clients+2.35 / +9.35p99 9.02 to 10.4216 clients+5.1 / +24.4p99 23.3 to 31.6
LiteLLM Python1.110.21 client+20.4 / +22.2p99 22.1 to 22.44 clients+65.2 / +76.7p99 76.5 to 77.116 clients+260 / +284p99 281 to 288

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.4First token, added+1.08 msGap between chunks, p998.0 msClaude Code session, added+50.7 msCodex session, added+52.1 ms
Kaeso0.7.4, request logs onFirst token, added+1.11 msGap between chunks, p999.0 msClaude Code session, added+60.2 msCodex session, added+80.7 ms
LiteLLM Rustmain at d4e8f96, unreleasedFirst token, added+1.32 msGap between chunks, p9940.3 msClaude Code session, added+54.3 msCodex session, added+59.3 ms
Bifrost2.6.0First token, addedNot comparableGap between chunks, p9920.4 msClaude Code session, added+168.8 msCodex session, added+104.8 ms
Portkey1.15.2First token, added+28.2 msGap between chunks, p999.8 msClaude Code session, added+121.0 msCodex session, added+125.2 ms
LiteLLM Python1.110.2First token, added+228 msGap between chunks, p9950.5 msClaude Code session, added+642.6 msCodex session, added+647.0 ms

Straight to the mock, the gap between chunks is 7.9 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 163 MB, and its PostgreSQL and Valkey took another 594 MB.

One client02

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

Request logs03

With every request logged to ClickHouse, Kaeso served 3,962 requests a second, 13% fewer, and its databases took 1,489 MB.

Every version on one machine.

Kaeso 0.7.0 to 0.7.4 each ran as a gateway of its own, in the same shuffled rounds as LiteLLM, Bifrost and Portkey, so the versions compare number for number. A step counts only where two versions’ rounds don’t overlap, and a value measured once, such as CPU or peak memory, only where it moved by more than a tenth.

  1. 01Kaeso0.7.44,5514,529–4,581
  2. 02Kaeso0.7.35,2045,104–5,291
  3. 03Kaeso0.7.24,6664,543–4,692
  4. 04Kaeso0.7.14,4134,363–4,542
  5. 05Kaeso0.7.04,7484,645–4,829
VersionRequests a secondRequest logs onAdded p50, 1 · 4 · 16 clientsAdded at p99, 16 clientsCPU per requestPeak memory
Kaeso0.7.4Requests a second4,5514,529 to 4,581Request logs on3,962Added p50, 1 · 4 · 16 clients+0.94 · +0.92 · +0.64 msAdded at p99, 16 clients+1.86 msCPU per request437 µsPeak memory163 MB, and 594 MB for its databases
Kaeso0.7.3Requests a second5,2045,104 to 5,291Request logs on4,371Added p50, 1 · 4 · 16 clients+1.02 · +1.06 · +0.73 msAdded at p99, 16 clients+1.67 msCPU per request384 µsPeak memory102 MB, and 543 MB for its databases
Kaeso0.7.2Requests a second4,6664,543 to 4,692Request logs on4,032Added p50, 1 · 4 · 16 clients+0.92 · +0.90 · +0.66 msAdded at p99, 16 clients+1.70 msCPU per request428 µsPeak memory178 MB, and 579 MB for its databases
Kaeso0.7.1Requests a second4,4134,363 to 4,542Request logs on3,781Added p50, 1 · 4 · 16 clients+0.96 · +0.99 · +0.83 msAdded at p99, 16 clients+1.90 msCPU per request453 µsPeak memory110 MB, and 565 MB for its databases
Kaeso0.7.0Requests a second4,7484,645 to 4,829Request logs on3,891Added p50, 1 · 4 · 16 clients+0.98 · +0.99 · +0.84 msAdded at p99, 16 clients+2.03 msCPU per request421 µsPeak memory113 MB, and 283 MB for its databases

Version by version

  1. 0.7.3 to 0.7.4
    • Requests a second at full loadlower, 5,204 to 4,551
    • CPU per request at full loadhigher, 384 µs to 437 µs
    • Added at the median, 1 clientlower, +1.02 ms to +0.94 ms
    • Added at the median, 4 clientslower, +1.06 ms to +0.92 ms
    • Peak memory at full loadhigher, 102 MB to 163 MB

    Cause: 0.7.4 dropped a wait at the end of each reply that had kept CPU per request lower under load. The fix that restores it ships with Kaeso 0.7.5: in a local A/B test with the release binaries at 64 clients, 0.7.4 with the fix was back at 0.7.3’s CPU per request, about a tenth lower, and it adds about 50 µs at the median with one client.

  2. 0.7.2 to 0.7.3
    • Requests a second at full loadhigher, 4,666 to 5,204
    • CPU per request at full loadlower, 428 µs to 384 µs
    • Added at the median, 1 clienthigher, +0.92 ms to +1.02 ms
    • Added at the median, 4 clientshigher, +0.90 ms to +1.06 ms
    • Added at the median, 16 clientshigher, +0.66 ms to +0.73 ms
    • Peak memory at full loadlower, 178 MB to 102 MB
  3. 0.7.1 to 0.7.2
    • Requests a second at full loadhigher, 4,413 to 4,666
    • Requests a second, request logs onhigher, 3,781 to 4,032
    • Added at the median, 1 clientlower, +0.96 ms to +0.92 ms
    • Added at the median, 4 clientslower, +0.99 ms to +0.90 ms
    • Peak memory at full loadhigher, 110 MB to 178 MB
  4. 0.7.0 to 0.7.1
    • Requests a second at full loadlower, 4,748 to 4,413
    • Peak memory of Kaeso’s databases at full loadhigher, 283 MB to 565 MB

Each value is the median of three rounds, every version a gateway of its own in each round. 0.7.4 took back the wait 0.7.3 added to every reply, and its median at 1 and 4 clients is below 0.7.3’s again. 0.7.3 served the most requests of any version in every round; 0.7.4 served 13% fewer, with 14% more CPU per request, which puts it within the rounds of 0.7.2. 0.7.1 served 7% fewer requests than 0.7.0, and 0.7.2 gained them back. The databases’ peak memory doubled from 0.7.0 to 0.7.1 and stayed there. The rounds don’t show a change’s cause; where it is known, its step says so.

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.4Checked on each requestA project’s API key and the models the project allowsKeptUsage in PostgreSQL; no request logs
Kaesorequest logs onVersionRelease 0.7.4Checked 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 8280, 2.7 GHz), 8 GB of memory, Ubuntu 24.04 and Docker. New York again, on another c-4 than the 0.7.3 run’s. Before the run its scheduled jobs, package updates, snapd and the provider’s agents were turned off, and so were transparent huge pages and swapping. 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
Day26 November 2026

Versions

GatewayImage or build
Kaeso0.7.4ghcr.io/logicplanes/kaeso-gateway:0.7.4sha256:25fa94e10da01773b0823398ba72c2e1faec3521f73ea9725db877b615be83b3
Kaeso0.7.3ghcr.io/logicplanes/kaeso-gateway:0.7.3sha256:e070906766362fc298babb51d2d0ee9a60deb07cbf30aac2e408f6d193f91553
Kaeso0.7.2ghcr.io/logicplanes/kaeso-gateway:0.7.2sha256:7db4ee52773bc546746fb5e3d513457929d1782fdb89795f7b9c9f406a94ae79
Kaeso0.7.1ghcr.io/logicplanes/kaeso-gateway:0.7.1sha256:42f7e818b43e9422a432747a9841df8952819de4c8e557f5dae8216f76409e7e
Kaeso0.7.0ghcr.io/logicplanes/kaeso-gateway:0.7.0sha256:3d32fd7827417e49475b4ac9ad7d25f7daed28f02fa489ef4077ff501faaae1a
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.4/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, each Kaeso version among them, take about two hours, the capacity pass another 20 minutes. 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.