|
[root@db02 application]# ab -n 3000 -c 100 http://10.0.0.111/test_info.php
# 3000次会话请求、100并发数Server Software: nginx/1.6.3
Server Hostname: 10.0.0.111Server Port: 80Document Path: /test_info.php #测试页面Document Length: 83921 bytes #页面大小Concurrency Level: 100 #100并发数Time taken for tests: 7.973 seconds #整个测试持续时间Complete requests: 3000 #完成的请求总数Failed requests: 302 #失败的请求次数
(Connect: 0, Receive: 0, Length: 302, Exceptions: 0)Write errors: 0Total transferred: 252203675 bytes #整个过程的网络传输量HTML transferred: 251762675 bytes #HTML内容传输量Requests per second: 376.25 [#/sec] (mean) #吞吐量,每秒能够处理的并发数Time per request: 265.779 [ms] (mean) #平均事务响应时间Time per request: 2.658 [ms] (mean, across all concurrent requests)
#每个连接请求实际运行时间Transfer rate: 30889.42 [Kbytes/sec] received
#平均每秒网络上的流量,可以帮助排除是否存在网络流量大导致响应时间延长的问题Connection Times (ms) min mean[+/-sd] median maxConnect: 0 1 3.2 0 21Processing: 14 261 32.2 261 331Waiting: 2 260 32.4 260 331Total: 29 261 29.9 261 331Percentage of the requests served within a certain time (ms) 50% 261 66% 268 75% 273 80% 276 90% 287 #90%的请求任务在287ms内完成 95% 303 98% 315 99% 322 100% 331 (longest request)
|
|
|