Apache Benchmark(ab) 性能测试的简单工具
# ab -k -n 1000 -c 100
http://jenkins.cie.org/jenkins/job/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 jenkins.cie.org (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests
Completed 800 requests
Completed 900 requests
Completed 1000 requests
Finished 1000 requests //并发100,共执行1000次,10轮
Server Software: Apache-Coyote/1.1
Server Hostname: jenkins.cie.org
Server Port: 80
Document Path: /jenkins/job/
Document Length: 21410 bytes
Concurrency Level: 100
Time taken for tests: 1.446 seconds //执行1000次所花时间
Complete requests: 1000 //成功次数
Failed requests: 0 //失败次数
Write errors: 0
Keep-Alive requests: 0
Total transferred: 22397000 bytes //1000次共传输数据
HTML transferred: 21418022 bytes //
Requests per second: 691.36 [#/sec] (mean) //服务器每秒处理691.36个请求
Time per request: 144.642 [ms] (mean) //并发的100次请求花的时间
Time per request: 1.446 [ms] (mean, across all concurrent requests) //每个请求花的时间
Transfer rate: 15121.52 [Kbytes/sec] received //测试时网络传输速率
Connection Times (ms)
min mean [+/-sd] median max
Connect: 0 0 0.6 0 3 //一个请求连接
Processing: 14 140 77.4 126 603 //一个请求发送数据
Waiting: 3 49 48.5 37 341 //一个请求接收数据
Total: 14 140 77.3 128 603 //一个请求花费时间总记
Percentage of the requests served within a certain time (ms)
50% 128 //50%的请求是在128ms以下 (消耗时间)
66% 159 // 66%的请求在159ms以下
75% 186
80% 200
90% 239
95% 281
98% 354
99% 374
100% 603 (longest request) //最大 603ms