Skip to main content

nb_http_client

Project description

nb_http_client 是 python 史上性能最强的http客户端

测试比较环境为 win10 + python3.7 + 2.5ghz主频

e5 2678v3 主频很差,cpu架构很落后,如果用最新的13代i9,测试指标有可能可以提高100%。
但是不同的请求客户端都是跑在同一个2.5ghz主频上,所以是公平的比较。

不同的请求客户端,请求同一个server服务端,测试结果

线程池 + requests  390次每秒
线程池 + requests 同一个session 420次每秒
线程池 + urllib3    1070次每秒
线程池 + nb_http_client  2200次每秒
asyncio + aiohttp    1480次每秒
线程池 + pycurl 600次每秒

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nb_http_client-0.6.tar.gz (2.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page