Bug 48594 - Inaccurate requests per second in html output of apachebench
Summary: Inaccurate requests per second in html output of apachebench
Status: RESOLVED FIXED
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: support (show other bugs)
Version: 2.5-HEAD
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords: FixedInTrunk
Depends on:
Blocks:
 
Reported: 2010-01-21 15:09 UTC by ray+apache
Modified: 2012-02-26 17:01 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ray+apache 2010-01-21 15:09:33 UTC
Overview:
Running apache bench with the -w option produces an inaccurate requests per second value. I suspect that it's a simple misplaced decimal.

E.X.
Steps to Reproduce (with option w):
% /usr/sbin/ab -c 2 -n 10 -w http://www.apache.org/ | lynx -dump -stdin

Actual Output:
   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/

   ..done

       Server Software:     Apache/2.3.4
       Server Hostname:     www.apache.org
         Server Port:       80
        Document Path:      /
       Document Length:     30382 bytes
      Concurrency Level:    2
    Time taken for tests:   5.048 seconds
      Complete requests:    10
       Failed requests:     0
      Total transferred:    307790 bytes
      HTML transferred:     303820 bytes
     Requests per second:   1980.91
        Transfer rate:      60970.49 kb/s received
            Connnection Times (ms)
                   min      avg      max
    Connect:   159          167  177
   Processing: 821          842  846
     Total:    980          1009 1023

Steps to Reproduce (without option w):
% /usr/sbin/ab -c 2 -n 10 http://www.apache.org/

Actual output:                  
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 www.apache.org (be patient).....done


Server Software:        Apache/2.3.4
Server Hostname:        www.apache.org
Server Port:            80

Document Path:          /
Document Length:        30382 bytes

Concurrency Level:      2
Time taken for tests:   4.983 seconds
Complete requests:      10
Failed requests:        0
Write errors:           0
Total transferred:      307790 bytes
HTML transferred:       303820 bytes
Requests per second:    2.01 [#/sec] (mean)
Time per request:       996.578 [ms] (mean)
Time per request:       498.289 [ms] (mean, across all concurrent requests)
Transfer rate:          60.32 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:      159  164   7.4    161     178
Processing:   817  832   8.5    837     839
Waiting:      163  170   6.7    169     182
Total:        976  997  13.6    996    1017

Percentage of the requests served within a certain time (ms)
  50%    996
  66%    999
  75%    999
  80%   1016
  90%   1017
  95%   1017
  98%   1017
  99%   1017
 100%   1017 (longest request)
Comment 1 Stefan Fritsch 2010-01-24 12:59:20 UTC
Fixed in r902642
Comment 2 Stefan Fritsch 2012-02-26 17:01:52 UTC
fixed in 2.4.1