Niquests is an advanced HTTP client with, on its core urllib3.future. It is capable of serving a wide range of features, and is actually leading the f

Search code, repositories, users, issues, pull requests...

submited by
Style Pass
2024-05-07 07:00:02

Niquests is an advanced HTTP client with, on its core urllib3.future. It is capable of serving a wide range of features, and is actually leading the field in terms of features.

in the given matrix of client, aiohttp is the only one who benefit from built llhttp native C extension to provide a nearly unchallengeable speed. The only way to fairly compare with aiohttp is by bringing the cores of requests, httpx and niquests so that the stack/complexity execution and features served are comparable.

Spawn 10 tasks, each task share the same "pool" of connection, and each task fetch 100 responses. The responses are collected through the main task. Each sub-task have a time counter along with the main one.

We include, in spent time, the construction of the ssl context with the system CAs. The response count must be exactly 1000, and each response must have its (bytes) content loaded.

Each script must run exactly 60 times, and data must be aggregated afterward. The average delays are kept. A reasonable delay of 60 seconds must be respected between each script to avoid penalizing the performance due to CPU throttling.

Leave a Comment