主流WEB服务器性能对比测试报告.doc_第1页
主流WEB服务器性能对比测试报告.doc_第2页
主流WEB服务器性能对比测试报告.doc_第3页
主流WEB服务器性能对比测试报告.doc_第4页
主流WEB服务器性能对比测试报告.doc_第5页
免费预览已结束,剩余8页可下载查看

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

主流WEB服务器性能测试报告(2008-07-02)主流WEB服务器性能测试报告(2008-07-02)易剑1 测试目的本次的测试目的是收集当前主流Web服务器数据,为服务器的造选型提供参考依据,测试的Web服务器包括:nginx 0.6.31、apache、lighttpd、qhttp、thttpd和lsws-3.2.1-std-i386(简称为:lslw)。2 测试环境2.1 运行机环境CPU:2个双核CPU,Intel(R) Xeon(R) CPU 2.00GHz,cache 4 MB 内存:8G网卡:1000Mb/s2.2 测试机环境CPU:4个单核CPU,Intel(R) Xeon(TM) CPU 3.00GHz,cache 16 KB内存:8G网卡:1000Mb/s3 测试方法:1) 用apache自带的ab压力测试软件进行测试2) apache、lighttpd、qhttp、thttpd和lslw这3个web服务器安装在同一台服务器上,启动在不同的端口上3) apache、lighttpd、qhttp、thttpd和lslw 这3个web服务器上安装相同的静态测试页面(丛1k到512k),s1k.htm,s2k.htm,s4k.htm,s8k.htm,s16k.htm,s32k.htm,s64k.htm,s128k.htm,s256k.htm,s512k.htm。4) apache、lighttpd、thttpd和lslw这4个web服务器上安装相同的cgi程序,cgi_test,这个cgi带3个参数,n:cgi内大循环次数,c:cgi内小循环次数(嵌套在大循环内),s:吐出页面数据的大小(0-9,分别对应吐出内容2K-512K,s是2的指数)。 5) 静态内容测试,对apache、lighttpd、qhttp、thttpd和lslw 这5个web服务器分别测试。A. 并发100B. 并发200C. 并发300D. 并发5006) 动态内容测试,对apache、lighttpd、thttpd和lslw这4个web服务器分别测试。A. 并发100B. 并发200C. 并发300D. 并发5004 静态页面性能测试4.1 每次并发100个请求l 测试说明:测试页面大小分别取1KB,2KB,4KB,16KB,32KB,128KB,256KB,512KBl 性能数据表页面大小(KB)Web Server失败请求数(单位:个)每秒请求数(单位:个)平均负载I/O读取(单位:MB/秒)I/O写入(单位:MB/秒)流量(单位:Mbps)1apache0294649.79 0.00 0.02 351.63 lighttpd0252181.30 0.00 13.63 291.06 qhttp0735090.25 0.00 0.02 831.64 lsws0353914.30 0.00 9.05 374.41 nginx0395780.270.000.07453.93thttpd0187324.71 0.00 3.68 255.03 2apache02865012.55 0.00 0.02 567.11 lighttpd0235511.13 0.00 8.24 483.50 qhttp0438920.49 0.00 0.02 918.81 lsws0300742.52 0.00 3.95 621.18 nginx0342950.630.000.06687.67thttpd0175662.25 0.00 3.01 384.29 4apache0216278.81 0.00 0.01 837.80 lighttpd0228851.02 0.00 6.74 799.92 qhttp0224400.53 0.01 0.01 838.59 lsws0236871.70 0.00 7.07 890.65 nginx0263220.610.000.05970.78thttpd0155181.65 0.00 2.96 580.69 16apache1167402.73 0.02 0.03 969.09 lighttpd065990.72 0.00 2.82 911.21 qhttp067590.25 0.00 0.02 973.80 lsws167640.67 0.00 1.60 970.62 nginx068210.360.000.071030.24thttpd057620.82 0.00 1.47 834.79 32apache1133870.91 0.04 0.02 971.52 lighttpd033380.39 0.04 1.46 949.67 qhttp033820.16 0.00 0.02 961.54 lswsnginx034230.200.000.051000.47thttpd029920.49 0.00 0.83 871.19 64apache716850.42 0.00 0.02 1035.72 lighttpd216730.13 0.00 0.75 972.46 qhttp016850.07 0.07 0.02 1009.03 lsws2416770.21 0.00 0.53 993.40 nginx016850.170.000.06977.35thttpd015880.37 0.00 0.58 919.07 128apache168570.22 0.00 0.02 1005.70 lighttpd08530.12 0.00 0.38 937.20 qhttplsws78530.10 0.00 0.33 990.88 nginx08520.230.000.081037.04thttpd08260.21 0.00 0.31 951.23 256apache144280.07 0.00 0.00 994.58 lighttpdqhttp04270.05 0.00 0.00 994.05 lsws124270.14 0.00 0.16 992.46 nginx04250.200.000.07985.235thttpd04160.13 0.00 0.13 967.13 512apache02130.03 0.00 0.02 1064.75 lighttpd02130.07 0.42 0.02 993.50 qhttp02130.02 0.00 0.12 993.79 lsws32130.10 0.00 0.10 959.98 nginx100002266800.0000thttpd02100.11 0.00 0.07 1040.97 4.2 每次并发200个请求l 测试说明:测试页面大小分别取1KB,2KB,4KB,32KB,128KB,256KB,512KBl 性能数据表页面大小(KB)Web Server失败请求数(单位:个)每秒请求数(单位:个)平均负载I/O读取(单位:MB/秒)I/O写入(单位:MB/秒)流量(单位:Mbps)1apache0281366.69 0.00 0.00 334.53 lighttpd0246811.83 0.00 0.02 279.77 qhttp0784560.19 0.00 0.02 936.61 lsws0240503.37 0.00 12.79 247.64 nginx0329570.340.000.07321.85thttpd0163565.70 0.00 0.05 229.08 2apache0267449.86 0.00 0.00 510.19 lighttpd0231661.31 0.00 0.03 457.57 qhttp0478620.32 0.00 0.01 879.19 lsws0229411.76 0.00 8.72 460.85 nginx0309020.650.000.04636.70thttpd0155722.28 0.00 0.07 346.29 4apache02530510.15 0.00 0.00 945.96 lighttpd0227641.20 0.00 0.01 845.51 qhttp0259560.29 0.03 0.02 859.78 lsws0192701.16 0.00 8.31 727.56 nginx0263140.700.07909.76thttpd0140871.27 0.00 0.05 516.72 16apachelighttpd068440.79 0.02 0.02 961.06 qhttplsws167400.57 0.00 3.05 978.64 nginx068200.410.000.06983.78thttpd057660.99 0.02 0.04 834.39 32apachelighttpd234280.38 0.04 0.02 990.35 qhttp034410.29 0.04 0.02 978.56 lswsnginx034210.340.000.06992.42thttpd031270.50 0.04 0.04 922.01 64apachelighttpdqhttplsws3016840.22 0.00 1.09 994.42 nginx016850.130.000.06985.83thttpd016480.45 0.00 0.06 955.66 128apache08570.40 0.01 0.02 998.09 lighttpd18540.23 0.00 0.02 1049.95 qhttp08570.05 0.00 0.02 978.61 lsws88540.11 0.00 0.54 997.02 nginx08520.090.000.05986.68thttpd08440.38 0.00 0.05 929.46 256apache04270.25 0.26 0.02 967.37 lighttpd54260.28 0.27 0.00 983.92 qhttp04270.09 0.00 0.00 1000.12 lswsnginx04240.030.000.05986.51thttpd04220.17 0.00 0.04 920.13 512apache02130.11 0.00 0.00 1001.52 lighttpd02130.27 0.00 0.01 1000.43 qhttp02120.04 0.00 0.02 1001.52 lsws12130.16 0.00 0.15 1000.38 nginx100011855200.0000thttpd02120.06 0.00 0.06 940.77 4.3 每次并发300个请求l 测试说明:测试页面大小分别取1KB,2KB,4KB,32KB,128KB,256KB,512KBl 性能数据表页面大小(KB)Web Server失败请求数(单位:个)每秒请求数(单位:个)平均负载I/O读取(单位:MB/秒)I/O写入(单位:MB/秒)流量(单位:Mbps)1apache02936310.29 0.00 0.02 367.56 lighttpd0257300.44 0.00 0.02 309.35 qhttp0737040.26 0.00 0.00 895.10 lsws117263513.49 0.00 9.95 278.70 nginx0441690.360.000.00476.78thttpd0166234.48 0.00 0.05 218.62 2apache02664016.70 0.00 0.00 532.77 lighttpd0242230.94 0.00 0.03 501.45 qhttp0475400.42 0.00 0.02 1002.99 lsws88233631.81 0.00 5.90 498.52 nginx0335080.620.000.06617.41thttpd0148931.85 0.00 0.05 335.11 4apache6165628.88 0.00 0.02 600.38 lighttpd0244821.03 0.00 0.02 858.15 qhttp0256260.47 0.00 0.02 869.34 lsws0206661.30 0.00 6.24 837.88 nginx0263130.860.000.08890.98thttpd0149781.31 0.00 0.05 565.03 8apachelighttpdqhttplswsnginx0134690.680.000.06962.79thttpd16apachelighttpdqhttplswsnginx68170.460.000.05985.33thttpd32apache034071.24 0.00 0.02 977.65 lighttpd334120.36 0.00 0.03 967.65 qhttplswsnginx034170.290.000.05984.86thttpd032520.76 0.00 0.05 928.99 128apache08540.18 0.00 0.04 1003.64 lighttpdqhttp08540.07 0.00 0.02 1003.41 lswsnginx08510.260.000.06986.78thttpd08320.31 0.00 0.04 927.82 256apachelighttpdqhttp04240.05 0.00 0.04 992.55 lswsnginx04230.120.000.06949.74thttpd04200.32 0.00 0.04 925.38 512apache02120.22 0.00 0.02 948.79 lighttpd02120.10 0.00 0.02 1007.10 qhttp02110.06 0.00 0.03 1006.83 lsws02120.10 0.00 0.09 958.73 nginx10000200830000thttpd4.4 每次并发500个请求l 测试说明:测试页面大小分别取1KB,2KB,4KB,32KB,128KB,256KB,512KBl 性能数据表页面大小(KB)Web Server失败请求数(单位:个)每秒请求数(单位:个)平均负载I/O读取(单位:MB/秒)I/O写入(单位:MB/秒)流量(单位:Mbps)1apache03174910.25 0.00 0.02 419.95 lighttpd0qhttp0714540.20 0.00 0.00 904.38 lsws55265054.04 0.00 5.75 296.46 nginx0268090.340.000.06306.42thttpd0160116.06 0.00 0.04 217.76 2apache03174910.25 0.00 0.02 419.95 lighttpdqhttp0714540.20 0.00 0.00 904.38 lsws16233452.03 0.00 5.05 512.36 nginx0290640.630.000.05650.40thttpd0148222.18 0.00 0.06 328.79 4apache03174910.25 0.00 0.02 419.95 lighttpdqhttp0714540.20 0.00 0.00 904.38 lsws23206721.25 0.00 4.80 798.13 nginx0230640.760.000.07780.73thttpd0147721.18 0.00 0.05 542.62 8apachelighttpdqhttplswsnginx0134710.680.000.071009.91thttpd16apachelighttpdqhttplswsnginx068130.640.000.06985.33thttpd32apachelighttpdqhttplswsnginx034170.290.000.051037.64thttpd64apachelighttpdqhttplswsnginx016820.090.000.06986.61thttpd128apache08570.26 0.00 0.00 1014.75 lighttpdqhttp08560.03 0.00 0.02 1013.19 lsws28520.08 0.00 0.23 1014.35 nginx08490.080.000.04986.47thttpd08370.19 0.00 0.06 991.07 256apache04260.12 0.00 0.02 959.85 lighttpdqhttp04230.01 0.00 0.02 1022.62 lswsnginx04210.070.000.08986.41thttpd512apache02120.12 0.00 0.02 1020.43 lighttpd02100.24 0.00 0.02 981.50 qhttp02090.00 0.00 0.01 1044.39 lsws02120.04 0.00 0.06 963.31 nginx10003202670000thttpd4.5 小结1、从上面的数据可以看出,qhttp在这些测试中表现最优秀。处理小文件的时候最大可以达到930M左右的流量,是其他服务器的三倍之多,并且系统的负载也不大,thttpd的性能是最差的。2、lighttpd、apache和lslw在相同文件大小请求下性能相当。在大压力测试的情况下,文件越大,这几个web服务器性能间的差异越小。文件大到一定程度,网络成为最终的瓶颈,而导致不会出现性能上的差异。3、测试过程中,webserver出错的情况就放弃了统计,随着并发数的增加,导致请求处理超时,出错的次数也越来越多,所以大家看到很多对比中会少一种或几种webserver。5 动态cgi性能测试5.1 每次并发100个请求l 测试说明:测试页面大小分别取1KB,4KB,16KB,32KB,64KB,128KB,256KB,512KBl 性能数据表页面大小(KB)Web Server失败请求数(单位:个)每秒请求数(单位:个)平均负载I/O读取(单位:MB/秒)I/O写入(单位:MB/秒)流量(单位:Mbps)1apache25517763.53 0.00 0.02 22.42 lighttpd018482.19 0.00 1.11 20.50 lsws039550.00 0.00 2.37 49.38 thttpd012196.83 0.00 0.72 14.60 4apache6217153.73 0.00 0.02 66.53 lighttpd317112.40 0.00 1.23 63.48 lsws033630.00 0.00 1.87 130.37 thttpd012107.06 0.00 0.58 45.71 16apache1914394.22 0.00 0.02 204.48 lighttpd1112152.52 0.00 0.74 242.02 lsws025000.00 0.00 1.43 356.00 thttpd011487.62 0.00 0.67 163.23 32apache912054.96 0.02 0.02 344.79 lighttpd206822.10 0.00 0.48 193.87 lsws017914.89 0.00 1.06 508.06 thttpd5711107.82 0.00 0.66 313.30 64apache69125.82 0.00 0.03 520.07 lighttpd342360.82 0.00 0.19 139.00 lsws012995.10 0.00 0.81 738.09 thttpd0103011.00 0.00 0.47 565.55 128apache05556.67 0.00 0.02 630.73 lighttpd01510.85 0.00 0.13 241.07 lsws08166.11 0.00 0.38 960.20 thttpd4577113.55 0.00 0.44 906.77 256apache03366.38 0.00 0.02 753.53 lighttpd01671.39 0.00 0.19 376.94 lsws04235.43 0.00 0.19 1005.79 thttpd041612.39 0.00 0.24 933.48 512apache02075.69 0.00 0.00 863.06 lighttpd0861.68 0.00 0.09 418.40 lsws02175.69 0.00 0.25 906.71 thttpd02149.08 0.00 0.11 892.21 5.2 每次并发200个请求l 测试说明:测试页面大小分别取1KB,4KB,16KB,32KB,64KB,128KB,256KB,512KBl 性能数据表页面大小(KB)Web Server失败请求数(单位:个)每秒请求数(单位:个)平均负载I/O读取(单位:MB/秒)I/O写入(单位:MB/秒)流量(单位:Mbps)1apache19817983.47 0.00 0.03 23.17 lighttpd016682.32 0.42 1.36 19.07 lsws039432.92 2.74 2.72 50.40 thttpd012126.36 0.00 0.38 14.81 4apachelighttpd014622.34 0.00 0.34 54.84 lsws032953.23 0.00 2.44 128.61 thttpd011697.30 0.00 0.33 44.33 16apachelighttpd710762.52 0.00 0.43 153.45 lsws025644.56 0.00 1.92 366.23 thttpd011257.20 0.00 0.30 159.92 32apache1112485.13 0.00 0.02 355.30 lighttpd37572.41 0.01 0.27 216.24 lsws019355.05 0.00 1.32 552.65 thttpd6310438.13 0.00 0.29 292.50 64apache18655.25 0.00 0.02 487.72 lighttpd142761.13 0.00 0.13 262.60 lsws013035.55 0.00 1.11 715.75 thttpd09748.59 0.00 0.18 544.25 128apache05465.30 0.00 0.02 621.16 lighttpdlsws08115.59 0.00 0.58 912.36 thttpd5375111.01 0.00 0.15 845.31 256apache03295.61 0.00 0.01 782.56 lighttpd01361.21 0.00 0.06 300.30 lsws314275.46 0.00 0.16 938.74 thttpd042912.14 0.00 0.15 974.67 512apache02145.43 0.00 0.00 972.00 lighttpd0952.14 0.00 0.05 436.00 lsws02185.06 0.00 0.07 924.59 thttpd021810.35 0.00 0.09 921.89 5.3 每次并发300个请求l 测试说明:测试页面大小分别取1KB,4KB,16KB,32KB,64KB,128KB,256KB,512KBl 性能数据表页面大小(KB)Web Server失败请求数(单位:个)每秒请求数(单位:个)平均负载I/O读取(单位:MB/秒)I/O写入(单位:MB/秒)流量(单位:Mbps)1apache22117743.33 0.00 0.02 23.17 lighttpd014500.05 0.00 1.12 17.06 lsws039732.79 0.00 1.31 50.82 thttpd4apachelighttpd012750.00 0.00 1.32 47.87 lsws033993.32 0.00 1.22 131.98 thttpd011176.69 0.00 0.29 42.79 16apachelighttpd08740.00 0.00 0.81 123.83 lsws225374.54 0.00 1.18 366.41 thttpd606810617.22 0.00 0.21 150.97 32apache1012315.09 0.63 0.02 351.97 lighttpd26290.00 0.00 0.61 177.80 lsws319335.73 0.00 0.82 552.62 thttpd64apachelighttpd1121990.70 0.00 0.17 112.76 lsws113216.05 0.00 0.60 734.77 thttpd0100210.54 0.00 0.24 569.62 128apache05475.87 0.00 0.02 625.37 lighttpd2991220.78 0.00 0.10 153.52 lsws228115.91 0.00 0.26 921.47 thttpd3675313.53 0.00 0.20 844.61 256apache03425.78 0.00 0.07 731.79 lighttpd01581.73 0.00 0.15 362.02 lsws324365.59 0.00 0.15 998.32 thttpd043410.60 0.00 0.09 1063.29 512apache02185.85 0.00 0.01 922.33 lighttpdlsws152195.20 0.00 0.08 934.23 thttpd02198.25 0.00 0.09 1000.14 5.4 每次并发500个请求l 测试说明:测试页面大小分别取1KB,4KB,16KB,32KB,64KB,128KB,256KB,512KBl 性能数据表页面大小(KB)Web Server失败请求数(单位:个)每秒请求数(单位:个)平均负载I/O读取(单

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论