Joke Collection Website - Blessing messages - What is the difference between qps and tps?

What is the difference between qps and tps?

The difference is:

TPS: Short for the number of transactions per second, that is, the number of transactions per second. It is the unit of measurement of software test results. Transaction refers to the process that the client sends a request to the server and the server responds. The client starts counting when sending the request and ends counting after receiving the response from the server, thus calculating the time spent and the number of completed transactions.

QPS: the abbreviation of query times per second, which means the query rate per second. It is the number of queries that the server can make per second, and it is a measure of the traffic handled by a specific query server in a specified time.

Differences and understanding:

1, TPS is the number of transactions per second, including: "user requests the server", "the server handles itself internally" and "the server returns to the user". These three processes can be completed n times per second, and TPS is 3.

2.QPS is basically similar to TPS, except that a visit to a page forms a TPS; However, a page request may lead to multiple requests to the server, which can be included in QPS.

3. Generally, the performance of the evaluation system is measured by the number of technology transactions completed per second. The overall processing capacity of the system depends on the TPS value of the module with the lowest processing capacity.