Ok, here I’m going to show benchmark result of 2 servers, once installed with Nginx reverse proxy on Apache, and other with ApacheBooster plugin in cpanel.
More readings:-
- How to install Nginx,MySQL,PHP using LNMP-Nginx Autoinstaller
- How to upgrade Nginx to latest version
- How to upgrade php to latest version
- PhpMyAdmin with Nginx Autoinstaller
- How to install PureFTP with Nginx autoinstaller
I use simple wordpress installation having default test post to and used ab command to benchmark.
Benchmark result of Nginx-Apache (LNMP.ORG autoinstaller)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
root@pluto:~# ab -n 100 -c 10 http://venus.***.com/ This is ApacheBench, Version 2.3 Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking venus.*****.com (be patient).....done Server Software: nginx/1.2.2 Server Hostname: venus.*****.com Server Port: 80 Document Path: / Document Length: 7500 bytes Concurrency Level: 10 Time taken for tests: 12.608 seconds Complete requests: 100 Failed requests: 65 (Connect: 0, Receive: 0, Length: 65, Exceptions: 0) Write errors: 0 Total transferred: 776005 bytes HTML transferred: 750205 bytes Requests per second: 7.93 [#/sec] (mean) Time per request: 1260.761 [ms] (mean) Time per request: 126.076 [ms] (mean, across all concurrent requests) Transfer rate: 60.11 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 55 56 0.2 55 56 Processing: 422 1180 333.6 1144 2213 Waiting: 366 1124 333.5 1088 2157 Total: 477 1236 333.6 1200 2268 ERROR: The median and mean for the initial connection 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% 1200 66% 1315 75% 1452 80% 1509 90% 1602 95% 1936 98% 2216 99% 2268 100% 2268 (longest request) |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
root@pluto:~# ab -n 200 -c 50 http://venus.*****.com/hello-world/ This is ApacheBench, Version 2.3 Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking venus.*****.com (be patient) Completed 100 requests Completed 200 requests Finished 200 requests Server Software: nginx/1.2.2 Server Hostname: venus.*****.com Server Port: 80 Document Path: /hello-world/ Document Length: 8771 bytes Concurrency Level: 50 Time taken for tests: 34.411 seconds Complete requests: 200 Failed requests: 183 (Connect: 0, Receive: 0, Length: 183, Exceptions: 0) Write errors: 0 Total transferred: 1812808 bytes HTML transferred: 1754408 bytes Requests per second: 5.81 [#/sec] (mean) Time per request: 8602.816 [ms] (mean) Time per request: 172.056 [ms] (mean, across all concurrent requests) Transfer rate: 51.45 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 55 56 0.8 56 62 Processing: 418 8225 5315.6 8017 23200 Waiting: 362 8169 5315.5 7960 23143 Total: 473 8281 5315.6 8072 23255 Percentage of the requests served within a certain time (ms) 50% 8072 66% 9382 75% 11752 80% 12659 90% 17066 95% 19045 98% 20718 99% 21838 100% 23255 (longest request) |
Benchmark result of ApacheBooster (Apache+Nginx+Varnish)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
root@pluto:~# ab -n 100 -c 10 http://******/~mylitera/ This is ApacheBench, Version 2.3 Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking ****** (be patient).....done Server Software: ApacheBooster/1.2.0 Server Hostname: ****** Server Port: 80 Document Path: /~mylitera/ Document Length: 7615 bytes Concurrency Level: 10 Time taken for tests: 0.266 seconds Complete requests: 100 Failed requests: 0 Write errors: 0 Total transferred: 801564 bytes HTML transferred: 761500 bytes Requests per second: 376.08 [#/sec] (mean) Time per request: 26.590 [ms] (mean) Time per request: 2.659 [ms] (mean, across all concurrent requests) Transfer rate: 2943.90 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 1 2 1.2 2 5 Processing: 3 24 52.1 7 182 Waiting: 1 20 52.2 3 177 Total: 5 26 51.8 9 183 Percentage of the requests served within a certain time (ms) 50% 9 66% 10 75% 10 80% 10 90% 179 95% 181 98% 182 99% 183 100% 183 (longest request) |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
root@pluto:~# ab -n 200 -c 50 http://******/~mylitera/hello-world/ This is ApacheBench, Version 2.3 Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking ****** (be patient) Completed 100 requests Completed 200 requests Finished 200 requests Server Software: ApacheBooster/1.2.0 Server Hostname: ******* Server Port: 80 Document Path: /~mylitera/hello-world/ Document Length: 8891 bytes Concurrency Level: 50 Time taken for tests: 0.343 seconds Complete requests: 200 Failed requests: 0 Write errors: 0 Total transferred: 1870680 bytes HTML transferred: 1778200 bytes Requests per second: 582.36 [#/sec] (mean) Time per request: 85.858 [ms] (mean) Time per request: 1.717 [ms] (mean, across all concurrent requests) Transfer rate: 5319.35 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 1 11 7.5 10 24 Processing: 9 71 76.1 32 216 Waiting: 4 55 74.6 13 193 Total: 31 82 70.6 42 218 Percentage of the requests served within a certain time (ms) 50% 42 66% 49 75% 182 80% 195 90% 207 95% 212 98% 216 99% 217 100% 218 (longest request) |
I found ApacheBooster far better then Nginx+Apache, while running Benchmark on Nginx+apache server, the server load average reached to 18,19, however ApacheBooster server, didnt show any load it became normal all the time.
Comment Policy:
Your words are your own, so be nice and helpful if you can. Please, only use your real name, not your business name or keywords. Using business name or keywords instead of your real name will lead to the comment being deleted. Anonymous commenting is not allowed either. Limit the amount of links submitted in your comment. We accept clean XHTML in comments, but don't overdo it please.