---
title: Kaeso 0.7.2 benchmark
description: "Kaeso 0.7.2 against LiteLLM, Bifrost and Portkey on BerriAI’s ai-gateway-bench, 25 November 2026: added latency, requests a second, CPU, memory, raw results."
url: https://kaeso.app/benchmarks/0.7.2
markdown: https://kaeso.app/benchmarks/0.7.2.md
language: en
alternates:
  de: https://kaeso.app/de/benchmarks/0.7.2.md
  zh-CN: https://kaeso.app/zh-CN/benchmarks/0.7.2.md
updated: 2026-11-25
kaeso_version: 0.7.2
index: https://kaeso.app/llms.txt
---

# Kaeso 0.7.2 benchmark

Kaeso 0.7.2 against LiteLLM, Bifrost and Portkey on BerriAI’s ai-gateway-bench, 25 November 2026: added latency, requests a second, CPU, memory, raw results.

> Every page, article and docs page of Kaeso is listed in https://kaeso.app/llms.txt.

**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.

| Gateway | Requests a second | Latency p50 / p99 | CPU per request | Peak memory |
| --- | ---: | ---: | ---: | ---: |
| Kaeso (0.7.2) | 6,243 (6,179–6,454) | 10.2 / 15.9 ms | 320 µs | 104 MB, and 559 MB for its databases |
| Kaeso (0.7.2, request logs on) | 5,177 (5,065–5,270) | 12.3 / 20.2 ms | 385 µs | 212 MB, and 1,453 MB for its databases |
| LiteLLM Rust (main at d4e8f96, unreleased) | 3,286 (3,272–3,321) | 19.3 / 31.9 ms | 560 µs | 86 MB, no database |
| Bifrost (2.6.0) | 2,858 (2,853–2,867) | 20.6 / 52.3 ms | 693 µs | 452 MB, no database |
| Portkey (1.15.2) | 821 (790–836) | 77.9 / 113.5 ms | 1,366 µs | 301 MB, no database |
| LiteLLM Python (1.110.2) | 75 (75–76) | 849.0 / 918.0 ms | 13,381 µs | 744 MB, no database |

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.

## 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.

