How to call API, concurrently to do stress test

how php should call the same API? concurrently Generally speaking, how do people realize it? If you want to pass concurrent requests, do a stress test

Php
Mar.23,2021

use apache's ab test , if you install apache, it should come with it, if not installed, it is not difficult to install. Specifically refer to here: https://www.cnblogs.com/lishu.


generally use ab for stress testing
db-C100-n10000 c refers to the number of concurrent n refers to the number of requests
mainly concerned about several indicators
QPS throughput this value is better
TPR response when the number of concurrency is equal. The smaller the value of time, the better

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e3dc24-42d0e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e3dc24-42d0e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?