What is the difference between tps and qps? how to understand

Difference : QPS refers to "query rate per second"; and TPS refers to "transactions/second". Understanding: Tps is the number of transactions processed per second. One visit to a page forms one Tps ; and one page request may generate multiple requests to the server, and the server can count these requests into "Qps".

QPS : Queries Per Second means "query rate per second", which is the number of queries that a server can perform per second, and is a measure of how much traffic a specific query server handles within a specified time.

TPS : It is the abbreviation of TransactionsPerSecond, which is the number of transactions per second. It is a unit of measurement for software testing results. A transaction is a process in which a client sends a request to a server and the server responds. The client starts timing when it sends a request, and ends timing after receiving the server's response, so as to calculate the time used and the number of completed transactions.

My personal understanding is as follows:

1. Tps is the number of transactions processed per second, including

1) The user requests the server

2) The server's own internal processing

3) The server returns to the user

These three processes can complete N of these three processes per second, and Tps is N;

2. Qps is basically similar to Tps, but the difference is that one visit to a page forms one Tps; but one page request may generate multiple requests to the server, and the server can count these requests into "Qps" among.

For example: visiting a page will request the server 3 times, one visit will generate one "T" and three "Q"

For more relevant knowledge, please visit the FAQ column!

The above is the difference between tps and qps? For more details on how to understand, please pay attention to other related articles on php Chinese website!

Guess you like

Origin blog.csdn.net/liuqinhou/article/details/130831056