NodeJs stress testing tools/methods [closed]

笑着哭i 提交于 2019-12-04 07:35:30

问题


I've searched a lot about stress testing a NodeJs application/module but I didn't find anything.

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.

What's the best method or tools for doing that?


回答1:


You do not need any special tool for load testing Node.js application. You can use any load test tools:

  • ApacheBench
  • Siege
  • Jmeter
  • Tsung

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.




回答2:


Try this phanos stress 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.



来源:https://stackoverflow.com/questions/14463703/nodejs-stress-testing-tools-methods

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!