Skip to main content

Benchmark snapshot

This page is a short reference for our latest public benchmark: GoModel against LiteLLM, Portkey, and Bifrost, all pointed at the same instant mock backend so the numbers reflect gateway overhead, not model latency. The benchmark is rerun periodically from the ai-gateway-reproducible-benchmark repository, which keeps every recorded run and a chart of how the numbers move over time. The full narrative write-up is the June 2026 article: AI Gateway Benchmark 2026: GoModel vs LiteLLM, Portkey & Bifrost.
The table below is the December 1, 2026 run on AWS. Treat it as data, not dogma. Gateway performance depends on your workload, provider mix, deployment setup, and tuning. Older runs (June to November 2026 on the same hardware, March 2026 LiteLLM-only on localhost) are in the repository’s history and on the blog.

What we tested

A simple, like-for-like setup:
  • One gateway at a time, in Docker, on an AWS c7i.large (2 vCPU, 4 GiB), each from its latest public image (enterpilot/gomodel, litellm/litellm:main-stable, portkeyai/gateway, maximhq/bifrost). The version and image digest each run measured are recorded next to its results in the repository.
  • The same shared mock backend for everyone, so we measure only gateway overhead.
  • Six workloads: chat completions, the Responses API, and Anthropic messages - each streaming and non-streaming.
  • 20,000 requests per workload at concurrency 10, across three randomized-order trials (latency is the median across them).
  • Fair config: retries off for everyone, GoModel’s circuit breaker off, and LiteLLM run at its recommended one worker per CPU core.

At a glance

GoModel came out ahead on every operational signal most teams care about: the tightest latency tail, the highest sustained throughput, the smallest image and memory, and the fastest cold start. Latency is chat completions, non-streaming (representative). Throughput is the sustained rate from a separate concurrency sweep. Image size is the compressed pull size.

Key readouts

  • GoModel has both the lowest median (2.3 ms) and the tightest tail (6.9 ms).
  • It pushes the most traffic per box (~4,350 req/s) and is the most CPU-efficient: 37 req/s per CPU-% under sustained load, versus 13 for Bifrost, 9 for Portkey, and 0.7 for LiteLLM.
  • It is the smallest to ship and run: a 19 MB compressed image and 83 MB of RAM under load, ready to serve 1.06 s after launch.
  • LiteLLM, even at its recommended multi-worker config, uses ~2.3 GB of RAM and takes ~49 s to start - the cost of Python on the hot path.
  • Portkey did not serve the Anthropic messages dialect in this single-provider setup, so it covers 4 of the 6 workloads. It was not re-measured in this run: its row is carried over from the November 11, 2026 run on the same hardware and load.

Reproduce it yourself

The benchmark lives in its own repository, ENTERPILOT/ai-gateway-reproducible-benchmark, together with every recorded run and a chart of how the numbers move over time. One command provisions a small AWS box, runs all four gateways from their latest public Docker images against the same mock backend, records the results, and tears the infrastructure back down on its own.
This runs on paid AWS infrastructure, not the free tier. A c7i.large is about $0.09/hour On-Demand in `us-east-1` (the 20 GiB gp3 volume and public IPv4 add a few cents) and the run self-destructs in roughly 90 minutes, so budget **under $1** per run to be safe. If you pass KEEP=1 or a teardown fails, you keep paying until you destroy the box - so confirm it is gone.
The defaults are N=20000 requests per workload, REPEATS=3 trials, and concurrency C=10; override them as env vars, e.g. N=5000 REPEATS=2 ./run.sh for a quicker, noisier run. GOMODEL_SOURCE=../gomodel benchmarks a local checkout instead of the published image. That measures whatever the four images resolve to today. To repeat the December 1, 2026 snapshot on the same gateway releases, pass their versions:
Every recorded run lists the versions and image digests it measured in its results/<run>/*_image.json files, so any past run can be repeated the same way. The repository README also shows how to run the harness on any Docker host without AWS.

Why this page is short

It is meant to give you the result fast, inside the product docs, without a full article. For the narrative, the charts, and the methodology details, read the full post. No single benchmark settles the question for every environment. If you are evaluating gateways seriously, reproduce the test against your own traffic and infrastructure.
Last modified on December 1, 2026