Pressure testing tools
TPS(Transactions Per Second)
TPS stands for Transactions Per Second, which is the number of transactions processed per second. A transaction refers to the process by which a client sends a request to the server and then the server reacts (full processing, i.e., the client initiates the request to get a response). The client starts timing when sending a request and ends the timing after receiving a response from the server to calculate the time used and the number of transactions completed, and finally use this information to evaluate the score. A transaction may correspond to multiple requests, and you can refer to the transaction operations of the database below.
QPS(Query Per Second)
QPS (Query Per Second), QPS is actually a common metric to measure throughput (throughput), that is, how many requests the server processes in one second - we usually refer to HTTP requests, obviously the higher the number, the higher the load on the server, the stronger the processing power. For reference, a program with simple business logic, including database access, can provide around 50 - 100 QPS when running a single core, i.e. it can process 50 - 100 requests per second.
Calculation relationship: QPS = concurrency amount / average response time; Concurrency = QPS * Average response time QPS = req/sec = requests/sec
Average Response Time (RT)
RT: Response time, the average processing time it takes to process a request. We also generally look at the average processing time for 90% of requests, as there may be extremes due to network conditions.
|