Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to do load testing of node.js server?

Tags:

I want to write one web application with node.js and MongoDB and I have got task to even test it. I would like to know if there are any tools like JMeter or anything else for load/stress testing of Node.js?

EDIT

My application is going to be information extraction kind of application and client expects extraction should not take more than 10 seconds for one document. Currently I have same application written in C# but its not scaling upto client's expectations. Then I came across this beautiful and fast Node.js. I think Node.js can help me alot.

Please enlighten !!!

like image 412
Shekhar Avatar asked Aug 31 '12 18:08

Shekhar


1 Answers

Try nodeload: it's a collection of node.js modules for load testing HTTP services.

As a developer, you should be able to write load tests and get informative reports without having to learn another framework. You should be able to build by example and selectively use the parts of a tool that fit your task. Being a library means that you can use as much or as little of nodeload as makes sense, and you can create load tests with the power of a full programming language. For example, if you need to execute some function at a given rate, just use the 'nodeload/loop' module, and write the rest yourself

Just found out that this package is no longer under development so here are some active forks:

  • https://github.com/gamechanger/nodeload
  • https://github.com/Samuel29/NodeStressSuite
like image 184
laktak Avatar answered Oct 31 '22 03:10

laktak