Better Benchmarks
We mentioned last week that we would be posting updated, more representative benchmarks with common features enabled. The headline numbers are in, and they're great!
0150 REQUESTS / SEC · FULL FEATURES
Same load, less overhead
Median overhead0123LiteLLM Rust0.9 msBifrost1.2 msPortkey2.1 msLiteLLM Python79.3 msoff scalep99 overhead0246LiteLLM Rust1.8 msBifrost4.2 msPortkey5.3 msLiteLLM Python1,587.8 msoff scaleCPU used0123LiteLLM Rust0.15 coresBifrost0.41 coresPortkey0.49 coresLiteLLM Python2.92 coresPeak memory05,00010,000LiteLLM Rust357 MiBBifrost2,809 MiBPortkey609 MiBLiteLLM Python9,553 MiB
Lower is better. Five minutes per gateway, 4 cores and 16 GiB each, single run, every request served. Latency subtracts a direct-to-mock run at the same rate. Portkey runs with no features; OpenRouter used a separate test.
Our previous benchmarks were with a much smaller subset of our functionality enabled, and they were not particularly representative of production workflows. We were very clear about this, as we just wanted to validate how much better Rust could do than Python as a language. In order to keep high performance as we build towards an end-to-end request handled in Rust in production, we have to be very mindful about choices made and the hot path of our requests. …