nxweb是采用Python和C编写的快速而且轻量级的Web服务器软件。
特性:
性能优异
可处理数千并发
内存占用小
事件驱动、多线程模型
代码量小
简单的CAPI
体面的HTTP协议处理
支持keep-alive连接
支持chunked请求和响应
支持SSL(viaGNUTLS)
支持HTTPproxy(withkeep-aliveconnectionpooling)
支持文件缓存
cachedcontentcanbeservedwhenbackendisunavailable
非堵塞sendfile支持(withconfigurablesmallfilememorycache)
cacheablegzipcontentencoding
cacheableimagethumbnailswithwatermarks(viaImageMagick)
basicserver-sideincludes(SSI)
templatingengine withpageinheritance
subrequests
integratedPythoninterpreterandWSGI-server
modulardesignfordevelopers
canberunasdaemon;relaunchesitselfonerror
opensource
性能比较:
TestNXWEBG-WANlibeventmicrohttpdmongoosenginx1.hello100ka200/12114430/691321901412.hello10051/424115/321334413.hello1000ka160/11513021/431301801244.hello100046/383814/301235405.hello10000ka115/8410323/401161191085.1.realconcurrency9500-100009500-1000010000600-10001500-17004000-70005.2.memoryfootprint28Mb105Mb---4x15Mb6.hello1000038/343314/27920297.file2.3Kka133NANANA5987.1.file2.3Kkacached145120NANANANA8.file2.3K42NANANA12398.1.file2.3Kcached4333NANANANA9.file100Kka3615NANA3.63210.file100K2312NANA3.52111.file2.1Mka3.20.7NANA0.62.612.file2.1M2.30.6NANA0.52.0
评论