mirror of
https://github.com/PR0M3TH3AN/TORCH.git
synced 2026-10-27 07:51:52 +00:00
Run daily load-test-agent (dry-run)
- Executed load-test-agent in dry-run mode. - Created context, todo, decisions, and test logs. - Generated load test reports in reports/load-test/. - Updated agent memory. - Released lock and logged completion. Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
98b304c454
commit
4588f322d4
8 files changed
+299
No files matched your search
@@ -0,0 +1,10 @@
|
||||
# Memory Update — load-test-agent — 2026-02-23
|
||||
|
||||
## Key findings
|
||||
- Load test harness verified in dry-run mode (v0.1.0).
|
||||
|
||||
## Patterns / reusable knowledge
|
||||
- Use `--dry-run` to verify script integrity without network access.
|
||||
|
||||
## Warnings / gotchas
|
||||
- Always set `RELAY_URL` even for dry-run.
|
||||
@@ -0,0 +1,150 @@
|
||||
{
|
||||
"generatedAt": "2026-02-23T01:06:03.112Z",
|
||||
"config": {
|
||||
"relay": {
|
||||
"protocol": "ws:",
|
||||
"hostname": "localhost",
|
||||
"port": "9999"
|
||||
},
|
||||
"relaySummary": "ws://localhost:9999",
|
||||
"dryRun": true,
|
||||
"clients": 1000,
|
||||
"durationSec": 10,
|
||||
"rateEps": 20,
|
||||
"mixMetadata": 0.2,
|
||||
"seed": null,
|
||||
"connectConcurrency": 25,
|
||||
"maxConnections": 250,
|
||||
"maxInflight": 300,
|
||||
"publishTimeoutMs": 15000,
|
||||
"metadataParts": 4
|
||||
},
|
||||
"results": {
|
||||
"attempted": 200,
|
||||
"succeeded": 200,
|
||||
"failed": 0,
|
||||
"successRate": 1,
|
||||
"throughputEps": 19.998,
|
||||
"backpressureDrops": 0,
|
||||
"inFlightPeak": 2,
|
||||
"latency": {
|
||||
"count": 200,
|
||||
"minMs": 5.203,
|
||||
"avgMs": 14.467850000000004,
|
||||
"p50Ms": 14.242,
|
||||
"p90Ms": 22.238,
|
||||
"p95Ms": 23.286,
|
||||
"p99Ms": 24.489,
|
||||
"maxMs": 24.688
|
||||
},
|
||||
"eventLoopLag": {
|
||||
"avgMs": 0.396,
|
||||
"p95Ms": 2
|
||||
},
|
||||
"errorBreakdown": {},
|
||||
"topStackTraces": {},
|
||||
"resource": {
|
||||
"samples": [
|
||||
{
|
||||
"tSec": 5,
|
||||
"rssMb": 78.06,
|
||||
"heapUsedMb": 10.09,
|
||||
"heapTotalMb": 19.35,
|
||||
"cpuPercent": 17.4
|
||||
},
|
||||
{
|
||||
"tSec": 10,
|
||||
"rssMb": 78.21,
|
||||
"heapUsedMb": 10.27,
|
||||
"heapTotalMb": 19.35,
|
||||
"cpuPercent": 13.72
|
||||
}
|
||||
],
|
||||
"sampleCount": 2,
|
||||
"maxRssMb": 78.21,
|
||||
"maxHeapUsedMb": 10.27,
|
||||
"avgCpuPercent": 15.56,
|
||||
"cpuUserMs": 1492.56,
|
||||
"cpuSystemMs": 63.908
|
||||
},
|
||||
"throughputSeries": [
|
||||
{
|
||||
"second": 0,
|
||||
"attempted": 20,
|
||||
"succeeded": 20,
|
||||
"failed": 0,
|
||||
"backpressureDrops": 0
|
||||
},
|
||||
{
|
||||
"second": 1,
|
||||
"attempted": 20,
|
||||
"succeeded": 20,
|
||||
"failed": 0,
|
||||
"backpressureDrops": 0
|
||||
},
|
||||
{
|
||||
"second": 2,
|
||||
"attempted": 20,
|
||||
"succeeded": 20,
|
||||
"failed": 0,
|
||||
"backpressureDrops": 0
|
||||
},
|
||||
{
|
||||
"second": 3,
|
||||
"attempted": 20,
|
||||
"succeeded": 20,
|
||||
"failed": 0,
|
||||
"backpressureDrops": 0
|
||||
},
|
||||
{
|
||||
"second": 4,
|
||||
"attempted": 20,
|
||||
"succeeded": 20,
|
||||
"failed": 0,
|
||||
"backpressureDrops": 0
|
||||
},
|
||||
{
|
||||
"second": 5,
|
||||
"attempted": 20,
|
||||
"succeeded": 20,
|
||||
"failed": 0,
|
||||
"backpressureDrops": 0
|
||||
},
|
||||
{
|
||||
"second": 6,
|
||||
"attempted": 20,
|
||||
"succeeded": 20,
|
||||
"failed": 0,
|
||||
"backpressureDrops": 0
|
||||
},
|
||||
{
|
||||
"second": 7,
|
||||
"attempted": 20,
|
||||
"succeeded": 20,
|
||||
"failed": 0,
|
||||
"backpressureDrops": 0
|
||||
},
|
||||
{
|
||||
"second": 8,
|
||||
"attempted": 20,
|
||||
"succeeded": 20,
|
||||
"failed": 0,
|
||||
"backpressureDrops": 0
|
||||
},
|
||||
{
|
||||
"second": 9,
|
||||
"attempted": 20,
|
||||
"succeeded": 20,
|
||||
"failed": 0,
|
||||
"backpressureDrops": 0
|
||||
}
|
||||
],
|
||||
"hotFunctions": "not measured",
|
||||
"startedAtIso": "2026-02-23T01:05:53.110Z",
|
||||
"completedAtIso": "2026-02-23T01:06:03.112Z",
|
||||
"runDurationSec": 10.001
|
||||
},
|
||||
"remediation": [
|
||||
"No significant bottlenecks observed in this run; increase load gradually and repeat to find saturation point."
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
# Load Test Report - 2026-02-23
|
||||
|
||||
## Safety
|
||||
- Does not target public relays.
|
||||
- Requires explicit `RELAY_URL`.
|
||||
- Relay target: ws://localhost:9999
|
||||
- Mode: dry-run (no network sends)
|
||||
|
||||
## Configuration
|
||||
- Clients: 1000
|
||||
- Duration: 10s
|
||||
- Rate: 20 events/sec
|
||||
- Metadata mix: 0.2
|
||||
- Max connections: 250
|
||||
- Max in-flight publishes: 300
|
||||
- Seed: (random)
|
||||
|
||||
## Summary
|
||||
- Attempted: 200
|
||||
- Succeeded: 200
|
||||
- Failed: 0
|
||||
- Throughput: 19.998 events/sec
|
||||
- Success rate: 100.00%
|
||||
|
||||
## Latency
|
||||
- p50: 14.242 ms
|
||||
- p90: 22.238 ms
|
||||
- p95: 23.286 ms
|
||||
- p99: 24.489 ms
|
||||
|
||||
## Event Loop Lag
|
||||
- Avg: 0.396 ms
|
||||
- p95: 2 ms
|
||||
|
||||
## Error Taxonomy
|
||||
- none
|
||||
|
||||
## Hot Functions
|
||||
- not measured
|
||||
|
||||
## Prioritized Remediation
|
||||
1. No significant bottlenecks observed in this run; increase load gradually and repeat to find saturation point.
|
||||
@@ -0,0 +1,21 @@
|
||||
---
|
||||
agent: load-test-agent
|
||||
cadence: daily
|
||||
run-start: 2026-02-23T01:05:34Z
|
||||
---
|
||||
|
||||
# Context — load-test-agent
|
||||
|
||||
## Goal
|
||||
Execute a scheduled load test (dry-run) to verify harness stability and ensure no regressions in load testing capabilities.
|
||||
|
||||
## Scope
|
||||
- Run `scripts/agent/load-test.mjs` in dry-run mode.
|
||||
- Generate load test reports.
|
||||
- Verify safe execution (no public relay connections).
|
||||
|
||||
## Constraints
|
||||
- Must not connect to public relays.
|
||||
- Must run in dry-run mode unless on dedicated infra.
|
||||
- Must update memory and artifacts.
|
||||
- Executed prompt: src/prompts/daily/load-test-agent.md
|
||||
@@ -0,0 +1,15 @@
|
||||
---
|
||||
agent: load-test-agent
|
||||
cadence: daily
|
||||
run-start: 2026-02-23T01:05:34Z
|
||||
---
|
||||
|
||||
# Decisions — load-test-agent
|
||||
|
||||
## Decision
|
||||
Run in dry-run mode only.
|
||||
|
||||
## Rationale
|
||||
No dedicated test infrastructure is confirmed for this run, so we default to dry-run to ensure safety and prevent accidental public relay usage.
|
||||
|
||||
Executed prompt: src/prompts/daily/load-test-agent.md
|
||||
@@ -0,0 +1,28 @@
|
||||
---
|
||||
agent: load-test-agent
|
||||
cadence: daily
|
||||
run-start: 2026-02-23T01:05:34Z
|
||||
---
|
||||
|
||||
# Test Log — load-test-agent
|
||||
|
||||
**Command:**
|
||||
`node scripts/agent/load-test.mjs --relay-url ws://localhost:9999 --dry-run --duration-sec 10`
|
||||
|
||||
**Result:**
|
||||
Load test configuration
|
||||
relay: ws://localhost:9999
|
||||
clients: 1000
|
||||
durationSec: 10
|
||||
rateEps: 20
|
||||
mix(metadata): 0.2
|
||||
seed: (random)
|
||||
dryRun: true
|
||||
maxConnections: 250
|
||||
connectConcurrency: 25
|
||||
maxInflight: 300
|
||||
DRY_RUN enabled: no relay connections or publish calls will be made.
|
||||
JSON report written: /app/reports/load-test/load-report-2026-02-23.json
|
||||
Markdown report written: /app/reports/load-test/load-test-report-2026-02-23.md
|
||||
|
||||
Executed prompt: src/prompts/daily/load-test-agent.md
|
||||
@@ -0,0 +1,17 @@
|
||||
---
|
||||
agent: load-test-agent
|
||||
cadence: daily
|
||||
run-start: 2026-02-23T01:05:34Z
|
||||
---
|
||||
|
||||
# Todo — load-test-agent
|
||||
|
||||
## Pending tasks
|
||||
- None (routine maintenance run)
|
||||
|
||||
## Completed tasks
|
||||
- [x] Run load test harness in dry-run mode
|
||||
- [x] Generate performance reports
|
||||
- [x] Verify no regressions in harness execution
|
||||
|
||||
Executed prompt: src/prompts/daily/load-test-agent.md
|
||||
@@ -0,0 +1,16 @@
|
||||
---
|
||||
agent: load-test-agent
|
||||
status: completed
|
||||
run-start: 2026-02-23T01:05:34Z
|
||||
cadence: daily
|
||||
platform: linux
|
||||
---
|
||||
|
||||
# Task Completed
|
||||
|
||||
Agent `load-test-agent` completed successfully.
|
||||
|
||||
**Learnings:**
|
||||
- Load test harness verified in dry-run mode (v0.1.0).
|
||||
- Use `--dry-run` to verify script integrity without network access.
|
||||
- Always set `RELAY_URL` even for dry-run.
|
||||
Reference in new issue
Block a user