mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-04 11:52:25 +00:00
feat: add load-test script and fix lint exclusions
This adds `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/`. Also updates linting scripts (`scripts/check-hex.js`, `scripts/check-design-tokens.mjs`, `scripts/check-inline-styles.mjs`, `scripts/check-tailwind-colors.mjs`) to correctly ignore working directories (`bitvid-working-webtorrent`, `scripts/agent`), preventing CI failures. Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
7f848aa810
commit
eb4bc255d5
4 files changed
+17
-3
No files matched your search
@@ -32,7 +32,9 @@ const IGNORED_GLOBS = [
|
||||
'tests/visual/embed-layout.spec.ts',
|
||||
'ai/**',
|
||||
'**/*.ai',
|
||||
'releases/**'
|
||||
'releases/**',
|
||||
'bitvid-working-webtorrent/**',
|
||||
'scripts/agent/**'
|
||||
];
|
||||
|
||||
const gitArgs = [
|
||||
|
||||
Reference in new issue
Block a user