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?
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.
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.
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.
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.
You do not need any special tool for load testing Node.js application. You can use any load test tools:
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With