Skip to content

yogain123/Siege-Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Siege-Server

Benchmark Node Server using Siege

Installing Siege on Mac OS X

  • 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

Benchmarking with 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/

Results:

Running server without forking

nodemon withoutCluster.js

Screen Shot 1941-11-13 at 9 44 54 PM

transaction rate: 454.55 trans/sec

Running server with forking

nodemon withCluster.js

Screen Shot 1941-11-13 at 9 45 55 PM

transaction rate: 625 trans/sec

Understanding

Screen Shot 1941-11-13 at 9 51 05 PM Screen Shot 1941-11-13 at 9 51 21 PM Screen Shot 1941-11-13 at 9 53 09 PM Screen Shot 1941-11-13 at 9 53 32 PM Screen Shot 1941-11-13 at 9 53 48 PM Screen Shot 1941-11-13 at 9 54 45 PM

About

Benchmark Node Server using Siege

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published