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 you folder
> npm install
> node withcluster.js
> node withoutcluster.js
Test performance of app, you need to install siege on your system. After installing siege use below command
> siege -r1000 -c10 http://localhost:3000/
This command send 10 users continuously 1000 times. At the last you will see statistics and differences between withcluster.js
and withoutcluster.js
.