mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 16:02:26 +00:00
Implements a load testing script for Nostr relays that simulates multiple clients, generates mixed event traffic (View/Video), and measures performance metrics including latency, throughput, and CPU usage. It also includes strict safety guardrails to prevent accidental load testing against public relays. Signed-off-by: Jules <[email protected]> Co-authored-by: PR0M3TH3AN <[email protected]>
40 lines
760 B
JSON
40 lines
760 B
JSON
{
|
|
"config": {
|
|
"clients": 100,
|
|
"duration": 10,
|
|
"rate": 5,
|
|
"relay": null,
|
|
"outputDir": "artifacts"
|
|
},
|
|
"timestamp": "2026-02-07T19:37:19.456Z",
|
|
"durationSec": 10.459,
|
|
"throughput": 114.35127641265896,
|
|
"totalSent": 1197,
|
|
"totalAccepted": 1196,
|
|
"totalRejected": 0,
|
|
"totalErrors": 0,
|
|
"latency": {
|
|
"p50": 1,
|
|
"p95": 2,
|
|
"p99": 10,
|
|
"min": 0,
|
|
"max": 25,
|
|
"avg": 0.7842809364548495
|
|
},
|
|
"signingTime": {
|
|
"avg": 5.981282806182139,
|
|
"max": 23.78902300000027
|
|
},
|
|
"resources": [
|
|
{
|
|
"time": 5443,
|
|
"cpuUser": 4805459,
|
|
"cpuSystem": 365368,
|
|
"rss": 96088064,
|
|
"heapTotal": 31481856,
|
|
"heapUsed": 13615216
|
|
}
|
|
],
|
|
"topBottlenecks": [],
|
|
"proposedRemediation": []
|
|
} |