Reading LiteLLM benchmark results before you size a self-hosted gateway
The published LiteLLM benchmark measures how fast the gateway itself can forward requests under a controlled load, and it cannot be copied directly into a capacity plan. The headline run reports 3,000 requests per second and 13.5 billion tokens per minute, with 100% HTTP 200 responses and gateway latency of 30.6 ms at p50, 54.0 ms at p95 and 91.6 ms at p99. Those figures came from 33 gateway pods, each with 4 workers, 4 vCPU and 16 GiB of memory, calling an in-process mock model. A separate realtime API test reached 1,207 requests per second over WebSockets, with 59 ms p50 and 67 ms p95 end-to-end latency on 4 instances. Read these as the ceiling of one tested layout, not as a per-pod rate you can multiply.
Platform teams usually need this reading in three situations: before buying or committing to a gateway footprint, during architecture reviews where someone asks whether the gateway will add noticeable delay, and when procurement or a security reviewer asks for evidence of throughput. Before you use any number, confirm the pod count, worker count, CPU and memory per pod, the database and Redis setup behind the run, and whether the model was a mock. Also check the LiteLLM benchmarks page for the exact test conditions, since a figure without its layout tells you little about your own traffic.
Use the published numbers to set a starting hypothesis, then measure your own layout. Record your expected requests per second, prompt and response sizes, streaming share and provider latency, and ask the gateway vendor or your partner to confirm which of these the benchmark covered. Plan a test on your own infrastructure that keeps the same kind of pod and worker layout you intend to run, and treat the p99 figure as the value to protect, because tail latency is where undersized deployments fail first. Budget for a rerun after any change to the worker count, database settings or caching.
What each published figure includes and excludes
The headline HTTP figure reports 3,000 requests per second and 13.5 billion tokens per minute, with 100% HTTP 200 responses and gateway latency of 30.6 ms at p50, 54.0 ms at p95 and 91.6 ms at p99. The published setup used 33 gateway pods, each running 4 workers with 4 vCPU and 16 GiB of memory, against an in-process mock model. Those are the only configuration values to carry forward, and each one changes the result.
- Load shape: The 3,000 requests per second figure is a ceiling reached under the stated load, not a guarantee for a different request mix, prompt size or streaming share.
- Pod and worker layout: The 33 pods and 4 workers per pod set the total concurrency. A different worker count per pod changes both throughput and memory use.
- Resources per pod: The 4 vCPU and 16 GiB per pod are sizing inputs, not minimums. Production guidance for the production guide suggests 1 vCPU and 4 GiB per worker, so confirm how the published pods map to your own sizing.
- In-process mock model: The mock responds inside the gateway process, so provider round trips, provider rate limits and provider errors never appear in the figure.
- Omitted components: The figure does not include network hops, TLS termination, PostgreSQL or Redis load, guardrails, logging callbacks or response caching.
Before planning, confirm the exact test configuration, including request sizes, streaming settings and database setup, on the LiteLLM benchmarks page.
The realtime figure is a separate test of the realtime API over WebSockets. It reports 1,207 requests per second with 59 ms at p50 and 67 ms at p95 end-to-end latency, measured on 4 instances. Because it measures a different protocol and a different latency definition, it cannot be compared directly with the HTTP proxy figures.
- Latency definition: The realtime numbers are end-to-end, which includes the time to the model path inside the test, while the HTTP figures report gateway overhead only.
- Instance count: The published result used 4 instances, which is far fewer than the 33 pods in the HTTP test. Ask for the workers per instance and the vCPU and memory per instance before reusing the figure.
- Connection behavior: WebSocket sessions hold connections open for their duration, so concurrency and connection limits matter more than requests per second alone.
- Mock and omissions: Confirm whether the realtime test used an in-process mock model and whether it included database writes, logging or guardrails, since the published material does not settle this in the supplied facts.
- Provider behavior: Real realtime providers impose their own session and rate limits, which the test does not model.
If you plan to serve realtime traffic, ask LiteLLM for the full realtime test configuration and run your own WebSocket load test against your deployed gateway.
Neither published result shows what your gateway will do once real provider calls, governance controls and logging are switched on. The mock model answers inside the process, so the figures describe the gateway's own request handling under ideal upstream conditions. Treat every published number as an upper bound for the gateway code path alone.
- Provider latency: Real provider round trips usually dominate end-to-end latency, and the gateway's overhead figures do not include them.
- Provider rate limits: The mock never returns a rate limit, so retries, cooldowns and failover are not exercised.
- Data stores: PostgreSQL writes for virtual keys and spend, and Redis traffic for shared rate limits and router state, are not in the published load.
- Gateway features: Guardrails, logging callbacks and response caching each add work per request that the mock path skips.
- Network and TLS: Load balancers, TLS termination and cross-zone hops add latency outside the gateway process.
Ask for these gaps to be measured in your own environment before you size production, using a fake OpenAI endpoint so that provider limits do not affect the results.
How to interpret p50, p95 and p99 gateway latency
The published LiteLLM figures report several percentiles, and each one answers a different question about the gateway. The cards below explain what each percentile tells you, where the gateway's share of latency ends and end-to-end latency begins, and which conditions stretch the tail.
p50 shows typical overhead
The median is the gateway latency that half of requests stay under. In the published proxy run it was 30.6 ms p50, measured against an in-process mock model with no provider call. Use it as a baseline for typical added time per request, not as a promise for production traffic.
LiteLLM benchmarksp95 and p99 drive user-facing tails
Users feel the slowest requests in a session, and a small share of slow calls can dominate perceived quality. The published run reported 54.0 ms at p95 and 91.6 ms at p99 for gateway latency. Compare these against your own service objectives and ask for the same percentiles in any results you receive.
Gateway overhead is not end-to-end latency
Gateway overhead covers only the time LiteLLM spends authenticating, routing and logging a request. End-to-end latency adds the upstream provider's time to first token and full generation, plus network hops. Keep the two numbers separate in capacity plans, or the gateway will be blamed for provider delay.
Realtime figures are end-to-end
The realtime API test measured WebSocket traffic from client to response, so its 59 ms p50 and 67 ms p95 include every hop in that path. These figures cannot be compared directly with the proxy's gateway-only percentiles. Check which measurement each number represents before putting them side by side.
Concurrency stretches the tail
As in-flight requests per pod rise, requests wait for workers and connections, and queueing lengthens the upper percentiles before the median moves much. Find the concurrency at which p99 starts climbing in your own load test, since the published run's worker and pod layout will not match your deployment.
Averages hide spikes
A mean latency can look healthy while a few requests take several times longer than the median. Record p50, p95 and p99 over each test window and over time, and look for bursts that line up with retries, cooldowns or database writes. Ask the team running any benchmark to publish the full distribution, not a single average.
Translating benchmark throughput into capacity for your own traffic
Treat the published benchmark as a per-pod measurement under one specific layout, not as a sizing answer. Start by writing down your own inputs: peak requests per second and tokens per minute at the busiest hour you expect, the typical prompt and response sizes, the share of streaming requests, and how many virtual keys and teams will call the gateway at once. Streaming and large prompts change the work per request, so a request count alone does not describe your load. Once you have those numbers, divide your peak by the throughput you can reasonably expect per pod, then compare the result against the pod count you could run on your own nodes.
The published pod layout cannot be assumed to match your nodes. The reported figures used 33 gateway pods, each with 4 workers, 4 vCPU and 16 GiB, against an in-process mock model. LiteLLM's production guidance recommends one Uvicorn worker per pod on Kubernetes and scaling horizontally, and suggests 1 vCPU and 4 GiB per worker. Under that guidance, a 4 vCPU pod with 4 workers is a different layout that you need to confirm and test, not a default to copy. Your own node sizes, memory limits and worker count will move the per-pod figure, so measure it with your settings before multiplying it out.
Count three things separately from gateway capacity. First, headroom: keep spare pods so that a node drain, a rolling upgrade or a traffic spike does not push latency into the tail. Second, provider limits: the upstream model platforms enforce their own rate and quota limits, which can cap throughput before the gateway does. Third, database write load: spend and key records are written to PostgreSQL as traffic grows, and the production guide describes batching those spend updates at scale. Confirm each of these in your own environment, and check the LiteLLM benchmarks documentation for the exact test conditions behind any figure you plan around.
Benchmark settings to match before comparing numbers
This table lists the settings that move LiteLLM benchmark results and shows what the published figures used. Compare each row with your own test plan, and treat any mismatch as a reason to re-run the numbers rather than adopt them.
| Setting | What the published figure used | What to match in your test | When a different value fits |
|---|---|---|---|
| Pod count | 33 gateway pods | Pod count close to the capacity you expect at peak, with the same replica count across runs | Small teams or early pilots with far lower traffic, where a handful of pods answers the question |
| Workers per pod | 4 workers per pod | Same worker count as your container image and start command, since the production guide recommends one Uvicorn worker per pod on Kubernetes | Any layout you actually plan to ship, including a single worker per pod, so results reflect your deployment |
| vCPU and memory per pod | 4 vCPU and 16 GiB per pod | Requests and limits equal to your planned production values, not the largest node you can get | When your node sizes or cost limits differ, so measure per-pod efficiency and scale the count |
| Model target | In-process mock model | A fake OpenAI-compatible endpoint if you want network hops included, or the real provider for end-to-end numbers | In-process mock fits isolating gateway overhead; use a fake endpoint or real provider to see network and provider effects |
| Streaming versus non-streaming | Confirm the mode in the benchmark page before comparing | The same mix of streamed and non-streamed requests as your production traffic | Chat apps with streamed responses need streaming tests, while batch jobs usually fit non-streaming |
| Endpoint | Chat completions; realtime WebSocket test reported separately | The endpoint your callers use, so chat completions and realtime sessions are not compared as one number | Realtime voice or live agent traffic, where the WebSocket figures apply more closely |
| Database and Redis | Confirm whether PostgreSQL and Redis were enabled for the run | PostgreSQL and virtual keys enabled if you use them; Redis 7.0 or newer for any multi-instance run, per the production guide | Single-instance evaluations may skip Redis, but expect shared rate limits and router state to behave differently at scale |
| Callbacks and guardrails | Confirm which callbacks, logging and guardrails were active | The same logging sinks, guardrails and budget checks you will run in production | Lean gateways without logging or guardrails will show lower overhead, so add them before sizing |
Reproducing LiteLLM benchmark numbers on your own setup
This sequence lets your team pin a known LiteLLM release, build a gateway layout close to the published test, and produce throughput and latency figures you can compare with the published numbers and use for capacity planning.
Pin the LiteLLM release under test
Choose the exact LiteLLM version you will run and record it with the image digest in your test notes. The current release listed on the GitHub releases page is v1.105.1, published October 14, 2026, and the project supports the four most recent stable minor versions, so confirm which line you plan to run before you start. Check that the release matches the one used for the figures you are comparing against. Done when the version and digest are written into the test plan and the same values appear in every later run.
Deploy PostgreSQL and Redis for the gateway
A platform engineer deploys PostgreSQL as the database, since it is the primary supported database for LiteLLM, and deploys Redis 7.0 or newer once more than one proxy instance runs, because Redis holds shared rate limits, router state and cache. Keep both services in the same network zone as the gateway pods so database latency does not distort the gateway figures. Check that the gateway starts, connects to both services and reports healthy before any load is generated.
Set one Uvicorn worker per pod
Configure each gateway pod to run a single Uvicorn worker, which is the layout LiteLLM recommends on Kubernetes, and scale by adding pods instead of workers. Set CPU and memory requests and limits and record them with the pod count, because the published figure depends on the per-pod resources and worker count. Confirm the layout by checking the pod spec and the process list inside one container. Done when the test record shows the pod count, workers per pod, vCPU and memory per pod.
Point traffic at a fake model endpoint
Route the gateway to a mock or fake model endpoint so that provider limits and provider latency do not affect the measurement. Be aware that the published figures use an in-process mock model, so a separate fake HTTP endpoint adds network hops that the published numbers do not include. Send one test request through the gateway to the fake endpoint and confirm a successful response with the expected body. Record which mock option you used so the numbers can be read correctly later.
Run a ramp-up load test
Use a load generator such as Locust or another tool your team already runs, placed close to the gateway, and increase concurrency in steps instead of starting at full load. Hold each step long enough to read stable figures and record requests per second, error rate and the latency percentiles at each step. Check that the run reaches a steady state and that the gateway pods do not restart during the test. Stop the ramp when latency or errors rise sharply, which marks the practical limit of this layout.
Record gateway and client latency together
Capture p50, p95 and p99 latency both at the gateway, from its own metrics or the response overhead header, and at the client that generated the load. Confirm that the gateway measurement covers the same request boundary as the published figure, which is gateway latency rather than end-to-end time. Check that every run reports 100% HTTP 200 responses, as in the published results, and treat any error as a finding to investigate before comparing numbers. Save the raw output, not only the summary.
Repeat the test with a real provider path
Once the mock results are stable, point the same gateway layout at one real provider route and repeat the ramp-up test with the same request sizes and concurrency. The difference between the two runs shows the cost of network calls and provider behavior, which the mock figures exclude. Confirm that provider rate limits did not cause errors that would skew the comparison, and note any retries or cooldowns the router triggered. Done when both result sets sit side by side with the release, layout and test settings recorded for each.
Measurement mistakes that make benchmark results misleading
The most common error is measuring from inside the cluster while the callers sit somewhere else. A load generator running on the same nodes as the gateway skips the load balancer, DNS, TLS termination and the network path your applications actually use, so the latency it reports is a lower bound. Run the load generator from the network position your callers occupy, then record the ingress path in the test notes. Also confirm which figure you are reading: the published gateway latency is measured against an in-process mock model, so it excludes provider response time and any extra hops you add. Any capacity plan built on it has to add those costs back in.
Throughput counts only successful responses. A run that reports high requests per second while a share of calls return 429 or 5xx will look faster than a healthy gateway, because rate-limited and failed calls return quickly. Track HTTP status codes per second alongside requests per second and reject any run where the success share is not 100%. Keep streaming and non-streaming runs in separate result sets. Streamed responses hold connections open for the length of token generation, so their concurrency, memory and latency profile differs from a single-response call, and averaging the two hides both.
Two settings change results at scale and are easy to leave at defaults. Spend writes to PostgreSQL are batched, and LiteLLM recommends batching spend updates every 60 seconds at scale, so a short test may never reach the write pattern of a busy gateway. Confirm the batching interval you tested matches the one you run in production, and watch database load during the run. Debug logging is the other trap: verbose logs add CPU and I/O work on every request. Confirm the log level in the container configuration is the one you intend to run in production, and do not carry a debug setting from troubleshooting into a benchmark. Finally, run on dedicated or isolated nodes, because noisy neighbors on shared nodes add scheduling delay that shows up as p99 variance you may wrongly attribute to LiteLLM.
Security and operational considerations for benchmark environments
Benchmark runs touch secrets, keys, network paths and logs just like production does, so they need the same controls. The cards below cover the decisions that keep a LiteLLM gateway load test from creating its own security or governance problems.
Keep the master key in a secret manager
Load test scripts and CI jobs often end up holding the gateway's master key in plain environment files. LITELLM_MASTER_KEY must start with sk-, and during a load test it should be injected from your secret manager at run time rather than pasted into a Locust command, shell history or a shared notebook. Check that test runners do not echo it to logs and that the key is rotated after the test if it was shared with external contractors.
Production best practicesKeep real prompts out of test traffic
Load tests should send synthetic prompts that match the size and shape of production requests, not copies of customer conversations. Replaying production prompts can push personal or confidential data into test logs, provider dashboards and spend records that were never meant to hold it. Generate filler text or use a fixed dataset that your privacy team has approved, and confirm which logging callbacks are active during the run.
Isolate benchmark keys and budgets
Create dedicated virtual keys, a separate team and a capped budget for the benchmark so that test volume never draws down a production team's budget or trips its rate limits. Use a model group that points at the mock or fake endpoint, so no real provider spend is generated. Remove or disable these keys once the run is complete, and confirm that the spend records are labeled as test data in your cost reports.
Virtual keys docsRestrict load generator network exposure
Load generators need a route to the gateway, but they do not need to be reachable from the internet or from unrelated internal networks. Place them in the same restricted network segment as the test gateway, limit inbound access to the gateway port, and close the path once testing ends. Confirm that the gateway's admin UI is not exposed to the test network unless the test specifically requires it.
Set a retention period for test logs
Load tests generate large volumes of request logs, latency traces and database rows. Decide in advance how long these artifacts are kept, where they are stored and who can read them, and apply that period through your storage lifecycle rules. Shorter retention limits exposure if a test accidentally captured sensitive data. Ask your compliance team which retention schedule applies to performance test records before the first run.
Treat results as internal records
Benchmark results drive capacity and autoscaling decisions, so they should be reviewed and approved like other engineering evidence. Record the LiteLLM version, the pod count, workers per pod, resource requests, database and Redis settings, and the mock model used, so that another reviewer can reproduce or challenge the figures. Store the report with a named owner and a review date, and do not present a benchmark run as a production guarantee.
LiteLLM benchmarksQuestions teams ask before relying on LiteLLM benchmarks
Does the 3,000 requests per second figure apply to our gateway?
Probably not as a direct number. The published result of 3,000 requests per second and 13.5 billion tokens per minute was measured with 33 gateway pods, each running 4 workers with 4 vCPU and 16 GiB, against an in-process mock model. Your figure depends on your pod count and worker layout, the size and streaming mix of your prompts, the database and Redis writes your settings trigger, and the latency of the real providers you call. Use the published figure as an upper reference for the gateway code path, then measure your own configuration. The LiteLLM benchmarks page lists the setup behind each result, so compare that setup line by line with yours.
What does the mock model leave out of the latency numbers?
The mock model removes the provider from the measurement, so the p50, p95 and p99 gateway latency figures show only what the gateway adds. They exclude network hops to real providers, provider queueing and rate limit responses, TLS to external endpoints, and the time spent on retries and fallbacks when a provider fails. They also exclude the cost of your guardrails, logging callbacks and spend tracking if those are enabled in your configuration. Treat the latency figures as the gateway's own overhead under ideal conditions, and expect your end-to-end latency to be higher once real providers and your policies are in the path.
Can our team reproduce the benchmark ourselves, or do we need outside help?
Your team can reproduce the benchmark if it has Kubernetes experience, access to a load generator and the ability to deploy a fake OpenAI-compatible endpoint so provider limits do not affect results. Outside help is useful when the team lacks load testing experience, needs an independent result for a go-live or security review, or must match a production topology with PostgreSQL, Redis and SSO in place. Confirm with your own engineers which of these skills you already have before deciding. DeployOpen plans and runs reproduction tests for self-hosted platforms in your own infrastructure, and the scope is agreed in writing before work starts.
What does our team need to provide for a reproduction test?
Plan to provide the following before the test starts:
- Cluster access with rights to create namespaces, deployments, services and autoscaling objects in a non-production environment
- A PostgreSQL database and a Redis 7.0 or newer instance, sized the way you would run them in production, since the production guide requires Redis once more than one proxy instance runs
- The LiteLLM configuration, image version and the secret that holds the master key, kept in a secret manager
- A representative traffic profile covering prompt sizes, streaming share, model mix and the number of virtual keys in use
- Test data and a fake model endpoint that returns responses shaped like your provider's
What drives the effort and cost of a reproduction test?
Effort rises with the number of topology variables you want to measure. A single-pod run against the mock model is small. Adding multiple pods, a Horizontal Pod Autoscaler, PostgreSQL and Redis in production-like sizing, SSO, logging callbacks and a range of prompt sizes adds setup, tuning and analysis work. Other cost drivers include how many scenarios you test, how many rounds of tuning are needed, how much your team must learn about the tool, and how fast results must be reported. Costs are one-time for the test itself, while a retest after an upgrade or a topology change recurs. Ask any partner for a fixed-scope quote that lists the scenarios, environments and deliverables.
How long does a reproduction take, and what sets that duration?
The duration depends on how many scenarios you run, how long your environment takes to provision, how quickly the database and Redis can be sized and reached, and how many tuning cycles the results require. Time also goes into agreeing the traffic profile and the pass criteria before the first run, and into writing up findings. Access approvals and change windows in regulated environments often take longer than the test itself. Ask for a written timeline in the scope document that separates environment setup, test execution, analysis and retest, so you can see which step you control.
Which benchmark results should we use for capacity planning?
Use the published results to check that the gateway software can reach your scale in principle, then use your own measurements for sizing. Measure requests per second, p50, p95 and p99 gateway latency, error rates and the number of in-flight requests per pod with your real configuration, and keep the tests repeatable so you can compare results after each upgrade. Record the release version you tested, since the LiteLLM releases page lists new versions regularly, and retest when you change the release, the worker count or the database settings.
Where the benchmark measures time in the request path
The load generator starts the clock and sends requests to the LiteLLM gateway workers. The published gateway latency figures are measured inside the gateway window, which covers the workers, the in-process mock model, and the PostgreSQL and Redis calls the run actually makes. The real provider sits outside that window, so provider network time and model response time are excluded from the mock figures. Before you plan capacity, check in the benchmark documentation which database and Redis settings were used, and whether a real provider was ever part of the published run.
The mock figures include the gateway window and exclude the provider hop.
How DeployOpen scopes a LiteLLM performance validation
DeployOpen starts a LiteLLM performance validation from a written scope agreed before any work begins. That scope names the gateway version, the database and Redis layout, the number of proxy pods and workers per pod, the model endpoints under test, and the figures the client needs to see at the end. Fixing these items up front matters because the published benchmark numbers only mean something when the configuration behind them is known. Timelines and prices follow from that scope in a quote, and DeployOpen does not publish a price list.
Next, the reproduction is planned against your own infrastructure rather than a generic lab. DeployOpen deploys and tests self-hosted platforms in your cloud accounts, data centers or air-gapped networks, so the gateway, PostgreSQL, Redis and load generators run where your production traffic will run. Before any run, the team and your engineers agree which mock or fake upstream replaces live providers, so that provider rate limits do not hide gateway behavior. Confirm with your platform team which network paths, load balancers and observability tools must be included in the measurement.
DeployOpen runs the load tests and reports the results together with the configuration used, including the image version, worker counts, resource requests and Redis settings, so that your team can rerun the same test later. Where the gateway is expected to grow, the engagement can continue under a retainer for ongoing testing and for upgrades to newer LiteLLM releases, which change the numbers. Ask any prospective partner to show how they record configuration with each result and how they handle test data and credentials inside your environment.

