You can download this repo or clone using below command. (<folder-name>
will be project folder in which you want to start your project).
> git clone https://github.com/mihir-kanzariya/Node-Cluster.git <folder-name>
Once you clone or download project, go into your folder
> npm install
> node withcluster.js
> node withoutcluster.js
To test the performance of your app, you need to install siege on your system. After installing siege use the command given below
> siege -r1000 -c10 http://localhost:3000/
This command sends 10 users continuously for 1000 times. In the end, you will see statistics and differences between withcluster.js
and withoutcluster.js
.