System throughput, TPS (QPS), user concurrency, performance test concepts and formulas

PS: The following are the main concepts and calculation formulas of the performance test, record them:

one. System swallow measurement elements:

  The throughput (pressure capacity) of a system is closely related to the CPU consumption of requests, external interfaces, IO, and so on. The higher the CPU consumption of a single reqeust, the slower the external system interface and IO are affected. The lower the system throughput, the higher the vice versa.

Several important parameters of system throughput: QPS (TPS), concurrent number, response time

        QPS (TPS): number of requests/transactions per second

        Concurrency: The number of requests/transactions processed by the system at the same time

        Response time: generally take the average response time

(Many people often confuse concurrency with TPS understanding)

After understanding the meaning of the above three elements, you can calculate the relationship between them:
QPS (TPS) = number of concurrent / average response time or number of concurrent = QPS * average response time


        A typical work check-in system, going to work at 8:00 in the morning. During the 30 minutes from 7:30 to 8:00, the user will log in to the sign-in system to sign in. The company has 1,000 employees, and the average time for each employee to log in to the system is 5 minutes. It can be calculated by the following method.
QPS = 1000/(30*60) Transactions/sec
Average Response Time = 5*60 Seconds
Concurrency = QPS* Average Response Time = 1000/(30*60)*(5*60)=166.7

PS: The following are the main concepts and calculation formulas of the performance test, record them:

one. System swallow measurement elements:

  The throughput (pressure capacity) of a system is closely related to the CPU consumption of requests, external interfaces, IO, and so on. The higher the CPU consumption of a single reqeust, the slower the external system interface and IO are affected. The lower the system throughput, the higher the vice versa.

Several important parameters of system throughput: QPS (TPS), concurrent number, response time

        QPS (TPS): number of requests/transactions per second

        Concurrency: The number of requests/transactions processed by the system at the same time

        Response time: generally take the average response time

(Many people often confuse concurrency with TPS understanding)

After understanding the meaning of the above three elements, you can calculate the relationship between them:
QPS (TPS) = number of concurrent / average response time or number of concurrent = QPS * average response time


        A typical work check-in system, going to work at 8:00 in the morning. During the 30 minutes from 7:30 to 8:00, the user will log in to the sign-in system to sign in. The company has 1,000 employees, and the average time for each employee to log in to the system is 5 minutes. It can be calculated by the following method.
QPS = 1000/(30*60) Transactions/sec
Average Response Time = 5*60 Seconds
Concurrency = QPS* Average Response Time = 1000/(30*60)*(5*60)=166.7

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325851439&siteId=291194637