view · edit · sidebar · attach · print · history

<< AIPSReparse | Index | Binadmin >>

Using Apachebench (ab) with oddb.org

  • Ruby 1.9.3 (without file lock)
$ /usr/sbin/ab -n 1000 -c 100 http://oddb.masa.org/
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 oddb.masa.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


Server Software:        Apache
Server Hostname:        oddb.masa.org
Server Port:            80

Document Path:          /
Document Length:        16400 bytes

Concurrency Level:      100
Time taken for tests:   64.124 seconds
Complete requests:      1000
Failed requests:        47
   (Connect: 0, Receive: 0, Length: 47, Exceptions: 0)
Write errors:           0
Total transferred:      16809282 bytes
HTML transferred:       16400282 bytes
Requests per second:    15.59 [#/sec] (mean)
Time per request:       6412.410 [ms] (mean)
Time per request:       64.124 [ms] (mean, across all concurrent requests)
Transfer rate:          255.99 [Kbytes/sec] received


Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.7      0       3
Processing:   397 6178 2781.0   5441   15572
Waiting:      397 6178 2781.1   5441   15572
Total:        399 6178 2780.8   5441   15572

Percentage of the requests served within a certain time (ms)
  50%   5441
  66%   5808
  75%   6412
  80%   6845
  90%  11368
  95%  13395
  98%  13984
  99%  14290
 100%  15572 (longest request)
  • status
masa@masa ~/work/oddb.org/doc/resources/downloads $ head status 
  2011-12-12 09:17:01: sessions: 1001 - threads:  113 - memory:  583MB 
  2011-12-12 09:16:56: sessions:  907 - threads:  113 - memory:  581MB 
  2011-12-12 09:16:50: sessions:  857 - threads:  113 - memory:  580MB 
  2011-12-12 09:16:45: sessions:  775 - threads:  113 - memory:  575MB 
  2011-12-12 09:16:40: sessions:  681 - threads:  113 - memory:  572MB 
  2011-12-12 09:16:35: sessions:  587 - threads:  113 - memory:  570MB 
  2011-12-12 09:16:30: sessions:  495 - threads:  112 - memory:  566MB 
  2011-12-12 09:16:25: sessions:  395 - threads:  112 - memory:  564MB 
  2011-12-12 09:16:20: sessions:  292 - threads:  111 - memory:  560MB 
  2011-12-12 09:16:15: sessions:  188 - threads:   98 - memory:  537MB 
  • Ruby 1.8.6 (without file lock)
masa@masa ~/work $ /usr/sbin/ab -n 1000 -c 100 http://oddb.masa.org/
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 oddb.masa.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


Server Software:        Apache
Server Hostname:        oddb.masa.org
Server Port:            80

Document Path:          /
Document Length:        16601 bytes

Concurrency Level:      100
Time taken for tests:   327.739 seconds
Complete requests:      1000
Failed requests:        0
Write errors:           0
Total transferred:      17010000 bytes
HTML transferred:       16601000 bytes
Requests per second:    3.05 [#/sec] (mean)
Time per request:       32773.897 [ms] (mean)
Time per request:       327.739 [ms] (mean, across all concurrent requests)
Transfer rate:          50.68 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.7      0       3
Processing: 13048 31763 8260.2  33763   46438
Waiting:    13048 31763 8260.2  33763   46438
Total:      13050 31763 8259.9  33763   46438

Percentage of the requests served within a certain time (ms)
  50%  33763
  66%  36289
  75%  37100
  80%  39324
  90%  42867
  95%  43521
  98%  44505
  99%  45430
 100%  46438 (longest request)
  • status
masa@masa ~/ywesee/oddb.org/doc/resources/downloads $ head status 
  2011-12-12 09:26:29: sessions: 1000 - threads:   92 - memory: 1757MB TM
  2011-12-12 09:26:23: sessions: 1000 - threads:   98 - memory: 1758MB T
  2011-12-12 09:26:17: sessions:  997 - threads:  104 - memory: 1755MB T
  2011-12-12 09:26:10: sessions:  988 - threads:  110 - memory: 1752MB T
  2011-12-12 09:26:04: sessions:  980 - threads:  111 - memory: 1744MB 
  2011-12-12 09:25:58: sessions:  968 - threads:  111 - memory: 1737MB 
  2011-12-12 09:25:53: sessions:  957 - threads:  111 - memory: 1730MB 
  2011-12-12 09:25:47: sessions:  944 - threads:  111 - memory: 1725MB 
  2011-12-12 09:25:41: sessions:  931 - threads:  111 - memory: 1717MB 
  2011-12-12 09:25:35: sessions:  917 - threads:  111 - memory: 1711MB 

Note

  • Ruby 1.9.3 is much faster and memory usage is more efficient
Ruby 1.9.3
Time per request:       64.124 [ms] (mean, across all concurrent requests)

Ruby 1.8.6
Time per request:       327.739 [ms] (mean, across all concurrent requests)
  • 5 times faster.
view · edit · sidebar · attach · print · history
Page last modified on February 27, 2012, at 08:49 AM