是否有任何基准测试显示 Node.js 0.6.8 每秒可以处理多少个 Comet 请求?
我问的原因是这篇文章
http://amix.dk/blog/post/19577
表明节点.js 0.2.2 的阈值似乎为 500/s,并且 Netty 的性能高出 10 倍。 Ryan Dahl 在评论中指出,这可能是由于一个错误造成的,该错误随后已得到修复。但是,我在帖子的其余部分或其他地方找不到任何有关该问题已解决的确认信息以及更新的基准。我们现在比上面提到的版本领先了许多版本,我想知道是否有任何基准,正式的或其他与彗星请求/秒有关的基准。
如果没有基准,那么最好从总体上了解 Amir 标记的问题是否仍然悬而未决。 500 颗彗星/秒是中等规模的聊天/游戏网站可以达到的阈值。
The reason I'm asking is that this post
http://amix.dk/blog/post/19577
Indicates that Node.js 0.2.2 seems to have a threshold of 500/s and is outperformed 10x by Netty. In the comments, Ryan Dahl indicates that it was possibly because of a bug which has been subsequently fixed. However I cannot find in the remainder of the post or elsewhere any confirmation that the issue was resolved and if so updated benchmarks. We are now many versions ahead of the one referenced above and I'm wondering if there are any benchmarks, formal or otherwise pertaining to Comet requests/second.
If there are no benchmarks, it would be good to know in general terms whether the issue flagged by Amir is still outstanding. 500 comet/second is a threshhold that could be reached by a modest sized chat/game focused site.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
node.js
从0.2.2
已经走过了很长一段路。链接帖子中讨论的架构似乎也存在实现问题,因为评论表明他们没有考虑使用带有负载均衡器的多个节点进程。这显然是高性能应用程序所必需的——事实上,
node.js
的最后一段官方关于部分内容如下:现在,考虑到单个节点
0.2.2
进程使用了 Netty 资源的 10%(如 OP 链接帖子中提到的),那么它们可以在同一硬件上运行 10 个节点进程,这就引出了一个问题:如果 Netty 比 Node 快 10 倍,但使用的资源却是 Node 的 10 倍,那么它们的性能实际上不是一样的吗?同时,节点的性能在>=0.6.0
版本中得到了显着提高,尤其是在运行 Windows 的计算机上,现在已原生支持 Windows。请参阅0.6.0发行说明
:
与此同时,尽管似乎没有人愿意谈论他们到底在做什么,但似乎一些流量最高的技术玩家正在转向
node.js
以获得极高的收益 -容量系统。Google
、Yahoo
、Mozilla
、LinkedIn
和初创公司i.TV
均已分析昨天在 Venturebeat 上发布的文章大规模节点 .com。虽然我无法找到彗星/秒的准确基准,但很明显,如果系统架构正确,它会比 500 高得多。
node.js
has come a long long way from0.2.2
. It seems likely there were also implementation issues with the architecture being discussed in the linked post, as comments suggest they did not consider using multiple node processes with a load balancer.This is clearly a necessity for high performance applications -- indeed, the last paragraph of the
node.js
official about section reads:Now, considering that a single node
0.2.2
process used %10 of the resources of Netty (as is mentioned in the OP linked post), then they could have run 10 node processes on the same hardware, which begs the question: If Netty is 10x faster than node, but uses 10x the resources, then wasn't their performance actually the same? Meanwhile, node's performance has been drastically improved in the>=0.6.0
releases, especially on machines running Windows, which is now supported natively. See the Windows benchmarks from the0.6.0
release notes:Meanwhile, though nobody seems to want to talk about what exactly they're doing, it seems some of the highest traffic tech players are turning to
node.js
for extremely high-capacity systems.Google
,Yahoo
,Mozilla
,LinkedIn
and startupi.TV
are all profiled in the article Node at scale published yesterday on venturebeat.com.While I couldn't find exact benchmarks for comet/second, it seems clear that with proper system architecture it is much, much higher than 500.