Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NodeJs stress testing tools/methods [closed]

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?

like image 668
Afshin Mehrabani Avatar asked Jan 22 '13 16:01

Afshin Mehrabani


People also ask

What is difference between load testing and stress testing?

The key difference is the goal of each: Load tests help you understand how a system behaves under an expected load. Stress tests help you understand the upper limits of a system's capacity using a load beyond the expected maximum.

Which tool can be used for stress testing of application?

StresStimulus is a load testing tool for web and mobile applications to determine the performance and scalability of your application under simulated heavy traffic. You can emulate thousands of real-life users through their on-premise load generators or in a cloud testing environment.

What is the difference between performance and load testing?

Performance testing is concerned with evaluating the overall system's performance and collecting metrics such as availability, response time, and stability. Load testing is a technique that verifies whether the application can handle the expected load.

Can we automate stress testing?

The process should be completely automated so that you can run tests unattended for long periods of time. At a minimum, the stress-test framework should log which test modules are run and any failures that occur.


2 Answers

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.

like image 64
Bobur Meliev Avatar answered Sep 19 '22 15:09

Bobur Meliev


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.

like image 32
Dmitry Avatar answered Sep 21 '22 15:09

Dmitry