I like that this comparison goes beyond the usual “Rust vs Go” performance debate. When you're choosing an AI gateway for production, benchmark numbers only tell one part. Things like p99 latency under load, memory usage, routing, governance, and migration effort can make a bigger difference in the long run. The distinction between Bifrost's published results and LiteLLM's own Rust benchmarks is also an important detail.
Software Engineer • Technical Writer (600K+ readers & 25K+ followers) • Trusted by 30+ startups and tech companies worldwide
I turn brands into websites people 💙 to use
Thank you! Choosing an AI gateway for production goes beyond the programming language or benchmark numbers. The real differences show up when you look at how each platform handles actual production needs. Really glad you found the breakdown useful!
The most useful line here is the quiet one: "LiteLLM's separate benchmarks report different results, so the test conditions matter." Gateway benchmarks are almost always run against a mock or a trivially fast upstream, which measures the gateway's own overhead — but in production the gateway spends 99% of its wall-clock blocked on the provider's TTFT, not on its own routing. A gateway that adds 11µs vs 2ms is a rounding error next to a provider p99 of 1.7s.
Where the gateway choice actually bites us isn't raw latency, it's failover behavior under partial degradation: when a provider goes slow-but-not-down, does the gateway's health check trip fast enough to reroute, or does it dutifully wait out every timeout? That's governance-and-routing maturity, not throughput, and it's the thing I'd stress-test before picking either. Curious whether you measured failover reaction time, since that's the number that saves an on-call shift.
Software Engineer • Technical Writer (600K+ readers & 25K+ followers) • Trusted by 30+ startups and tech companies worldwide
I turn brands into websites people 💙 to use
This is a good point, especially about providers becoming slow without going down. That's the kind of scenario that can cause real headaches in production, even when the gateway looks perfectly healthy in benchmarks.
I didn't measure failover reaction time in this comparison, but I agree it's one of the most important things to test. I'd be interested in seeing how quickly each gateway detects partial degradation and reroutes traffic before timeouts start piling up.
Solo developer building practical CLI tools for Linux auditing and B2B data extraction. Creator of Vaultcheck and NPILift. I write about silent failures, false green lights, and infrastructure reliabi
100% success at 500 RPS" holds while the upstream is healthy, which is the one case where the fallback list never executes — and that's the code path that decides a real 429 season. Mine broke there: the resolver takes fallback names straight out of the presets dict, so deleting a preset raised a KeyError only when the fallback was first hit, and nothing that exercises the happy path ever saw it. Point the primary at a dead base URL and send one request before you believe any of these numbers.
Software Engineer • Technical Writer (600K+ readers & 25K+ followers) • Trusted by 30+ startups and tech companies worldwide
I turn brands into websites people 💙 to use
Great catch! And you're right about testing the failure paths. A healthy upstream can make everything look fine, but the real test starts when a provider returns errors, hits rate limits, or becomes unreachable. Your example with the missing preset is the kind of edge case that a happy-path benchmark can easily miss. Testing with a deliberately failing primary provider should definitely be part of any serious gateway evaluation!
Solo developer building practical CLI tools for Linux auditing and B2B data extraction. Creator of Vaultcheck and NPILift. I write about silent failures, false green lights, and infrastructure reliabi
A 429 is the easy failure; the one that hides is a primary that accepts the connection and never answers. Point the primary at a blackhole socket (listen, never respond) so the test exercises the timeout->fallback transition instead of an immediate error, and have every backend return a marker header (e.g. X-Served-By) so the assertion is "the marker flipped", not just "a 200 came back". Otherwise a passing benchmark can't tell you which provider actually served the request.
I research AI tools, APIs & agents — comparing specs, pricing and real user reports — then publish honest rankings so you don't waste money. Research-first, never sponsored fluff.
Throughput at concurrency 64 landing at 2,719 and 2,722 is the number that stopped me — effectively tied, so the whole comparison comes down to the p99 tail and the fine print. The honest bit is admitting the 500 RPS headline is Bifrost vs the Python proxy, not the Rust one. Do you think the Rust gateway closes that p99 gap once streaming lands, or is the per-provider worker pool the thing that actually decides it?
Software Engineer • Technical Writer (600K+ readers & 25K+ followers) • Trusted by 30+ startups and tech companies worldwide
I turn brands into websites people 💙 to use
I think both factors matter, but the per-provider worker pool has a more direct impact on how requests are handled under concurrency. Streaming could change the latency picture too, but I'd be careful about drawing conclusions before testing it under the same conditions. A proper side-by-side benchmark once the Rust feature set matures would be interesting!
the fine print is the part worth reading twice. the headline 500 RPS numbers are Bifrost against the Python proxy, not the Rust one, and each cell is a single run.
Software Engineer • Technical Writer (600K+ readers & 25K+ followers) • Trusted by 30+ startups and tech companies worldwide
I turn brands into websites people 💙 to use
Exactly! I wanted to make that distinction clear because comparing those numbers without looking at the test conditions would be misleading. The Python proxy and Rust gateway are two different comparisons, and the single-run results shouldn't be treated as a definitive performance ranking.
Really useful comparison — the part that stuck with me was how close the throughput numbers were at concurrency 64 (2,719 vs 2,722 req/s). It makes the decision feel less about raw speed and more about what happens when a provider gets slow without actually going down. I also appreciated the honest note that LiteLLM Rust is still in beta and the benchmarks come from different setups, so they are not directly comparable. For a production setup, the fallbacks, budgets and observability you covered would probably matter more to me than a few milliseconds of overhead. Thanks for laying it out so clearly.
Software Engineer • Technical Writer (600K+ readers & 25K+ followers) • Trusted by 30+ startups and tech companies worldwide
I turn brands into websites people 💙 to use
Thanks! When throughput is that close, the operational side becomes more important. A gateway needs to handle slow providers, manage usage, and give teams enough visibility to understand what's happening when things go wrong. Those are the details that really influence the experience of running it in production. Glad you found the comparison useful!
Software Engineer • Technical Writer (600K+ readers & 25K+ followers) • Trusted by 30+ startups and tech companies worldwide
I turn brands into websites people 💙 to use
Exactly! That's what makes that benchmark interesting. The throughput was practically identical, so the difference showed up more in added p99 latency than in the number of requests handled.
We're a place where coders share, stay up-to-date and grow their careers.
I like that this comparison goes beyond the usual “Rust vs Go” performance debate. When you're choosing an AI gateway for production, benchmark numbers only tell one part. Things like p99 latency under load, memory usage, routing, governance, and migration effort can make a bigger difference in the long run. The distinction between Bifrost's published results and LiteLLM's own Rust benchmarks is also an important detail.
Thank you! Choosing an AI gateway for production goes beyond the programming language or benchmark numbers. The real differences show up when you look at how each platform handles actual production needs. Really glad you found the breakdown useful!
The most useful line here is the quiet one: "LiteLLM's separate benchmarks report different results, so the test conditions matter." Gateway benchmarks are almost always run against a mock or a trivially fast upstream, which measures the gateway's own overhead — but in production the gateway spends 99% of its wall-clock blocked on the provider's TTFT, not on its own routing. A gateway that adds 11µs vs 2ms is a rounding error next to a provider p99 of 1.7s.
Where the gateway choice actually bites us isn't raw latency, it's failover behavior under partial degradation: when a provider goes slow-but-not-down, does the gateway's health check trip fast enough to reroute, or does it dutifully wait out every timeout? That's governance-and-routing maturity, not throughput, and it's the thing I'd stress-test before picking either. Curious whether you measured failover reaction time, since that's the number that saves an on-call shift.
This is a good point, especially about providers becoming slow without going down. That's the kind of scenario that can cause real headaches in production, even when the gateway looks perfectly healthy in benchmarks.
I didn't measure failover reaction time in this comparison, but I agree it's one of the most important things to test. I'd be interested in seeing how quickly each gateway detects partial degradation and reroutes traffic before timeouts start piling up.
100% success at 500 RPS" holds while the upstream is healthy, which is the one case where the fallback list never executes — and that's the code path that decides a real 429 season. Mine broke there: the resolver takes fallback names straight out of the presets dict, so deleting a preset raised a KeyError only when the fallback was first hit, and nothing that exercises the happy path ever saw it. Point the primary at a dead base URL and send one request before you believe any of these numbers.
Great catch! And you're right about testing the failure paths. A healthy upstream can make everything look fine, but the real test starts when a provider returns errors, hits rate limits, or becomes unreachable. Your example with the missing preset is the kind of edge case that a happy-path benchmark can easily miss. Testing with a deliberately failing primary provider should definitely be part of any serious gateway evaluation!
A 429 is the easy failure; the one that hides is a primary that accepts the connection and never answers. Point the primary at a blackhole socket (listen, never respond) so the test exercises the timeout->fallback transition instead of an immediate error, and have every backend return a marker header (e.g. X-Served-By) so the assertion is "the marker flipped", not just "a 200 came back". Otherwise a passing benchmark can't tell you which provider actually served the request.
Throughput at concurrency 64 landing at 2,719 and 2,722 is the number that stopped me — effectively tied, so the whole comparison comes down to the p99 tail and the fine print. The honest bit is admitting the 500 RPS headline is Bifrost vs the Python proxy, not the Rust one. Do you think the Rust gateway closes that p99 gap once streaming lands, or is the per-provider worker pool the thing that actually decides it?
I think both factors matter, but the per-provider worker pool has a more direct impact on how requests are handled under concurrency. Streaming could change the latency picture too, but I'd be careful about drawing conclusions before testing it under the same conditions. A proper side-by-side benchmark once the Rust feature set matures would be interesting!
the fine print is the part worth reading twice. the headline 500 RPS numbers are Bifrost against the Python proxy, not the Rust one, and each cell is a single run.
Exactly! I wanted to make that distinction clear because comparing those numbers without looking at the test conditions would be misleading. The Python proxy and Rust gateway are two different comparisons, and the single-run results shouldn't be treated as a definitive performance ranking.
the test conditions are doing all the work there. same headline number, two different comparisons underneath it.
Really useful comparison — the part that stuck with me was how close the throughput numbers were at concurrency 64 (2,719 vs 2,722 req/s). It makes the decision feel less about raw speed and more about what happens when a provider gets slow without actually going down. I also appreciated the honest note that LiteLLM Rust is still in beta and the benchmarks come from different setups, so they are not directly comparable. For a production setup, the fallbacks, budgets and observability you covered would probably matter more to me than a few milliseconds of overhead. Thanks for laying it out so clearly.
Thanks! When throughput is that close, the operational side becomes more important. A gateway needs to handle slow providers, manage usage, and give teams enough visibility to understand what's happening when things go wrong. Those are the details that really influence the experience of running it in production. Glad you found the comparison useful!
Throughput at concurrency 64 landing at 2,719 and 2,722 req/s stopped me, because the two gateways were effectively tied there.
Exactly! That's what makes that benchmark interesting. The throughput was practically identical, so the difference showed up more in added p99 latency than in the number of requests handled.