F
F
fleksss_pod_papicha2020-07-28 12:51:09
Python
fleksss_pod_papicha, 2020-07-28 12:51:09

Is this the normal speed of processing requests by the bot?

A question for people who understand bots. I wrote a bot for the VK group in python, the bot works through a long pool, and processes messages in separate threads, the processing speed and response to the first message is on average 0.22 seconds, the question is how bad / good / normal it is for the bot and what processing speed should be strived for ?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan Shumov, 2020-07-28
@inoise

It depends on the bot and what it does, and whether it's enough for a good user experience or not.

R
Roman Kitaev, 2020-07-28
@deliro

It depends.
For the answer "Hi, Vasyan" - a lot. For generation + return of the financial report - it is not enough.
For QPS 0.1 - enough, for QPS 1000 - too long.
It is not clear whether 0.22s is the time from the request from the client to the response from the server (that is, taking into account pings and other costs) or is it the time that generates.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question