mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 16:02:26 +00:00
- Updated `scripts/agent/load-test.mjs` to simulate realistic video publishing flows by generating Video Post (Kind 30078), Video Mirror (Kind 1063), and NIP-71 Metadata (Kind 21/22) events for "heavy" load scenarios. - Refactored the load generation loop to strictly separate cryptographic signing time from network transmission time, ensuring accurate performance metrics. - Generated a baseline `artifacts/load-report.json` demonstrating ~100 events/sec throughput and sub-10ms signing latency. - Verified execution against a local relay to prevent public network stress. Co-authored-by: PR0M3TH3AN <[email protected]>
97 lines
2.1 KiB
JSON
97 lines
2.1 KiB
JSON
{
|
|
"timestamp": "2026-01-26T19:39:32.887Z",
|
|
"config": {
|
|
"duration": 60,
|
|
"clients": 1000,
|
|
"rate": 0.1,
|
|
"relay": "ws://localhost:8889",
|
|
"force": false
|
|
},
|
|
"metrics": {
|
|
"total_sent": 6467,
|
|
"total_received": 6467,
|
|
"errors": 0,
|
|
"throughput_sent": 107.78333333333333,
|
|
"throughput_recv": 107.78333333333333,
|
|
"latency_ms": {
|
|
"p50": 0.9700979999979609,
|
|
"p95": 14.598196999999345,
|
|
"p99": 27.9113440000001
|
|
},
|
|
"operation_times_ms": {
|
|
"build_avg": 0.10325683753031617,
|
|
"sign_avg": 6.474848927014066
|
|
},
|
|
"resource_usage": [
|
|
{
|
|
"timestamp": 1769456317885,
|
|
"cpuPercent": 74.54,
|
|
"rss": 129236992,
|
|
"heapUsed": 26275344
|
|
},
|
|
{
|
|
"timestamp": 1769456322898,
|
|
"cpuPercent": 71.77,
|
|
"rss": 130256896,
|
|
"heapUsed": 30151424
|
|
},
|
|
{
|
|
"timestamp": 1769456327916,
|
|
"cpuPercent": 70.52,
|
|
"rss": 131235840,
|
|
"heapUsed": 30829208
|
|
},
|
|
{
|
|
"timestamp": 1769456332917,
|
|
"cpuPercent": 72.98,
|
|
"rss": 131637248,
|
|
"heapUsed": 38053280
|
|
},
|
|
{
|
|
"timestamp": 1769456337917,
|
|
"cpuPercent": 78.13,
|
|
"rss": 132292608,
|
|
"heapUsed": 25903752
|
|
},
|
|
{
|
|
"timestamp": 1769456342918,
|
|
"cpuPercent": 92.71,
|
|
"rss": 133566464,
|
|
"heapUsed": 28111320
|
|
},
|
|
{
|
|
"timestamp": 1769456347922,
|
|
"cpuPercent": 94.4,
|
|
"rss": 133959680,
|
|
"heapUsed": 33235048
|
|
},
|
|
{
|
|
"timestamp": 1769456352924,
|
|
"cpuPercent": 77.78,
|
|
"rss": 134717440,
|
|
"heapUsed": 27477160
|
|
},
|
|
{
|
|
"timestamp": 1769456357925,
|
|
"cpuPercent": 86.22,
|
|
"rss": 135241728,
|
|
"heapUsed": 36644992
|
|
},
|
|
{
|
|
"timestamp": 1769456362926,
|
|
"cpuPercent": 79.21,
|
|
"rss": 136028160,
|
|
"heapUsed": 28313856
|
|
},
|
|
{
|
|
"timestamp": 1769456367927,
|
|
"cpuPercent": 71.57,
|
|
"rss": 136814592,
|
|
"heapUsed": 39710304
|
|
}
|
|
],
|
|
"error_breakdown": {}
|
|
},
|
|
"bottlenecks": [],
|
|
"remediation": []
|
|
} |