| Gateway | 1 client | 4 clients | 16 clients |
| --- | ---: | ---: | ---: |
| Kaeso (0.7.2) | +0.87 / +1.63 (p99 1.12 to 1.94) | +0.66 / +1.23 (p99 1.01 to 1.66) | +0.79 / +1.73 (p99 1.49 to 1.76) |
| Kaeso (0.7.2, request logs on) | +0.67 / +1.62 (p99 1.56 to 2.65) | +0.52 / +1.97 (p99 1.53 to 2.97) | +0.56 / +1.83 (p99 1.71 to 1.84) |
| LiteLLM Rust (main at d4e8f96, unreleased) | +1.01 / +1.09 (p99 1.09 to 1.22) | +0.89 / +2.11 (p99 1.56 to 2.47) | +0.67 / +2.33 (p99 2.03 to 2.43) |
| Bifrost (2.6.0) | +1.09 / +1.24 (p99 1.10 to 1.36) | +0.96 / +2.36 (p99 2.19 to 2.38) | +0.57 / +2.98 (p99 2.32 to 3.17) |
| Portkey (1.15.2) | +2.12 / +4.79 (p99 4.41 to 5.57) | +1.11 / +6.49 (p99 6.21 to 7.34) | +2.9 / +16.4 (p99 16.3 to 19.8) |
| LiteLLM Python (1.110.2) | +15.8 / +17.3 (p99 17.1 to 17.5) | +49.3 / +57.8 (p99 56.2 to 57.9) | +185 / +206 (p99 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.

| Gateway | First token, added | Gap between chunks, p99 | Claude Code session, added | Codex session, added |
| --- | ---: | ---: | ---: | ---: |
| Kaeso (0.7.2) | +0.95 ms | 7.7 ms | +43.5 ms | +44.8 ms |
| Kaeso (0.7.2, request logs on) | +0.98 ms | 8.0 ms | +42.1 ms | +58.6 ms |
| LiteLLM Rust (main at d4e8f96, unreleased) | +0.94 ms | 40.4 ms | +45.2 ms | +46.6 ms |
| Bifrost (2.6.0) | Not comparable | 20.6 ms | +125.3 ms | +94.5 ms |
| Portkey (1.15.2) | +27.5 ms | 8.1 ms | +100.0 ms | +104.5 ms |
| LiteLLM Python (1.110.2) | +114 ms | 33.3 ms | +510.5 ms | +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.

- **Memory**: 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 clients**: 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 draw**: 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 logs**: 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.

| Measure | 0.7.0, 22 November 2026 | 0.7.2, 25 November 2026 | Reading |
| --- | ---: | ---: | ---: |
| Requests a second at full load | 6,338 (6,086 to 6,355) | 6,243 (6,179 to 6,454) | The same: the rounds overlap |
| The same, request logs on | 5,324 (5,085 to 5,388) | 5,177 (5,065 to 5,270) | The same: the rounds overlap |
| CPU per request at full load | 314 µs | 320 µs | The same: within a tenth, or within what the other gateways moved |
| Added at the median, 1 client | +0.73 ms (0.70 to 0.73) | +0.87 ms (0.86 to 0.88) | Higher, but another gateway rose about as much: the machine |
| Added at the median, 4 clients | +0.56 ms (0.50 to 0.56) | +0.66 ms (0.63 to 0.69) | Higher, but another gateway rose about as much: the machine |
| Added at the median, 16 clients | +0.54 ms (0.49 to 0.56) | +0.79 ms (0.67 to 0.80) | Higher, beyond both sets of rounds |
| Added at p99, 16 clients | +1.47 ms (1.44 to 1.57) | +1.73 ms (1.49 to 1.76) | The same: the rounds overlap |
| Gap between chunks, p99 | 7.8 ms (7.7 to 7.9) | 7.7 ms (7.6 to 7.7) | The same: the rounds overlap |
| Peak memory at full load, request logs on | 450 MB | 212 MB | Lower, far beyond the other gateways’ change |
| Peak memory of Kaeso’s databases at full load | 271 MB | 559 MB | Higher; 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.

| Gateway | Version | Checked on each request | Kept |
| --- | ---: | ---: | ---: |
| Kaeso | Release 0.7.2 | A project’s API key and the models the project allows | Usage in PostgreSQL; no request logs |
| Kaeso (request logs on) | Release 0.7.2 | A project’s API key and the models the project allows | Usage in PostgreSQL, and every request in ClickHouse |
| LiteLLM Rust | main at d4e8f96, unreleased | One master key from its config | Nothing: no database |
| Bifrost | Release 2.6.0 | No key | Nothing: its logging and stores off |
| Portkey | Release 1.15.2 | No key | Nothing: its logging off |
| LiteLLM Python | Release 1.110.2 | One master key from its config | Nothing: no database |

## How it ran

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

- **Machine**: A 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.
- **Cores**: Each 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.
- **Benchmark**: BerriAI/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.
- **Mock provider**: Answers 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.
- **Load**: 1, 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.
- **Rounds**: 3 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.
- **CPU and memory**: Every process of the gateway’s container, read four times a second, and the same for its databases, reported beside it.
- **Day**: 25 November 2026

[BerriAI/ai-gateway-bench at 44365ca, 25 November 2026](https://github.com/BerriAI/ai-gateway-bench/tree/44365ca99307c2fde47c7ca0aa5e17c1665dcf38)

### Versions

- Kaeso 0.7.2: `ghcr.io/logicplanes/kaeso-gateway:0.7.2` `sha256:7db4ee52773bc546746fb5e3d513457929d1782fdb89795f7b9c9f406a94ae79`
- LiteLLM Rust d4e8f96: `github.com/BerriAI/litellm@d4e8f96, litellm-gateway built with rust:1.98.0` `sha256:b80e284d93b67806511e0371456d80083d6f1d932abd723a1b31c1ed578ae122`
- Bifrost 2.6.0: `maximhq/bifrost:v2.6.0` `sha256:5968d007ba4f74ee01bc4ceb071decb9927a0b7bb43dbb9072208f75e2d522e3`
- Portkey 1.15.2: `portkeyai/gateway:1.15.2` `sha256:97f094d9c8a764cbfaa2a7138c0017b247ca923bb06db1b4c13b7f8a33b5200d`
- LiteLLM Python 1.110.2: `ghcr.io/berriai/litellm:v1.110.2` `sha256:ef798594ca3db8d81bad2e1439f536f49b71fe095ee9f20416f5e149b4e22035`

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

### Run by Kaeso’s author

The person who builds Kaeso ran this benchmark: one machine, three rounds. BerriAI calls its own published results single-host and vendor-run; the same holds here. Run it yourself before you rely on it.

## 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.

```bash
curl -fsSLO https://kaeso.app/benchmarks/2026-11-25/harness.tar.gz
tar -xzf harness.tar.gz
bash kaeso-gateway-bench/setup.sh
cd /root
ai-gateway-bench/.venv/bin/python run.py
ai-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.

- [Scripts, configs and setup](https://kaeso.app/benchmarks/2026-11-25/harness.tar.gz)
- [Every raw result and log](https://kaeso.app/benchmarks/2026-11-25/raw.tar.gz)
- [The figures on this page, as JSON](https://kaeso.app/benchmarks/2026-11-25/results.json)
- [The latency sweep, as CSV](https://kaeso.app/benchmarks/2026-11-25/results.csv)

## Runs on either side

- [Older run: Kaeso 0.7.0](https://kaeso.app/benchmarks/0.7.0.md)
- [Newer run: Kaeso 0.7.3](https://kaeso.app/benchmarks/0.7.3.md)
- [Every run](https://kaeso.app/benchmarks.md)
