Benchmark Disk IO, Network, HTTP


Disk IO

iozone

 apt-get install iozone3
 cd /web
 iozone -a -g 4G > iozone-`hostname`.out

bonnie++

 $ sudo apt-get install bonnie++
 $ bonnie++ -d /web -n 256 | tee /var/tmp/bonnie-`hostname`.out
 $ tail -1 /var/tmp/bonnie-`hostname`.out |bon_csv2txt 
 Version      1.96   ------Sequential Output------ --Sequential Input- --Random-
                     -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
 Machine        Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP
 udev02           8G   537  98 95240  23 42032  29  1470 100 112227  35  5048 147
 Latency             36399us    1949ms    8786ms   17908us     183ms   51327us
                     ------Sequential Create------ --------Random Create--------
                     -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
 files:max:min        /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
 udev02          256  1153   8  3886  28   104   4   806   5  4927  16  1654   6
 Latency               408ms     158ms   24762ms     390ms     240ms     906ms

HTTP

 Apache Benchmark 
 prod@qaclient02:~$ ab -n 10000 -c 100  http://10.179.111.20/default/static01.html 
 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 10.179.111.20 (be patient)
 Completed 1000 requests
 Completed 2000 requests
 Completed 3000 requests
 Completed 4000 requests
 Completed 5000 requests
 Completed 6000 requests
 Completed 7000 requests
 Completed 8000 requests
 Completed 9000 requests
 Completed 10000 requests
 Finished 10000 requests
 Server Software:    Apache/2.2.14
 Server Hostname:    10.179.111.20
 Server Port:      80
 Document Path:      /default/static01.html
 Document Length:    300 bytes
 Concurrency Level:    100
 Time taken for tests:   2.461 seconds
 Complete requests:    10000
 Failed requests:    0
 Write errors:       0
 Non-2xx responses:    10000
 Total transferred:    5030000 bytes
 HTML transferred:     3000000 bytes
 Requests per second:  4062.92 [#/sec] (mean)
 Time per request:     24.613 [ms] (mean)
 Time per request:     0.246 [ms] (mean, across all concurrent requests)
 Transfer rate:      1995.75 [Kbytes/sec] received
 Connection Times (ms)
         min  mean[+/-sd] median   max
 Connect:    0  0   0.2    0    13
 Processing:   0  1   0.2    0    14
 Waiting:    0  0   0.2    0    14
 Total:      0  1   0.3    1    14
 ERROR: The median and mean for the processing time are more than twice the standard
      deviation apart. These results are NOT reliable.
 Percentage of the requests served within a certain time (ms)
   50%    1
   66%    1
   75%    1
   80%    1
   90%    1
   95%    1
   98%    1
   99%    1
  100%   14 (longest request)

Network

Advertisement