服务器性能测试 ab

来源:互联网 发布:遗传算法 优缺 编辑:程序博客网 时间:2024/04/27 13:23

ab 是 apache benchmark test 


如何使用它?


sudo apt-get install apache2-utils


 ab -c 10 -n 100 'dev-www.rakuten.co.id/cart'
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/


Benchmarking dev-www.rakuten.co.id (be patient).....done




Server Software:        nginx/1.1.19
Server Hostname:        dev-www.rakuten.co.id
Server Port:            80


Document Path:          /cart
Document Length:        79518 bytes


Concurrency Level:      10
Time taken for tests:   19.243 seconds
Complete requests:      100
Failed requests:        0
Write errors:           0
Total transferred:      8013200 bytes
HTML transferred:       7951800 bytes
Requests per second:    5.20 [#/sec] (mean)
Time per request:       1924.335 [ms] (mean)
Time per request:       192.433 [ms] (mean, across all concurrent requests)
Transfer rate:          406.65 [Kbytes/sec] received


Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    1   1.8      0       7
Processing:   250 1906 191.8   1900    2146
Waiting:      245 1744 175.0   1739    2013
Total:        251 1907 192.5   1900    2153


Percentage of the requests served within a certain time (ms)
  50%   1900
  66%   1909
  75%   1966
  80%   1966
  90%   2015
  95%   2153
  98%   2153
  99%   2153
 100%   2153 (longest request)

原创粉丝点击