氮气在哪里获得最佳性能 - 雅司病、mochiweb 或 inets?
Nitrogen 项目 网页声明对 yaws、mochiweb 和 inets 提供同等支持,但它与哪一个 Web 服务器配合使用表现最好?即,对于主要包含动态内容的大型应用程序和氮 + Web 服务器,哪种组合将能够处理最多的用户负载?
The Nitrogen project web page declares equal support for yaws, mochiweb, and inets, but with which of these web servers is it going to perform the best? I.e. for a large scale application with mostly dynamic content with nitrogen + a web server which combination will be able to handle the most user load?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
像这样的问题很大程度上取决于应用程序。任何答案都必须持保留态度,并且绝对不能替代您自己进行的系统测试。然而,尽管如此,我相信 yaws 和 mochiweb 在性能上相当相似。雅司病是较旧的项目,因此可能会更稳定,但不一定。我几乎没有使用 inets 的经验,所以我不会对此发表评论。
最好的选择是对每个应用程序运行一组基准测试,看看会得到什么。在氮气中切换它们非常容易,您可以使用同一个应用程序运行测试并得出自己的结论。
A question like this is highly dependent on the application. Any answer would have to be taken with a grain of salt and is definitely not a substitute for doing your own system tests. However, with all of that said, I believe the yaws and mochiweb are fairly similar in performance. yaws is the older project and may be more stable as a result but not neccessarily. I've almost no experience with inets so I'm not going to comment on it.
Your best bet is to run a set of benchmark tests for your app with each one and see what you get. It's so easy to switch between them in nitrogen that you can run tests with the same app and draw your own conclusions.
是的,我相信它们的性能相似。主要区别在于 Mochiweb 更快、更灵活,而 Yaws 可以处理更多并发连接。
然而,Inets 仅用于本地测试。我懒得去检查它。
Yeah I believe they are similar in performance. The major difference is that Mochiweb is faster and nimbler while Yaws handles more concurrent connections.
Inets is only for local testing however. I wouldn't bother checking it out.
Mochiweb 是最快的,因为 Bob Ippolito 编写了它。 :)
我已经对它进行了基准测试,我的记忆告诉我它比其他的要好得多。我记得它很稳定,并且在重负载下没有出现错误消息。但不要相信我。自己测试一下吧。
Mochiweb is the fastest because Bob Ippolito wrote it. :)
I have benchmarked it and My memory tell me it was much better then the rest of them. What I can remember it was stable and did not explode in error messages under heavy load. But don't trust me. Test it your self.