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

# Kaeso 0.7.4 benchmark

Kaeso 0.7.4 against LiteLLM, Bifrost and Portkey on BerriAI’s ai-gateway-bench, 26 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,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.

| Gateway | Requests a second | Latency p50 / p99 | CPU per request | Peak memory |
| --- | ---: | ---: | ---: | ---: |
| Kaeso (0.7.4) | 4,551 (4,529–4,581) | 13.8 / 21.6 ms | 437 µs | 163 MB, and 594 MB for its databases |
| Kaeso (0.7.4, request logs on) | 3,962 (3,951–4,071) | 15.8 / 27.2 ms | 500 µs | 188 MB, and 1,489 MB for its databases |
| LiteLLM Rust (main at d4e8f96, unreleased) | 2,955 (2,923–2,997) | 21.4 / 35.5 ms | 642 µs | 87 MB, no database |
| Bifrost (2.6.0) | 2,242 (2,219–2,262) | 24.7 / 63.9 ms | 887 µs | 414 MB, no database |
| Portkey (1.15.2) | 619 (610–635) | 101.2 / 148.6 ms | 1,829 µs | 303 MB, no database |
| LiteLLM Python (1.110.2) | 55 (55–55) | 1,162.0 / 1,331.9 ms | 18,286 µ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 23,007 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.4) | +0.94 / +1.96 (p99 1.48 to 2.21) | +0.92 / +1.81 (p99 1.74 to 1.92) | +0.64 / +1.86 (p99 1.59 to 1.89) |
| Kaeso (0.7.4, request logs on) | +0.91 / +2.24 (p99 2.11 to 2.50) | +0.99 / +2.53 (p99 2.52 to 3.35) | +0.77 / +2.08 (p99 2.04 to 2.47) |
| LiteLLM Rust (main at d4e8f96, unreleased) | +1.05 / +1.16 (p99 1.05 to 1.33) | +0.97 / +1.67 (p99 1.48 to 1.78) | +0.82 / +2.43 (p99 1.99 to 3.00) |
| Bifrost (2.6.0) | +1.39 / +1.75 (p99 1.69 to 1.81) | +1.31 / +2.76 (p99 2.69 to 2.93) | +0.89 / +5.03 (p99 4.02 to 5.68) |
| Portkey (1.15.2) | +2.63 / +6.76 (p99 5.83 to 7.05) | +2.35 / +9.35 (p99 9.02 to 10.42) | +5.1 / +24.4 (p99 23.3 to 31.6) |
| LiteLLM Python (1.110.2) | +20.4 / +22.2 (p99 22.1 to 22.4) | +65.2 / +76.7 (p99 76.5 to 77.1) | +260 / +284 (p99 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.

| Gateway | First token, added | Gap between chunks, p99 | Claude Code session, added | Codex session, added |
| --- | ---: | ---: | ---: | ---: |
| Kaeso (0.7.4) | +1.08 ms | 8.0 ms | +50.7 ms | +52.1 ms |
| Kaeso (0.7.4, request logs on) | +1.11 ms | 9.0 ms | +60.2 ms | +80.7 ms |
| LiteLLM Rust (main at d4e8f96, unreleased) | +1.32 ms | 40.3 ms | +54.3 ms | +59.3 ms |
| Bifrost (2.6.0) | Not comparable | 20.4 ms | +168.8 ms | +104.8 ms |
| Portkey (1.15.2) | +28.2 ms | 9.8 ms | +121.0 ms | +125.2 ms |
| LiteLLM Python (1.110.2) | +228 ms | 50.5 ms | +642.6 ms | +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.

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

| Version | Requests a second | Request logs on | Added p50, 1 · 4 · 16 clients | Added at p99, 16 clients | CPU per request | Peak memory |
| --- | ---: | ---: | ---: | ---: | ---: | ---: |
| Kaeso 0.7.4 | 4,551 (4,529 to 4,581) | 3,962 | +0.94 · +0.92 · +0.64 ms | +1.86 ms | 437 µs | 163 MB, and 594 MB for its databases |
| Kaeso 0.7.3 | 5,204 (5,104 to 5,291) | 4,371 | +1.02 · +1.06 · +0.73 ms | +1.67 ms | 384 µs | 102 MB, and 543 MB for its databases |
| Kaeso 0.7.2 | 4,666 (4,543 to 4,692) | 4,032 | +0.92 · +0.90 · +0.66 ms | +1.70 ms | 428 µs | 178 MB, and 579 MB for its databases |
| Kaeso 0.7.1 | 4,413 (4,363 to 4,542) | 3,781 | +0.96 · +0.99 · +0.83 ms | +1.90 ms | 453 µs | 110 MB, and 565 MB for its databases |
| Kaeso 0.7.0 | 4,748 (4,645 to 4,829) | 3,891 | +0.98 · +0.99 · +0.84 ms | +2.03 ms | 421 µs | 113 MB, and 283 MB for its databases |

### Version by version

- **0.7.3 to 0.7.4**: Requests a second at full load: lower, 5,204 to 4,551; CPU per request at full load: higher, 384 µs to 437 µs; Added at the median, 1 client: lower, +1.02 ms to +0.94 ms; Added at the median, 4 clients: lower, +1.06 ms to +0.92 ms; Peak memory at full load: higher, 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.
- **0.7.2 to 0.7.3**: Requests a second at full load: higher, 4,666 to 5,204; CPU per request at full load: lower, 428 µs to 384 µs; Added at the median, 1 client: higher, +0.92 ms to +1.02 ms; Added at the median, 4 clients: higher, +0.90 ms to +1.06 ms; Added at the median, 16 clients: higher, +0.66 ms to +0.73 ms; Peak memory at full load: lower, 178 MB to 102 MB
- **0.7.1 to 0.7.2**: Requests a second at full load: higher, 4,413 to 4,666; Requests a second, request logs on: higher, 3,781 to 4,032; Added at the median, 1 client: lower, +0.96 ms to +0.92 ms; Added at the median, 4 clients: lower, +0.99 ms to +0.90 ms; Peak memory at full load: higher, 110 MB to 178 MB
- **0.7.0 to 0.7.1**: Requests a second at full load: lower, 4,748 to 4,413; Peak memory of Kaeso’s databases at full load: higher, 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.

| Gateway | Version | Checked on each request | Kept |
| --- | ---: | ---: | ---: |
| Kaeso | Release 0.7.4 | A project’s API key and the models the project allows | Usage in PostgreSQL; no request logs |
| Kaeso (request logs on) | Release 0.7.4 | 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 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.
- **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**: 26 November 2026

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

### Versions

- Kaeso 0.7.4: `ghcr.io/logicplanes/kaeso-gateway:0.7.4` `sha256:25fa94e10da01773b0823398ba72c2e1faec3521f73ea9725db877b615be83b3`
- Kaeso 0.7.3: `ghcr.io/logicplanes/kaeso-gateway:0.7.3` `sha256:e070906766362fc298babb51d2d0ee9a60deb07cbf30aac2e408f6d193f91553`
- Kaeso 0.7.2: `ghcr.io/logicplanes/kaeso-gateway:0.7.2` `sha256:7db4ee52773bc546746fb5e3d513457929d1782fdb89795f7b9c9f406a94ae79`
- Kaeso 0.7.1: `ghcr.io/logicplanes/kaeso-gateway:0.7.1` `sha256:42f7e818b43e9422a432747a9841df8952819de4c8e557f5dae8216f76409e7e`
- Kaeso 0.7.0: `ghcr.io/logicplanes/kaeso-gateway:0.7.0` `sha256:3d32fd7827417e49475b4ac9ad7d25f7daed28f02fa489ef4077ff501faaae1a`
- 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.4/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, 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.

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

## Runs on either side

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