mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
This introduces `scripts/agent/load-test.mjs`, a stress testing tool that: - Spawns a local relay server in a separate process. - Simulates N concurrent WebSocket clients. - Publishes a configurable mix of large (Video Post) and small (View) events. - Measures and reports on latency, throughput, memory usage, and cryptographic signing time. - Identifies potential bottlenecks (error rate > 5%, latency > 500ms, sign time > 5ms). Includes a sample run report in `artifacts/`. Co-authored-by: PR0M3TH3AN <[email protected]>