AI-adatfolyamok teljesítménye
A folyamatos modellválaszok és agentfutások késleltetését, megszakítását, sebességkorlátait és költségeit méri.
ai-streaming-performance
Nézd meg, miben segítMikor hasznos?
Akkor használd, ha a válasz megakadni látszik, vagy a párhuzamos beszélgetések drágulnak és lassulnak.
Miben segít neked?
- Elválasztja az ismételhető szimulációt a korlátozott valódi szolgáltatói méréstől.
- Méri az első érdemi választ, válaszrészek közötti szüneteket és teljes futásidőt.
- Ellenőrzi a megszakítás utáni takarítást, újrapróbálást és tokenelszámolást.
Például ezt kérheted
Terheld az asszisztens adatfolyamát visszajátszott válaszokkal, majd tervezz korlátozott élő késleltetés- és megszakításvizsgálatot. A szimulált streamek felét félúton szakítsd meg. Ellenőrizd az erőforrások felszabadulását, és külön mutasd a befejezett, illetve megszakított kérések késleltetését.
Részletes dokumentáció
Itt a skill eredeti útmutatóját, példáit és ellenőrzési szempontjait olvashatod az eredeti nyelven.
Összecsukás
AI & Streaming Performance
When to Use
Use when load testing or benchmarking LLM-powered endpoints, SSE/WebSocket streaming responses, multi-step AI agent runtimes, vector search / RAG pipelines, or tool-calling workflows.
Separate Simulated Provider Load from Live Model Calls
Live LLM calls are slow, non-deterministic, rate-limited, and expensive. Always separate AI performance testing into two distinct modes:
- Deterministic Mock / Replay Upstream Mode (Gateway & Runtime Stress):
- Use a local mock LLM server that simulates realistic Time to First Token (TTFT) (e.g.,
300ms–1500ms), Inter-Token Latency (ITL / TPOT) (e.g.,15–40msper SSE chunk), tool-call payloads, and occasional429/529errors. - Use this mode to stress-test the application's own SSE/WebSocket proxy buffering, DB state persistence, event loop, memory footprint per open stream, and concurrency limits at high RPS with zero token cost.
- Use a local mock LLM server that simulates realistic Time to First Token (TTFT) (e.g.,
- Bounded Live Provider Benchmark Mode (End-to-End Calibration):
- Run strictly bounded concurrency and request counts (with a hard token/cost cap) against the real provider to measure actual model latency distributions, prompt cache hit rates, and RPM/TPM rate-limit behavior.
Streaming & LLM-Specific SLIs to Measure
Standard HTTP http_req_duration only measures total stream completion time—which hides frozen streams! Always measure:
- TTFT (Time to First Token / First Meaningful Chunk): Time from request dispatch until the first content token or tool event arrives (
p50,p95,p99). - TPOT / ITL (Time Per Output Token / Inter-Token Latency) and Token Throughput (
tokens/sec): Detects stream stuttering or reverse-proxy buffering (e.g., Nginx/Cloudflare buffering the entire SSE stream instead of flushing chunks immediately). - Total Completion Time & End-to-End Agent Turn Latency: Breakdown across prompt assembly / RAG retrieval $\rightarrow$ LLM inference $\rightarrow$ tool execution $\rightarrow$ state persistence.
- Stream Interruption & Client Abort Cleanup:
- Simulate clients disconnecting mid-stream (
AbortController.abort()after 2s). - Verify the backend immediately cancels the upstream LLM stream and aborts in-flight tool subprocesses rather than continuing to burn tokens and compute in the background.
- Simulate clients disconnecting mid-stream (
Provider Quotas, Retries & Token Cost Economics
- Rate-Limit Handling (
429RPM / TPM / ITPM / OTPM):- Verify that concurrent agent runs respect
Retry-After/x-ratelimit-reset-*headers, use token-aware queuing or semaphores, and fail over or degrade gracefully without triggering retry storms.
- Verify that concurrent agent runs respect
- Cost & Token Accounting Under Load:
- Track input tokens, cached input tokens (
cache_read_input_tokens), output tokens, and total cost per workflow run: $$\text{Cost per Run} = \sum_{\text{steps}} \left( T_{\text{in}} \cdot C_{\text{in}} + T_{\text{cached}} \cdot C_{\text{cached}} + T_{\text{out}} \cdot C_{\text{out}} \right)$$ - Detect runaway agent loops, unbounded context growth across turns, or missing prompt-cache hits that multiply latency and cost under concurrent load.
- Track input tokens, cached input tokens (
Csomagban lévő fájlok 1
SKILL.md
A skillcsomag bemutatása
ai-streaming-performance
ai-streaming-performance: Valós terhelési modellekkel, mért szűk keresztmetszetekkel, ismételhető kapacitás- és helyreállítási tesztekkel tárja fel a teljesítményhatárokat.
Összecsukás
ai-streaming-performance
ai-streaming-performance: Valós terhelési modellekkel, mért szűk keresztmetszetekkel, ismételhető kapacitás- és helyreállítási tesztekkel tárja fel a teljesítményhatárokat.
A teljes skillt és a hozzá tartozó fájlokat tartalmazza (1 fájl). Az alábbi eredeti leírás rögzíti a pontos alkalmazási területét.
A skill eredeti leírása (a forrás nyelvén)
Use when benchmarking and load-testing AI agents, LLM integrations, SSE/WebSocket token streams, RAG pipelines, and tool-calling workflows—measuring TTFT, TPOT, stream cancellations, provider rate limits, and cost per run.
Telepítsd a skillt, nézd át a forrását és a megbízhatósági beállításait, majd engedélyezd a megfelelő projektben vagy ügynöknél.
Előfeltételek
- A számítógépedre telepített Orqestria.
