litellm/litellm-rust/crates/host-python/Cargo.toml
Yujong Lee b0a42ed3a2 perf(host-python): add a stream bridge floor benchmark
Isolates the Python/Rust stream bridge from HTTP, routing and logging, and
compares ready reads, suspended reads, the sync form and a pure-Python asyncio
loop on wall and process CPU time. A suspended read costs about 34 us against
0.6 us for a ready read, which accounts for most of the per-delta CPU excess the
paced proxy benchmark measured

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-25 18:12:07 -07:00

25 lines
548 B
TOML

[package]
name = "litellm-host-python"
version = "0.1.0"
edition.workspace = true
license.workspace = true
repository.workspace = true
[dependencies]
bytes.workspace = true
futures-util.workspace = true
litellm-host.workspace = true
pyo3.workspace = true
pyo3-async-runtimes.workspace = true
pythonize.workspace = true
serde.workspace = true
tokio = { workspace = true, features = ["rt", "sync"] }
[dev-dependencies]
criterion.workspace = true
rstest.workspace = true
serde_json.workspace = true
[[bench]]
name = "stream_bridge"
harness = false