Home  >  Article  >  What is the difference between tps and qps? How to understand

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

青灯夜游
青灯夜游Original
2021-05-26 16:23:0221673browse

Difference: QPS refers to "query rate per second"; while TPS refers to "number of transactions/second". Understanding: Tps refers to the number of transactions per second. One visit to a page forms one Tps; and one page request may generate multiple requests to the server. These requests by the server can be counted in "Qps".

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

The operating environment of this tutorial: Windows 7 system, Dell G3 computer.

QPS: Queries Per Second means "query rate per second", which is the number of queries a server can respond to per second. It is a measure of the amount of traffic a specific query server handles within a specified time. .

TPS: is the abbreviation of TransactionsPerSecond, which is the number of transactions/second. It is a unit of measurement for software testing results. A transaction refers to the process in which a client sends a request to the server and the server responds. The client starts timing when it sends a request and ends when it receives the server's response 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) User request server

2) Server's own Internal processing

3) The server returns these three processes to the user

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

2. Qps Basically similar to Tps, but the difference is that a visit to a page forms a Tps; but a page request may generate multiple requests to the server, and these requests by the server can be counted in "Qps".

For example: accessing a page will request the server 3 times. One visit will generate a "T" and 3 "Q"

For more related knowledge, please visit FAQ Column!

The above is the detailed content of What is the difference between tps and qps? How to understand. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn