Benchmarks | liteLLM
Skip to main content

Benchmarks

Performance test results for LiteLLM Gateway.

High-throughput performance test results​

13.5 billion tokens per minute (TPM).

MetricResult
Requests per second3,000
Client HTTP 200 rate100.00%
Gateway request latency, p5030.581 ms
Gateway request latency, p9554.029 ms
Gateway request latency, p9991.645 ms
Client time to first token, p5031.667 ms

Methodology​

SettingConfiguration
Deployment33 gateway pods; 4 workers, 4 vCPUs, and 16 GiB memory requested per pod
TrafficDistributed Locust with 30 load-generator workers; 3,000 users at one request per second each
Requests/v1/chat/completions; equal shares of 50K, 75K, and 100K-token prompts; 50% streaming; max_tokens: 16
Model and networkIn-process mock model; public AWS Application Load Balancer; 60-second client timeout
ConfigurationHigh-throughput Helm values; PostgreSQL and Redis; virtual-key budgets, token counting, spend tracking, and metrics; response caching disabled
Duration24 minutes 22 seconds
MeasurementPrometheus: throughput and gateway latency. Locust: client success and time to first token, including upload and load-balancer time

Realtime API performance test results​

1,207 requests per second.

MetricResult
End-to-end latency, p5059 ms
End-to-end latency, p9567 ms
End-to-end latency, p9999 ms
Average end-to-end latency63 ms

Methodology​

SettingConfiguration
Deployment4 gateway instances; 4 workers, 4 vCPUs, and 8 GB RAM per instance
TrafficLocust; 1,000 users with a 0.5 to 1 second pause between requests
Requests/v1/realtime over persistent WebSockets; text requests for a two-sentence story with a random ID
Model and networkMock realtime endpoint
ConfigurationPostgreSQL; Redis disabled
DurationNot recorded
MeasurementLocust script: requests per second and latency through response.done, including connection setup when needed

Short-prompt chat performance test results​

1,170 requests per second with 8 ms p95 gateway overhead across four instances.

Metric2 instances4 instances
Requests per second1,035.71,170
Request latency, p50200 ms100 ms
Request latency, p95630 ms150 ms
Request latency, p991,200 ms240 ms
Average request latency262.46 ms111.73 ms
Gateway overhead, p5012 ms2 ms
Gateway overhead, p9529 ms8 ms
Gateway overhead, p9943 ms13 ms
Average gateway overhead14.74 ms3.32 ms

Methodology​

SettingConfiguration
Deployment2 or 4 instances; 4 vCPUs and 8 GB RAM per instance. The 4-instance test uses 4 workers per instance; the 2-instance worker count is not recorded
TrafficLocust; 1,000 users with a 0.5 to 1 second pause between requests
Requests/chat/completions; the 4-instance script sends text with a random ID repeated 150 times. The 2-instance payload is not recorded
Model and networkMock OpenAI endpoint
ConfigurationPostgreSQL; Redis disabled
DurationNot recorded
MeasurementLocust: request throughput and full request latency. Gateway overhead: x-litellm-overhead-duration-ms response header

Logging callback performance test results​

ConfigurationRequests per secondMedian request latency
Base proxy1,133.2140 ms
GCS bucket logging1,137.3138 ms
LangSmith logging1,135132 ms

Methodology​

SettingConfiguration
DeploymentNot recorded
TrafficNot recorded
RequestsNot recorded
Model and networkNot recorded
ConfigurationBase proxy compared with GCS bucket logging and LangSmith logging
DurationNot recorded
MeasurementRequests per second and median request latency