sharded-gotify/benchmark/k6
Colin a4f41768ba
Optimize WebSocket implementation for millions of connections
- Implement sharded client storage (256 shards by default) to eliminate mutex contention
- Replace slice-based storage with map structure for O(1) token lookup
- Increase WebSocket buffer sizes (8192 bytes) and channel buffers (10 messages)
- Optimize Notify method with per-shard locking
- Add configuration options for shard count and buffer sizes
- Add comprehensive benchmarking setup with docker-compose
- Include k6 load testing scripts for WebSocket performance testing
- All existing tests pass with new sharded implementation
2025-11-20 14:43:33 -05:00
..
connection-scaling.js Optimize WebSocket implementation for millions of connections 2025-11-20 14:43:33 -05:00
websocket-simple.js Optimize WebSocket implementation for millions of connections 2025-11-20 14:43:33 -05:00
websocket-test.js Optimize WebSocket implementation for millions of connections 2025-11-20 14:43:33 -05:00