feat: add load testing script

- Implement `scripts/agent/load-test.mjs` for stress testing local relays.
- Simulate N clients publishing Video Post and View Events.
- Measure latency (Build, Sign, RTT), throughput, and system resources.
- Update `scripts/agent/simple-relay.mjs` to support configurable `PORT`.
- Include `artifacts/load-report-20260122.json` from a 1000-client run.
This commit is contained in:
google-labs-jules[bot] committed 2026-01-22 19:42:13 +00:00
1 parent 78020aae1f
commit d1d448faf6
3 files changed
+315 -272

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
import { WebSocketServer } from 'ws';
const PORT = 8008;
const PORT = process.env.PORT || 8008;
const wss = new WebSocketServer({ port: PORT });
// Simple in-memory store for REQ matching