sim-dashboard: a local, dependency-free HTML page with the simulator graphs

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AeFqV96dVeBX94inzcgZKw
This commit is contained in:
2026-11-18 23:02:35 +01:00
co-authored by Claude Sonnet 5.5
parent 60a2df3f22
commit 210ba1b3e9
4 changed files with 406 additions and 2 deletions
+5 -2
View File
@@ -623,8 +623,11 @@ packet loss looks like above TCP), `-hostile` (an attacker with no validators),
**How large a network can it carry?** `scripts/sim-sweep.sh` runs growing
networks (8 regions, 3 seeds, 30 listings, 20 messages, 3 reports, 10% churn)
and records each as JSON in `.tmp/sim/`; `scripts/sim-report.mjs` turns them
into the tables behind the graphs. Result on a 16 GB, 8-core machine:
and records each as JSON in `.tmp/sim/` (run it only when you mean to: it takes
many minutes and several GB of memory). `node scripts/sim-report.mjs` turns the
runs into tables and `node scripts/sim-dashboard.mjs` builds
`.tmp/sim/dashboard.html`, a self-contained page with the graphs; nothing is
uploaded anywhere. Result on a 16 GB, 8-core machine:
| Nodes | As shipped (`--public` accepts 1000) | libp2p's own default limit (before the fix) |
|---|---|---|