mirror of
https://github.com/floor-licker/polyfill-rs.git
synced 2026-08-09 10:47:47 +00:00
docs(readme): mention WS hot-path benchmark
This commit is contained in:
@@ -64,6 +64,7 @@ End-to-end performance with Polymarket's API, including network latency, JSON pa
|
||||
| **Order Book Updates (1000 ops)** | 159.6 µs ± 32 µs | 6,260 updates/sec, zero-allocation |
|
||||
| **Spread/Mid Calculations** | 70 ns ± 77 ns | 14.3M ops/sec, optimized BTreeMap |
|
||||
| **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`) |
|
||||
|
||||
**Key Performance Optimizations:**
|
||||
|
||||
|
||||
Reference in New Issue
Block a user