mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-26 22:30:11 +00:00
Adds litellm-rust/loadtest: a mock LLM (OpenAI chat, Anthropic messages, Bedrock invoke with event-stream framing) that takes its timing from the prompt, an open-loop load generator with workloads covering 10k to 1M token contexts, 6 minute non-streaming calls and 30 minute streams, a config and virtual key generator, a summarizer and a /proc sampler, plus Terraform for an AWS rig with load generators, gateway and mocks on separate machines The gateway sets TCP_NODELAY on accepted sockets, removing a ~40 ms stall per streamed response, and its Docker build takes LTO and CODEGEN_UNITS build args for faster iteration builds
18 lines
914 B
JSON
18 lines
914 B
JSON
{
|
|
"name": "smoke: both endpoints, streaming and not, small contexts, 1 minute",
|
|
"stages": [{"duration_s": 60, "rps": 5}],
|
|
"nonstream_max_s": 360,
|
|
"warmup_s": 5,
|
|
"keys": {"file": "out/keys.txt", "zipf_s": 0},
|
|
"models": {"chat": {"prefix": "gpt-6-astra-", "count": 4}, "messages": {"prefix": "claude-opus-5-5-", "count": 4}},
|
|
"classes": [
|
|
{"name": "chat", "weight": 1, "endpoint": "chat", "stream_fraction": 0.5,
|
|
"context_tokens": {"dist": "loguniform", "min": 10000, "max": 50000},
|
|
"ttft_ms": {"dist": "uniform", "min": 200, "max": 800},
|
|
"duration_s": {"dist": "uniform", "min": 1, "max": 5}},
|
|
{"name": "messages", "weight": 1, "endpoint": "messages", "stream_fraction": 0.5,
|
|
"context_tokens": {"dist": "loguniform", "min": 10000, "max": 50000},
|
|
"ttft_ms": {"dist": "uniform", "min": 200, "max": 800},
|
|
"duration_s": {"dist": "uniform", "min": 1, "max": 5}}
|
|
]
|
|
}
|