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
1 KiB
JSON
18 lines
1 KiB
JSON
{
|
|
"name": "thousands of concurrent 10 to 30 minute streams (2 rps x about 20 min = about 2,400 open streams)",
|
|
"stages": [{"duration_s": 3600, "rps": 2}],
|
|
"nonstream_max_s": 360,
|
|
"warmup_s": 0,
|
|
"keys": {"file": "out/keys.txt", "zipf_s": 0},
|
|
"models": {"chat": {"prefix": "gpt-6-astra-", "count": 10}, "messages": {"prefix": "claude-opus-5-5-", "count": 10}},
|
|
"classes": [
|
|
{"name": "long-stream-messages", "weight": 1, "endpoint": "messages", "stream_fraction": 1,
|
|
"context_tokens": {"dist": "loguniform", "min": 10000, "max": 200000},
|
|
"ttft_ms": {"dist": "uniform", "min": 1000, "max": 5000},
|
|
"duration_s": {"dist": "uniform", "min": 600, "max": 1800}, "output_tokens_per_s": 30},
|
|
{"name": "long-stream-chat", "weight": 1, "endpoint": "chat", "stream_fraction": 1,
|
|
"context_tokens": {"dist": "loguniform", "min": 10000, "max": 200000},
|
|
"ttft_ms": {"dist": "uniform", "min": 1000, "max": 5000},
|
|
"duration_s": {"dist": "uniform", "min": 600, "max": 1800}, "output_tokens_per_s": 30}
|
|
]
|
|
}
|