Skip to content

Instantly share code, notes, and snippets.

@jameswomack
Last active August 29, 2015 14:00
Show Gist options
  • Save jameswomack/11368342 to your computer and use it in GitHub Desktop.
Save jameswomack/11368342 to your computer and use it in GitHub Desktop.
Yes, my Siege.
Compress: yes
Static: yes
Cache-Control: yes
Express: yes
St: no
Cluster: yes
Transactions: 16053 hits
Availability: 100.00 %
Elapsed time: 9.25 secs
Data transferred: 2.79 MB
Response time: 0.01 secs
Transaction rate: 1735.46 trans/sec
Throughput: 0.30 MB/sec
Concurrency: 12.02
Successful transactions: 16053
Failed transactions: 0
Longest transaction: 3.61
Shortest transaction: 0.00
Transactions: 15984 hits
Availability: 100.00 %
Elapsed time: 29.30 secs
Data transferred: 2.27 MB
Response time: 0.00 secs
Transaction rate: 545.53 trans/sec
Throughput: 0.08 MB/sec
Concurrency: 0.81
Successful transactions: 15984
Failed transactions: 0
Longest transaction: 0.09
Shortest transaction: 0.00

Static File Serving Performance

  • At all concurrency levels, Express & St are neck and neck

siege -c 5 -b -t30s 'http://local.example.com/index.html'

  • Compress module has negligible effect here
  • Node is consistently a bit faster at this level of concurrency
  • Cluster has no effect at this level of concurrency

siege -c 20 -b -t10s 'http://local.example.com/index.html'

  • Cluster does have an effect on uptime here—connections lagged or were dropped without clustering
  • Both a single-process node server & nginx had some failed transactions at this level of concurrency

As I increased concurrency on the clustered server, speed began to decrease, but the OS failed on number of sockets before the server did.

Apache was better than expected at higher concurrency levels. It didn't perform as quickly as node, but was ok.

Compress: no
Static: no
Cache-Control: yes
Express: no
St: yes
Cluster: yes
Transactions: 16030 hits
Availability: 100.00 %
Elapsed time: 9.23 secs
Data transferred: 2.78 MB
Response time: 0.00 secs
Transaction rate: 1736.73 trans/sec
Throughput: 0.30 MB/sec
Concurrency: 8.42
Successful transactions: 16030
Failed transactions: 0
Longest transaction: 0.20
Shortest transaction: 0.00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment