#Thanks, I took the optimizations amd
1 messages · Page 1 of 1 (latest)
I've updated the script after @lethal pier pointed out that I was including over head in the Rust benchmark that I wasn't in the Python, here are the new numbers on my machine:
High throughput:
┏━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Library ┃ Protocol ┃ Strategy ┃ Mean req/s ┃ SEM % ┃ ┃
┡━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ niquests │ HTTP/2+ │ async │ 760.1 │ 8.2% │ ████████████████████ │
│ reqwest │ HTTP/2 │ async │ 683.8 │ 2.9% │ █████████████████░ │
│ httpx │ HTTP/2 │ async │ 581.6 │ 2.0% │ ███████████████ │
│ aiohttp │ HTTP/1.1 │ async │ 343.4 │ 5.4% │ █████████ │
│ niquests │ HTTP/2+ │ multiplexed │ 287.8 │ 4.9% │ ███████ │
│ urllib3 │ HTTP/1.1 │ threaded (6w) │ 275.2 │ 4.8% │ ███████ │
│ httpx │ HTTP/1.1 │ threaded (6w) │ 261.2 │ 5.0% │ ██████ │
│ niquests │ HTTP/2+ │ threaded (6w) │ 248.5 │ 2.7% │ ██████ │
│ httpx │ HTTP/2 │ threaded (6w) │ 236.7 │ 4.9% │ ██████ │
│ httpx │ HTTP/1.1 │ async │ 195.4 │ 4.5% │ █████ │
│ stdlib │ HTTP/1.1 │ threaded (6w) │ 64.9 │ 6.1% │ █ │
└──────────┴──────────┴───────────────┴────────────┴───────┴──────────────────────────┘