Javascript NodeJs 压力测试工具/方法
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/14463703/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
NodeJs stress testing tools/methods
提问by Afshin Mehrabani
I've searched a lot about stress testing a NodeJs application/module but I didn't find anything.
我搜索了很多有关对 NodeJs 应用程序/模块进行压力测试的信息,但没有找到任何内容。
I have a push server application (something like socket.io) and I want to test it to ensuring there's no memory leaks and that it exhibits optimal performance.
我有一个推送服务器应用程序(类似于 socket.io),我想对其进行测试,以确保没有内存泄漏并显示出最佳性能。
What's the best method or tools for doing that?
这样做的最佳方法或工具是什么?
采纳答案by Bob
You do not need any special tool for load testing Node.js application. You can use any load test tools:
您不需要任何特殊工具来对 Node.js 应用程序进行负载测试。您可以使用任何负载测试工具:
From opensource and free tools I can recommend JMeter. As it has built-in Proxy Server which can record HTTP traffic. Advantage of JMeter than other tools is user friendly GUI. You can find article related Node.js load balancing and JMeter testing.
我可以从开源和免费工具中推荐 JMeter。因为它内置了可以记录 HTTP 流量的代理服务器。JMeter 比其他工具的优点是用户友好的 GUI。您可以找到与 Node.js 负载平衡和JMeter 测试相关的文章。
回答by Dmitry
Try this phanosstress test tool. This is phantomjs based tool, and you can loading ajax request too with it. But this tool doesn't provide stat info, you should use nodetime (or something else) for analyze the traffic performance.
试试这个phanos压力测试工具。这是基于 phantomjs 的工具,您也可以使用它加载 ajax 请求。但是这个工具不提供统计信息,你应该使用 nodetime(或其他东西)来分析流量性能。

