Ab

From LQWiki
Jump to navigation Jump to search

ab - Benchmarks your Apache server by sending requests to it. For apache2, the program is named ab2.

Example:

ab2 http://www.linuxquestions.org/
This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 2006 The Apache Software Foundation, http://www.apache.org/

Benchmarking www.linuxquestions.org (be patient).....done


Server Software:        nginx/0.6.31
Server Hostname:        www.linuxquestions.org
Server Port:            80

Document Path:          /
Document Length:        37569 bytes

Concurrency Level:      1
Time taken for tests:   1.12974 seconds
Complete requests:      1
Failed requests:        0
Write errors:           0
Total transferred:      38097 bytes
HTML transferred:       37569 bytes
Requests per second:    0.99 [#/sec] (mean)
Time per request:       1012.974 [ms] (mean)
Time per request:       1012.974 [ms] (mean, across all concurrent requests)
Transfer rate:          36.53 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:      173  173   0.0    173     173
Processing:   839  839   0.0    839     839
Waiting:      250  250   0.0    250     250
Total:       1012 1012   0.0   1012    1012