bulky-oyster-26979
07/29/2025, 11:29 AMtall-airline-16756
07/29/2025, 11:29 AMtall-airline-16756
07/29/2025, 11:30 AMbulky-oyster-26979
07/29/2025, 11:30 AMtall-airline-16756
07/29/2025, 11:32 AMagent-load-test command that makes performance testing a breeze.
Basic Command Structure
lk perf agent-load-test \
--rooms 5 \
--agent-name test-agent \
--echo-speech-delay 10s \
--duration 5m
Available Parameters
• `--rooms`: How many rooms you want to create for testing (think of it like setting up multiple conversation spaces)
• `--agent-name`: The name of your awesome agent that'll be joining these rooms
• `--echo-speech-delay`: A cool setting that mimics natural conversation timing (like how long it takes someone to respond)
• `--duration`: How long you want the test to run - totally flexible!
How the Load Test Works
Here's the fun part - it's like creating a mini simulation where:
• Your agent gets dispatched to multiple rooms
• Echo participants simulate real conversations
• You can tweak the speech timing to feel super natural
• Performance metrics get collected so you can see exactly how your agent is doing
Prerequisites
Just a quick checklist before you dive in:
• Make sure your agent is running with start (not dev)
• Have your agent ready with a friendly greeting to kick things off
Alternative: Agent-to-Agent Testing
Want to level up your testing? Agent-to-agent testing is like having robot teammates evaluate each other! This means you can:
• Run tests without needing human testers
• Create super specific test scenarios
• Get totally objective evaluations
• Generate comprehensive test reports
Need any help walking through this? I'm totally here for you - just give me a shout!
Sources: Deploying to production | LiveKit Docs | autocomplete/fish_autocomplete | Agent Testing & Evaluation | livekit/livekit_composite | DeepWiki