Skip to content

Instantly share code, notes, and snippets.

@yoppi
Last active February 12, 2017 08:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yoppi/00d5a4f1aabc8a21d220e9f9115ee436 to your computer and use it in GitHub Desktop.
Save yoppi/00d5a4f1aabc8a21d220e9f9115ee436 to your computer and use it in GitHub Desktop.
Unicorn vs Puma

Unicorn

 < ab -n 10000 -c 100 'http://127.0.0.1:8080/loadtest'
This is ApacheBench, Version 2.3 <$Revision: 1706008 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking 127.0.0.1 (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Completed 10000 requests
Finished 10000 requests


Server Software:
Server Hostname:        127.0.0.1
Server Port:            8080

Document Path:          /loadtest
Document Length:        13 bytes

Concurrency Level:      100
Time taken for tests:   13.129 seconds
Complete requests:      10000
Failed requests:        0
Total transferred:      3990000 bytes
HTML transferred:       130000 bytes
Requests per second:    761.68 [#/sec] (mean)
Time per request:       131.289 [ms] (mean)
Time per request:       1.313 [ms] (mean, across all concurrent requests)
Transfer rate:          296.79 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    1   8.8      0     842
Processing:    11  130  84.5    114    1121
Waiting:       10  128  83.9    113    1120
Total:         14  130  84.6    114    1121

Percentage of the requests served within a certain time (ms)
  50%    114
  66%    118
  75%    123
  80%    129
  90%    143
  95%    175
  98%    308
  99%    843
 100%   1121 (longest request)

Puma

 < ab -n 10000 -c 100 'http://127.0.0.1:3000/loadtest'
This is ApacheBench, Version 2.3 <$Revision: 1706008 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking 127.0.0.1 (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Completed 10000 requests
Finished 10000 requests


Server Software:
Server Hostname:        127.0.0.1
Server Port:            3000

Document Path:          /loadtest
Document Length:        13 bytes

Concurrency Level:      100
Time taken for tests:   11.481 seconds
Complete requests:      10000
Failed requests:        0
Total transferred:      3430000 bytes
HTML transferred:       130000 bytes
Requests per second:    870.99 [#/sec] (mean)
Time per request:       114.812 [ms] (mean)
Time per request:       1.148 [ms] (mean, across all concurrent requests)
Transfer rate:          291.75 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0   46  20.8     45     207
Processing:     4   69  33.1     64     417
Waiting:        3   55  30.9     51     413
Total:         15  114  32.3    104     421

Percentage of the requests served within a certain time (ms)
  50%    104
  66%    111
  75%    122
  80%    130
  90%    152
  95%    171
  98%    210
  99%    241
 100%    421 (longest request)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment