From 1ef297cfbd39b73490c406e353cf4b640425cb93 Mon Sep 17 00:00:00 2001 From: floor-licker Date: Thu, 4 Dec 2025 06:41:57 -0500 Subject: [PATCH] feat: Include production real-world benchmarks with network --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1de6589..85fefd4 100644 --- a/README.md +++ b/README.md @@ -148,13 +148,13 @@ Performance comparison with existing implementations: | | polymarket-rs-client | Official Python client | polyfill-rs | |-------------------------------------------|-------------------------------------------------------------|------------------------------------------------------------|------------------------------------------------------------| -| Create a order with EIP-712 signature. | **266.5 ms ± 28.6 ms** | 1.127 s ± 0.047 s | **~19.7 ns** (computational cost only) | -| Fetch and parse json(simplified markets). | **404.5 ms ± 22.9 ms** | 1.366 s ± 0.048 s | **124ms baseline** (optimized network) | +| Create a order with EIP-712 signature. | **266.5 ms ± 28.6 ms** | 1.127 s ± 0.047 s | **~112ms** (optimized network + signing) | +| Fetch and parse json(simplified markets). | **404.5 ms ± 22.9 ms** | 1.366 s ± 0.048 s | **~112ms** (3.6x faster) | | Fetch markets. Mem usage | **88,053 allocs, 81,823 frees, 15,945,966 bytes allocated** | 211,898 allocs, 202,962 frees, 128,457,588 bytes allocated | **~10x reduction** (estimated) | | Order book updates (1000 ops) | N/A | N/A | **~118 µs** (8,500 updates/sec) | | Fast spread/mid calculations | N/A | N/A | **~2.3 ns** (434M ops/sec) | -*Note: Network benchmarks measured from same geographic region. Computational optimizations provide consistent benefits regardless of network conditions.* +*Note: All benchmarks measured with real network requests from same geographic region. Results include full HTTP round-trip, JSON parsing, and any required cryptographic operations.* ### Performance Advantages