---
title: Kaeso 0.7.3 benchmark
description: "Kaeso 0.7.3 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.3
markdown: https://kaeso.app/benchmarks/0.7.3.md
language: en
alternates:
  de: https://kaeso.app/de/benchmarks/0.7.3.md
  zh-CN: https://kaeso.app/zh-CN/benchmarks/0.7.3.md
updated: 2026-11-25
kaeso_version: 0.7.3
index: https://kaeso.app/llms.txt
---

# Kaeso 0.7.3 benchmark

Kaeso 0.7.3 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.

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

| Gateway | Requests a second | Latency p50 / p99 | CPU per request | Peak memory |
| --- | ---: | ---: | ---: | ---: |
| Kaeso (0.7.3) | 4,835 (4,776–4,858) | 12.8 / 22.6 ms | 412 µs | 181 MB, and 633 MB for its databases |
| Kaeso (0.7.3, request logs on) | 3,914 (3,842–3,928) | 15.9 / 28.3 ms | 506 µs | 179 MB, and 1,476 MB for its databases |
| Bifrost (2.6.0) | 2,088 (2,040–2,135) | 27.9 / 68.7 ms | 954 µs | 422 MB, no database |
| LiteLLM Rust (main at d4e8f96, unreleased) | 2,068 (2,006–2,078) | 30.4 / 53.7 ms | 842 µs | 86 MB, no database |
| Portkey (1.15.2) | 599 (590–601) | 104.1 / 159.8 ms | 1,908 µs | 290 MB, no database |
| LiteLLM Python (1.110.2) | 39 (39–40) | 1,622.0 / 1,827.0 ms | 25,484 µs | 742 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 19,648 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.3) | +0.81 / +1.97 (p99 1.52 to 2.62) | +0.67 / +2.16 (p99 1.69 to 2.17) | +0.53 / +1.81 (p99 1.07 to 2.15) |
| Kaeso (0.7.3, request logs on) | +0.83 / +2.44 (p99 2.03 to 2.66) | +0.68 / +2.39 (p99 2.37 to 2.42) | +0.55 / +1.93 (p99 1.68 to 2.01) |
| LiteLLM Rust (main at d4e8f96, unreleased) | +1.03 / +1.32 (p99 1.22 to 1.36) | +0.78 / +1.95 (p99 1.91 to 2.33) | +0.88 / +4.83 (p99 4.16 to 4.91) |
| Bifrost (2.6.0) | +1.28 / +1.79 (p99 1.59 to 2.17) | +1.02 / +2.60 (p99 2.40 to 2.63) | +1.01 / +4.10 (p99 3.72 to 4.53) |
| Portkey (1.15.2) | +2.32 / +6.63 (p99 5.87 to 6.69) | +1.44 / +9.36 (p99 7.71 to 9.49) | +5.9 / +30.1 (p99 26.3 to 33.3) |
| LiteLLM Python (1.110.2) | +26.5 / +29.7 (p99 29.6 to 30.5) | +87 / +110 (p99 109 to 111) | +376 / +420 (p99 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.

| Gateway | First token, added | Gap between chunks, p99 | Claude Code session, added | Codex session, added |
| --- | ---: | ---: | ---: | ---: |
| Kaeso (0.7.3) | +1.21 ms | 8.7 ms | +63.4 ms | +65.6 ms |
| Kaeso (0.7.3, request logs on) | +1.49 ms | 9.5 ms | +71.1 ms | +68.8 ms |
| LiteLLM Rust (main at d4e8f96, unreleased) | +1.27 ms | 40.1 ms | +64.4 ms | +54.4 ms |
| Bifrost (2.6.0) | Not comparable | 20.2 ms | +183.9 ms | +118.8 ms |
| Portkey (1.15.2) | +28.2 ms | 9.3 ms | +114.2 ms | +120.5 ms |
| LiteLLM Python (1.110.2) | +402 ms | 71.2 ms | +814.8 ms | +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.

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

| Measure | 0.7.2, same machine | 0.7.3, 25 November 2026 | Reading |
| --- | ---: | ---: | ---: |
| Requests a second at full load | 4,678 (4,626 to 4,719) | 4,835 (4,776 to 4,858) | Higher, beyond both sets of rounds |
| The same, request logs on | 3,849 (3,831 to 3,883) | 3,914 (3,842 to 3,928) | The same: the rounds overlap |
| CPU per request at full load | 427 µs | 412 µs | The same: within a tenth |
| Added at the median, 1 client | +0.76 ms (0.72 to 0.78) | +0.81 ms (0.79 to 0.81) | Higher, beyond both sets of rounds |
| Added at the median, 4 clients | +0.55 ms (0.51 to 0.58) | +0.67 ms (0.61 to 0.71) | Higher, beyond both sets of rounds |
| Added at the median, 16 clients | +0.56 ms (0.38 to 0.59) | +0.53 ms (0.49 to 0.56) | The same: the rounds overlap |
| Added at p99, 16 clients | +1.54 ms (1.38 to 1.78) | +1.81 ms (1.07 to 2.15) | The same: the rounds overlap |
| Gap between chunks, p99 | 8.7 ms (8.7 to 9.4) | 8.7 ms (8.5 to 8.8) | The same: the rounds overlap |
| Peak memory at full load, request logs on | 168 MB | 179 MB | The same: within a tenth |
| Peak memory of Kaeso’s databases at full load | 567 MB | 633 MB | Higher, 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.

| Gateway | Version | Checked on each request | Kept |
| --- | ---: | ---: | ---: |
| Kaeso | Release 0.7.3 | A project’s API key and the models the project allows | Usage in PostgreSQL; no request logs |
| Kaeso (request logs on) | Release 0.7.3 | 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 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.
- **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.3: `ghcr.io/logicplanes/kaeso-gateway:0.7.3` `sha256:e070906766362fc298babb51d2d0ee9a60deb07cbf30aac2e408f6d193f91553`
- Kaeso 0.7.2, same machine: `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/runs/0.7.3/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/runs/0.7.3/harness.tar.gz)
- [Every raw result and log](https://kaeso.app/benchmarks/runs/0.7.3/raw.tar.gz)
- [The figures on this page, as JSON](https://kaeso.app/benchmarks/runs/0.7.3/results.json)
- [The latency sweep, as CSV](https://kaeso.app/benchmarks/runs/0.7.3/results.csv)
- [Kaeso 0.7.2’s figures on the same machine, as JSON](https://kaeso.app/benchmarks/runs/0.7.3/reference-0.7.2.json)

## Runs on either side

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