From 9f86e244024a633ce331c8c99839943c34b2d926 Mon Sep 17 00:00:00 2001 From: floor-licker Date: Fri, 30 Jan 2026 23:04:25 -0500 Subject: [PATCH] docs(readme): add ws_hot_path benchmark command --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index db5f91c..3171e3d 100644 --- a/README.md +++ b/README.md @@ -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.7–4.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.