- 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 |
||
|---|---|---|
| .. | ||
| connection-scaling.js | ||
| websocket-simple.js | ||
| websocket-test.js | ||