Apache Benchmark (AB) apressure test software provided by a Pache
First we install the environment first
sudo apt-get install apache2-utils
Usage: ab [options][http[s]://]hostname[:p ort]/path// -n number of requests -c concurrency url Target pressure measurement address ab -n100 -c10 // pressure test for Baidu this is apachebench, version 2.3 < $Revision: 1528965 $>copyright 1996 adam twiss, zeus technology ltd, http://www.zeustech.net/licensed to the apache software foundation, http://www.apache.org/benchmarking www.baidu.com (be patient) ... doneServer Software: BWS/1.1 // Server server hostname: www.baidu.comserver port: 80document path: /document length: 96792 bytesconcurrency level: 10time taken for tests: 30.740 secondscomplete requests: 100failed requests: 90 (Connect: 0, receive: 0, length: 90, exceptions: 0) total transferred: 9777233 byteshtml transferred: 9677750 bytesrequests per second: 3.25 [#/sec] (mean) //number of requests per second time per request: 3074.004 [ms] (mean) //time as short as possible time per request: 307.400 [ms] (mean, across all concurrent requests) transfer rate: 310.61 [kbytes/sec] receivedconnection times (MS) min mean[+/-sd] median maxconnect: 21 31 7.1 30 52processing: 82 468 3057.2 123 30717Waiting: 21 40 30.6 35 321total: 114 499 3056.3 157 30740Percentage of the requests served within a certain time (MS) 50% 157 66% 172 75% 185 80% 218 90% 341 95% 520 98% 629 99% 30740 100 % 30740 (Longest request)
Unbuntu under the AB Test tool installation and use