docs(readme): add ws_hot_path benchmark command

This commit is contained in:
floor-licker
2026-01-30 23:04:25 -05:00
parent 25f268981f
commit 9f86e24402
+2
View File
@@ -66,6 +66,8 @@ End-to-end performance with Polymarket's API, including network latency, JSON pa
| **JSON Parsing (480KB)** | ~2.3 ms | SIMD-accelerated parsing (1.77x faster than serde_json) |
| **WS `book` hot path (decode + apply)** | ~0.28 µs / 2.01 µs / 7.70 µs | 1 / 16 / 64 levels-per-side, ~3.74.0x faster vs serde decode+apply (see `benches/ws_hot_path.rs`) |
Run the WS hot-path benchmark locally with `cargo bench --bench ws_hot_path`.
**Key Performance Optimizations:**
The 21.4% performance improvement comes from SIMD-accelerated JSON parsing (1.77x faster than serde_json), HTTP/2 tuning with 512KB stream windows optimized for 469KB payloads, integrated DNS caching, connection keep-alive, and buffer pooling to reduce allocation overhead.