Benchmark Node Server using Siege
- Open The Terminal
- Download Siege
curl -C - -O http://download.joedog.org/siege/siege-latest.tar.gz
- Extract the tarball
tar -xvf siege-latest.tar.gz
- Change directories to the extracted directory (again, currently siege-2.70)
cd siege-2.70/
- Run the following commands (one at a time) to build and install siege. If you have an older version of siege read the INSTALL file for more instructions.
./configure
make
make install
- Check
siege
The following sends a 10 requests across 10 concurrent connections for benchmarking (no delay between requests).
siege -c 10 -r 10 -b http://localhost:3000/
nodemon withoutCluster.js
transaction rate: 454.55 trans/sec
nodemon withCluster.js
transaction rate: 625 trans/sec