Return-Path: X-Original-To: apmail-httpd-cvs-archive@www.apache.org Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2EF7C911D for ; Sat, 31 Mar 2012 12:40:03 +0000 (UTC) Received: (qmail 96377 invoked by uid 500); 31 Mar 2012 12:40:02 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 96317 invoked by uid 500); 31 Mar 2012 12:40:02 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 96310 invoked by uid 99); 31 Mar 2012 12:40:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 31 Mar 2012 12:40:02 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 31 Mar 2012 12:39:59 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 35FEE238890B; Sat, 31 Mar 2012 12:39:38 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1307790 - /httpd/httpd/trunk/docs/manual/programs/ab.xml Date: Sat, 31 Mar 2012 12:39:38 -0000 To: cvs@httpd.apache.org From: druggeri@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120331123938.35FEE238890B@eris.apache.org> Author: druggeri Date: Sat Mar 31 12:39:37 2012 New Revision: 1307790 URL: http://svn.apache.org/viewvc?rev=1307790&view=rev Log: Add example ab output Modified: httpd/httpd/trunk/docs/manual/programs/ab.xml Modified: httpd/httpd/trunk/docs/manual/programs/ab.xml URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/programs/ab.xml?rev=1307790&r1=1307789&r2=1307790&view=diff ============================================================================== --- httpd/httpd/trunk/docs/manual/programs/ab.xml (original) +++ httpd/httpd/trunk/docs/manual/programs/ab.xml Sat Mar 31 12:39:37 2012 @@ -216,4 +216,129 @@ would measure the ab performance rather than the server's.

+
Example Output + +

Sample output is provided here.

+
Server Software:        Apache/2.2.17
+Server Hostname:        testserver.com
+Server Port:            80
+
+Document Path:          /index.html
+Document Length:        787 bytes
+
+Concurrency Level:      5
+Time taken for tests:   0.436 seconds
+Complete requests:      1000
+Failed requests:        0
+Write errors:           0
+Total transferred:      1026000 bytes
+HTML transferred:       787000 bytes
+Requests per second:    2292.26 [#/sec] (mean)
+Time per request:       2.181 [ms] (mean)
+Time per request:       0.436 [ms] (mean, across all concurrent requests)
+Transfer rate:          2296.74 [Kbytes/sec] received
+
+Connection Times (ms)
+              min  mean[+/-sd] median   max
+Connect:        0    1   0.4      1       3
+Processing:     1    1   0.4      1       3
+Waiting:        0    1   0.5      1       2
+Total:          2    2   0.1      2       3
+
+Percentage of the requests served within a certain time (ms)
+  50%      2
+  66%      2
+  75%      2
+  80%      2
+  90%      2
+  95%      2
+  98%      2
+  99%      3
+ 100%      3 (longest request)
+ +

The output may vary depending on the command line parameters given. + Possible output with a brief explanation of each element is listed below. +

+ +
+
Server Software
+
The value, if any, returned in the server HTTP header + of the first successful response. This includes all characters in the + header from beginning to the point a character with decimal value of 32 + (most notably: a space or CR/LF) is detected.
+ +
Server Hostname
+
The DNS or IP address given on the command line
+ +
Server Port
+
The port to which ab is connecting. If no port is given on the + command line, this will default to 80 for http and 443 for + https.
+ +
SSL/TLS Protocol
+
The protocol parameters negotiated between the client and server. + This will only be printed if SSL is used.
+ +
Document Path
+
The request URI parsed from the command line string.
+ +
Document Length
+
This is size in bytes of the first succesfully returning document. + If the document length changes during testing, the response is + considered an error.
+ +
Concurrency Level
+
The number of concurrent clients used during the test
+ +
Time taken for tests
+
This is the time taken from the moment the first socket connection + is created to the moment the last response is recieved
+ +
Complete requests
+
The number of successful responses recieved
+ +
Failed requests
+
The number of requests that were considered a failure. If the + number is greater than zero, another line will be printed showing the + numer of requests that failed due to connecting, reading, incorrect + content length, or exceptions.
+ +
Write errors
+
The number of errors that failed during write (broken pipe).
+ +
Non-2xx responses
+
The number of responses that were not in the 200 series of response + codes. If all responses were 200, this field is not printed.
+ +
Keep-Alive requests
+
The number of connections that resulted in Keep-Alive requests
+ +
Total body sent
+
If configured to send data as part of the test, this is the total + number of bytes sent during the tests. This field is omitted if the test + did not include a body to send.
+ +
Total transferred
+
The total number of bytes received from the server. This number + is essentially the number of bytes sent over the wire.
+ +
HTML transferred
+
The total number of document bytes received from the server. This + number excludes bytes received in HTTP headers
+ +
Requests per second
+
This is the number of requests per second. This value is the result + of dividing the number of requests by the total time taken
+ +
Time per request
+
The average time spent per request. The first value is calculated + with the formula concurrency * timetaken * 1000 / done + while the second value is calculated with the formula + timetaken * 1000 / done
+ +
Transfer rate
+
The rate of transfer as calculated by the formula + totalread / 1024 / timetaken
+
+