// 启动命令式会出apache现版本相关内容
$ This is ApacheBench, Version 2.3 <$Revision: 1663405$>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/// 测试进程
Benchmarking local-newapi.ddicar.com (be patient).....done
// 下面是测试结果
Server Software: nginx // 被测试的服务器所用的软件信息
Server Hostname: local-newapi.ddicar.com //被测主机名
Server Port: 4080//被测主机端口
Document Path: /v/api/someting //请求的具体路径
Document Length: 49476 bytes //请求的具体文件
Concurrency Level: 6//并发数
Time taken for tests: 35.678 seconds //测试总时间
Complete requests: 100//测试总请求数
Failed requests: 0//测试失败请求数
Total transferred: 4993300 bytes //总共传输的数据量
HTML transferred: 4947600 bytes //html文件的大小,等于Document Length*Complete requests
Requests per second: 2.80 [#/sec] (mean) //平均(mean)每秒完成的请求数
Time per request: 2140.651 [ms] (mean) //从用户角度看,完成一个请求所需要的时间
Time per request: 356.775 [ms] (mean,) // 服务器完成一个请求的时间
Transfer rate: 136.68 [Kbytes/sec] received ////网络传输速度// //第一个Time per request细分和统计
网络链接(Connect)
系统处理(Processing)
等待(Waiting)
min表示最小值
mean表示平均值
[+/-sd]表示标准差(均方差)数值越大表示数据越分散,系统响应时间越不稳定
median中位数
max最大值
Total从整个请求需要时间角度统计,最慢的一个请求花费了2929ms
Connection Times (ms)
min mean[+/-sd] median max
Connect: 000.202
Processing: 14282113296.420692929
Waiting: 14272097294.220572923
Total: 14282113296.420702929
Percentage of the requests served within a certain time (ms) //50%的请求都是在2070ms内完成的50% 207066% 217575% 227680% 228890% 248295% 281798% 291799% 2929100% 2929 (longest request)