压测结果事例:
Server Software: nginx //服务器软件名称
Server Hostname: www.91cnm.com //服务器主机名
Server Port: 80 服务器端口
Document Path: / //测试路径url
Document Length: 10639 bytes //测试的url返回的文档大小
Concurrency Level: 10 //并发数
Time taken for tests: 40.156 seconds //压测消耗总时间
Complete requests: 1000 //请求数量
Failed requests: 0 //失败请求数
Write errors: 0 //网络连接写入错误数
Total transferred: 10777000 bytes //整个测试中的网络传输量
HTML transferred: 10639000 bytes //整个测试中的HTML内容传输量
Requests per second: 24.90 [#/sec] (mean) //每秒的事务数 = 总事务数 / 执行时间
Time per request: 401.563 [ms] (mean) //平均事务的响应时间 = 执行时间 / 总事务数 (mean代表平均)
Time per request: 40.156 [ms] (mean, across all concurrent requests) //每个请求实际运行时间的平均值
Transfer rate: 262.09 [Kbytes/sec] received //平均每秒网络上的流量
//min(最小值),mean(平均值),[+/-sd](方差),median(中位数),max(最大值)
Connection Times (ms)
min mean[+/-sd] median max
Connect: 162 184 116.3 173 1648
Processing: 163 212 157.2 175 1214
Waiting: 162 177 34.8 173 724
Total: 325 395 195.5 348 1906
//Connect :socket链路建立消耗,代表网络状况好坏
//Processing :写入缓冲区消耗+链路消耗+服务端消耗
//Waiting :写入缓冲区消耗+链路消耗+服务端消耗+读取数据消耗
//Total :单个事务总时间
Percentage of the requests served within a certain time (ms)
50% 348
66% 351
75% 363
80% 364
90% 367
95% 551
98% 1197
99% 1374
100% 1906 (longest request)
//整个测试中所有请求的响应情况。在测试中每个请求都有一个响应时间,其中50%的用户响应时间小于348 毫秒,60% 的用户响应时间小于351 毫秒,最大的响应时间小于1906 毫秒