Select Page

Benchmarking your LAMP server

Benchmarking your LAMP server

Some real examples

time /usr/sbin/ab2 -n 500 -c 30 http://www.waltercedric.com
This will make 500 requests on them and hammering localhost for 30 seconds

After tuningBefore tuning
Benchmarking www.waltercedric.com Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Finished 500 requests
Server Software:        NOYB
Server Hostname:        www.waltercedric.com
Server Port:            80
Document Path:          /index.php
Document Length:        45532 bytes
Concurrency Level:      30
Time taken for tests:   38.576375 seconds
Complete requests:      500
Failed requests:        19 
   (Connect: 0, Length: 19, Exceptions: 0)
Write errors:           0
Total transferred:      23000106 bytes
HTML transferred:       22762106 bytes
Requests per second:    12.96 [#/sec] (mean)
Time per request:       2314.582 [ms] (mean)
Time per request:       77.153 [ms] (mean, across all concurrent requests)
Transfer rate:          582.25 [Kbytes/sec] received
Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    8  36.9      0     207
Processing:   394 2239 345.3   2237    6223
Waiting:      379 2197 340.9   2190    6173
Total:        397 2247 344.2   2239    6223
Percentage of the requests served within a certain time (ms)
  50%   2239
  66%   2294
  75%   2327
  80%   2357
  90%   2457
  95%   2560
  98%   2973
  99%   3341
100%   6223 (longest request)
real    0m38.617s
user    0m0.024s
sys     0m0.240s

Benchmarking www.waltercedric.com
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Finished 500 requests

Server Software:        NOYB
Server Hostname:        www.waltercedric.com
Server Port:            80

Document Path:          /index.php
Document Length:        45532 bytes

Concurrency Level:      30
Time taken for tests:   108.897481 seconds
Complete requests:      500
Failed requests:        19
   (Connect: 0, Length: 19, Exceptions: 0)
Write errors:           0
Total transferred:      23000106 bytes
HTML transferred:     23000106 bytes
Requests per second:    4.59 [#/sec] (mean)
Time per request:       6533.849 [ms] (mean)
Time per request:       217.795 [ms] (mean, across all concurrent requests)
Transfer rate:          178.41 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0  114 478.9      0    2276
Processing:   336 6186 1665.2   6108   16189
Waiting:    -5148 5982 1982.8   6066   16009
Total:        391 6301 1580.2   6120   17093

Percentage of the requests served within a certain time (ms)
  50%   6120
  66%   6453
  75%   6778
  80%   7046
  90%   7861
  95%   8516
  98%  10110
  99%  12418
100%  17093 (longest request)

real    1m48.905s
user    0m0.024s
sys     0m0.152s

 

time /usr/sbin/ab2 -kc 10 -t 30 http://www.waltercedric.com
This will open 10 connections, using Keep-Alive on them and hammering localhost for 30 seconds

About The Author

I worked with various Insurances companies across Switzerland on online applications handling billion premium volumes. I love to continuously spark my creativity in many different and challenging open-source projects fueled by my great passion for innovation and blockchain technology.In my technical role as a senior software engineer and Blockchain consultant, I help to define and implement innovative solutions in the scope of both blockchain and traditional products, solutions, and services. I can support the full spectrum of software development activities, starting from analyzing ideas and business cases and up to the production deployment of the solutions.I'm the Founder and CEO of Disruptr GmbH.

Categories