TPS&QPS

the difference:

TPS: Transactions Per Second, which means the number of transactions per second. A transaction can contain one operation or multiple operations. The definition of a specific transaction can be one interface, multiple interfaces, one business, or multiple businesses (business processes), and so on.

QPS: Queries Per Second, which means query rate per second, is the number of queries a server can respond per second (the number of SQL queries executed per second in the database). Obviously, this is not comprehensive enough to describe additions, deletions, and modifications, so, It is not recommended to use qps as a system performance indicator.

relationship:

If it is a pressure test on a query interface (single scene), and no other interfaces will be requested inside this interface, then tps=qps, otherwise, tps≠qps

If it is a capacity scenario, suppose n interfaces are all query interfaces, and this interface will not request other interfaces, qps=n*tps

Suggest:

QPS is Query Per Second, a concept in the database. The number of executions (query) per second has been extended to stress testing, but does not include insert, update, and delete operations. Therefore, it is not recommended to use qps to describe the overall system performance;

Guess you like

Origin blog.csdn.net/baidu_24752135/article/details/109391710