Answer the question
In order to leave comments, you need to log in
What is the argument limit in asyncio sleep (RPS test based on the leaky bucket algorithm)?
When writing an RPS (requests per second) test based on the leaky bucket algorithm in Python + Asyncio + Aiohttp, the client encountered the fact that when the value of the asyncio.sleep argument is less than 1/60, an incorrect number of requests sent per minute appears (more than 100 thousand ), it seems that asyncio.sleep considers the value of the argument equal to 0 and starts sending requests with a higher rate.
Details of the question with the code at the link
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question