Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save torbjon/4286777 to your computer and use it in GitHub Desktop.
Save torbjon/4286777 to your computer and use it in GitHub Desktop.
puma, thin, unicorn benchmarks on heroku simpla sinatra app

##Procfile:

  • web: bundle exec thin -R config.ru start -p $PORT -e $RACK_ENV
  • web: bundle exec unicorn -p $PORT -c ./config/unicorn.rb
  • web: bundle exec puma -t 1:4 -b tcp://0.0.0.0:$PORT

##Benchmarks:

~ siege -c500 -t30s www.aijaberjoza.lv

###Thin

Transactions: 3736 hits
Availability: 100.00 %
Elapsed time: 30.02 secs
Data transferred: 47.60 MB
Response time: 3.63 secs
Transaction rate: 124.45 trans/sec
Throughput: 1.59 MB/sec
Concurrency: 451.67
Successful transactions: 3736
Failed transactions: 0
Longest transaction: 22.39
Shortest transaction: 0.33

###Unicorn

Transactions: 3799 hits
Availability: 100.00 %
Elapsed time: 29.46 secs
Data transferred: 48.42 MB
Response time: 3.42 secs
Transaction rate: 128.95 trans/sec
Throughput: 1.64 MB/sec
Concurrency: 441.32
Successful transactions: 3799
Failed transactions: 0
Longest transaction: 27.92
Shortest transaction: 0.28

###Puma

Transactions: 2990 hits
Availability: 100.00 %
Elapsed time: 29.32 secs
Data transferred: 38.09 MB
Response time: 4.17 secs
Transaction rate: 101.98 trans/sec
Throughput: 1.30 MB/sec
Concurrency: 425.31
Successful transactions: 2990
Failed transactions: 0
Longest transaction: 29.03
Shortest transaction: 0.29

##Links:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment