Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 9th December 2013, 22:12
DanielP DanielP is offline
Junior Member
 
Join Date: Nov 2013
Posts: 18
Thanks: 1
Thanked 10 Times in 6 Posts
Default Different results Nginx Microcache ISP Config vs ApacheBooster for Cpanel

I do some last testing to decide what tech solution to use but got some strange results...

I use ab for test and siege, Nginx with microcache set in ISPConfig and Cpanel with ApacheBooster plugin which is Nginx + Varnish + Apache

i use a 2 wordpress blogs home pages but they are not so different and in to diffrent benchmarks i got one or other thechnology to be 50 percent faster than the other



I. ApacheBench

Apache Booster
Code:
 /usr/local/apache/bin/ab -c 100 -n 100000 http:/xxxxxxxxxxxxx/This is ApacheBench, Version 2.3 <$Revision: 1528965 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking xxxxxx (be patient)
Completed 10000 requests
Completed 20000 requests
Completed 30000 requests
Completed 40000 requests
Completed 50000 requests
Completed 60000 requests
Completed 70000 requests
Completed 80000 requests
Completed 90000 requests
Completed 100000 requests
Finished 100000 requests


Server Software:        ApacheBooster/1.9
Server Hostname:        xxxxxx
Server Port:            80

Document Path:          /
Document Length:        0 bytes

Concurrency Level:      100
Time taken for tests:   26.112 seconds
Complete requests:      100000
Failed requests:        0
Non-2xx responses:      100000
Total transferred:      31962150 bytes
HTML transferred:       0 bytes
Requests per second:    3829.71 [#/sec] (mean)
Time per request:       26.112 [ms] (mean)
Time per request:       0.261 [ms] (mean, across all concurrent requests)
Transfer rate:          1195.37 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    5   4.1      5      29
Processing:     1   21  20.3     18     602
Waiting:        0   19  19.9     16     598
Total:          1   26  20.6     24     605

Percentage of the requests served within a certain time (ms)
  50%     24
  66%     27
  75%     30
  80%     32
  90%     38
  95%     44
  98%     52
  99%     59
 100%    605 (longest request)
Requests per second: 3829.71 [#/sec]

Nginx Microcache

Code:
 ab -c 10 -n 100000 http://xxxxxxxxxxxxxxxxxxx/
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 xxxxxxxxxxxxxxxxxxxxxxx (be patient)
Completed 10000 requests
Completed 20000 requests
Completed 30000 requests
Completed 40000 requests
Completed 50000 requests
Completed 60000 requests
Completed 70000 requests
Completed 80000 requests
Completed 90000 requests
Completed 100000 requests
Finished 100000 requests


Server Software:        nginx/1.5.7
Server Hostname:        xxxxxxxxxxxxxxxxxxxxxxxxx
Server Port:            80

Document Path:          /
Document Length:        10232 bytes

Concurrency Level:      10
Time taken for tests:   15.850 seconds
Complete requests:      100000
Failed requests:        98866
   (Connect: 0, Receive: 0, Length: 98866, Exceptions: 0)
Write errors:           0
Total transferred:      1060701134 bytes
HTML transferred:       1023101134 bytes
Requests per second:    6308.96 [#/sec] (mean)
Time per request:       1.585 [ms] (mean)
Time per request:       0.159 [ms] (mean, across all concurrent requests)
Transfer rate:          65350.78 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.5      0      13
Processing:     0    1  11.8      1    1323
Waiting:        0    1  11.8      1    1323
Total:          0    2  11.8      1    1325

Percentage of the requests served within a certain time (ms)
  50%      1
  66%      1
  75%      2
  80%      2
  90%      2
  95%      3
  98%      5
  99%      6
 100%   1325 (longest request)

Requests per second: 6308.96 [#/sec]

so far so good it mean that my Nginx Microcache Setup is almost 50 percent faster than the Apache Booster setup ...

but strange results came from sige test in benchmark mode


II. SIEGE 2.72

siege -b -t60s httpxxxxxxxxxx


Apache Booster
Code:
** Preparing 15 concurrent users for battle.
The server is now under siege...
Lifting the server siege...      done.

Transactions:		        9958 hits
Availability:		      100.00 %
Elapsed time:		       59.44 secs
Data transferred:	       29.12 MB
Response time:		        0.09 secs
Transaction rate:	      167.53 trans/sec
Throughput:		        0.49 MB/sec
Concurrency:		       14.42
Successful transactions:        9967
Failed transactions:	           0
Longest transaction:	        5.05
Shortest transaction:	        0.03
Transaction rate: 167.53 trans/sec


Nginx Microcache

Code:
** SIEGE 2.72
** Preparing 15 concurrent users for battle.
The server is now under siege...
Lifting the server siege...      done.

Transactions:		        6093 hits
Availability:		      100.00 %
Elapsed time:		       59.52 secs
Data transferred:	       60.06 MB
Response time:		        0.14 secs
Transaction rate:	      102.37 trans/sec
Throughput:		        1.01 MB/sec
Concurrency:		       14.78
Successful transactions:        6093
Failed transactions:	           0
Longest transaction:	        5.45
Shortest transaction:	        0.00
Transaction rate: 102.37 trans/sec


In siege test Apache Booster is 50 percent faster than Nginx Microchace which is completely the opposite of the Apache Bench (test)

So does somebody got the idea why result are like that ?
__________________
trying my best

Last edited by DanielP; 9th December 2013 at 22:32.
Reply With Quote
Sponsored Links
  #2  
Old 10th December 2013, 09:21
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,461
Thanks: 813
Thanked 5,240 Times in 4,108 Posts
Default

There must be something wrong with the second test:

apache:

Data transferred: 29.12 MB

nginx:

Data transferred: 60.06 MB

so the data amount of the nginx test is 2 times the amount of the apache test.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 10th December 2013, 12:04
DanielP DanielP is offline
Junior Member
 
Join Date: Nov 2013
Posts: 18
Thanks: 1
Thanked 10 Times in 6 Posts
 
Default

My mistake my BP (business partner) start developing process on wp blog the time of the test and use theme with a big header image

i just finish redoing the siege test on an fresh installed Wordpress, I still got some differences in badnwith... think it's about level of compression, but result are the same 162 for apache booster and 102 for Niginx Microcache

Code:
** SIEGE 2.72
** Preparing 15 concurrent users for battle.
The server is now under siege...
Lifting the server siege...      done.

Transactions:		        9879 hits
Availability:		      100.00 %
Elapsed time:		       59.76 secs
Data transferred:	       23.57 MB
Response time:		        0.09 secs
Transaction rate:	      165.31 trans/sec
Throughput:		        0.39 MB/sec
Concurrency:		       14.55
Successful transactions:        9879
Failed transactions:	           0
Longest transaction:	        5.07
Shortest transaction:	        0.03
Code:
** SIEGE 2.72
** Preparing 15 concurrent users for battle.
The server is now under siege...
Lifting the server siege...      done.

Transactions:		        6075 hits
Availability:		      100.00 %
Elapsed time:		       59.35 secs
Data transferred:	       14.45 MB
Response time:		        0.15 secs
Transaction rate:	      102.36 trans/sec
Throughput:		        0.24 MB/sec
Concurrency:		       14.92
Successful transactions:        6075
Failed transactions:	           0
Longest transaction:	        5.15
Shortest transaction:	        0.00
__________________
trying my best
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
mysql and mail problem viritech General 3 16th October 2012 12:54
ISPConfig3 Mail Warn Errors reason8 General 3 25th November 2009 13:58
Spamsnake - Problem with spamassassin, FuzzyOcr and MySQL debuguser HOWTO-Related Questions 6 16th September 2008 18:37
ISPConfig 2.2.14 released till General 48 19th July 2007 23:46
Problem with the apache (I can't start ist) M.Behrens Installation/Configuration 11 31st March 2006 10:48


All times are GMT +2. The time now is 18:14.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.