mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-29 01:03:17 +00:00
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>
25 lines
548 B
TOML
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
|