Load test for concurrent WebSocket connections on the Nexus gateway. Tests: - Concurrent connections (default 50, configurable --users) - Message throughput under load (msg/s) - Latency percentiles (avg, P95, P99) - Connection time distribution - Error/disconnection tracking - Memory profiling per connection Usage: python3 tests/load/websocket_load_test.py # 50 users, 30s python3 tests/load/websocket_load_test.py --users 200 # 200 concurrent python3 tests/load/websocket_load_test.py --duration 60 # 60s test python3 tests/load/websocket_load_test.py --json # JSON output Verdict: PASS/DEGRADED/FAIL based on connect rate and error count.
6.7 KiB
6.7 KiB