How are PV, TPS, QPS, RPS calculated?

PV (page view) refers to the number of times the page is viewed. For example, if you open a webpage, then the PV of this website is added once;
TPS (transactions per second) is the number of transactions per second, such as the execution of dml operations, then The corresponding tps will increase;
QPS (queries per second) refers to the number of queries per second, such as the execution of a select operation, the corresponding qps will increase.
RPS (requests per second) = concurrent number/average response time

Different application systems tps and qps are not comparable.
For example:
Application A, each select query needs 1ms, if a connection is executed, it will be executed continuously, 1000 times within 1S, which is 1000qps
application B, each select query needs 100ms, if a connection, it will always be executed Execution, 10 times within 1S, which is 10qps

The above two qps of different systems cannot be compared, and it is impossible to say which is better and which is bad.

Meeting business requirements is king.

Guess you like

Origin blog.csdn.net/weixin_44322234/article/details/114264781