Skip to content

Instantly share code, notes, and snippets.

@markuman
Last active December 23, 2018 10:44
Show Gist options
  • Save markuman/4dee74414d07a76ddc03949d85ef8a33 to your computer and use it in GitHub Desktop.
Save markuman/4dee74414d07a76ddc03949d85ef8a33 to your computer and use it in GitHub Desktop.
ab c 25 n 100 ab c100 n 1000
hug swarm scale 2 72.57 [#/sec] (mean)
longest 1126 ms
bjrön hug swarm scale 2 258.57 [#/sec] 286.29 [#/sec]
longest 122 ms 568 ms
hug swarm scale 5 243.02 [#/sec] (mean) 206.69 [#/sec] (mean)
longest 159 ms 3498 ms
uwsgi swarm scale 2 237.60 [#/sec] (mean) 272.42 [#/sec] (mean)
longest 125 ms 581 ms
uwsgi swarm scale 5 262.05 [#/sec] (mean)
longest 574 ms

without uwsgi - docker swarm mode scale=2

root@ubuntu-s-1vcpu-1gb-fra1-01:~# ab -c 25 -n 100 https://commits.git.osuv.de/index.html?user=m
This is ApacheBench, Version 2.3 <$Revision: 1807734 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking commits.git.osuv.de (be patient).....done


Server Software:        Caddy
Server Hostname:        commits.git.osuv.de
Server Port:            443
SSL/TLS Protocol:       TLSv1.2,ECDHE-RSA-AES256-GCM-SHA384,2048,256
TLS Server Name:        commits.git.osuv.de

Document Path:          /index.html?user=m
Document Length:        1117 bytes

Concurrency Level:      25
Time taken for tests:   1.378 seconds
Complete requests:      100
Failed requests:        0
Total transferred:      127300 bytes
HTML transferred:       111700 bytes
Requests per second:    72.57 [#/sec] (mean)
Time per request:       344.517 [ms] (mean)
Time per request:       13.781 [ms] (mean, across all concurrent requests)
Transfer rate:          90.21 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:       18   53  22.7     47      96
Processing:    17   96 237.6     38    1042
Waiting:       17   96 237.6     37    1042
Total:         41  149 244.4     82    1126

Percentage of the requests served within a certain time (ms)
  50%     82
  66%     93
  75%    105
  80%    123
  90%    144
  95%   1087
  98%   1124
  99%   1126
 100%   1126 (longest request)

without uwsgi - docker swarm mode scale = 5

root@ubuntu-s-1vcpu-1gb-fra1-01:~# ab -c 25 -n 100 https://commits.git.osuv.de/index.html?user=m
This is ApacheBench, Version 2.3 <$Revision: 1807734 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking commits.git.osuv.de (be patient).....done


Server Software:        Caddy
Server Hostname:        commits.git.osuv.de
Server Port:            443
SSL/TLS Protocol:       TLSv1.2,ECDHE-RSA-AES256-GCM-SHA384,2048,256
TLS Server Name:        commits.git.osuv.de

Document Path:          /index.html?user=m
Document Length:        1117 bytes

Concurrency Level:      25
Time taken for tests:   0.411 seconds
Complete requests:      100
Failed requests:        0
Total transferred:      127300 bytes
HTML transferred:       111700 bytes
Requests per second:    243.02 [#/sec] (mean)
Time per request:       102.871 [ms] (mean)
Time per request:       4.115 [ms] (mean, across all concurrent requests)
Transfer rate:          302.12 [Kbytes/sec] received

Connection Times (ms)
             min  mean[+/-sd] median   max
Connect:       21   56  12.7     59      71
Processing:    28   45  11.9     41      92
Waiting:       28   44  11.9     40      92
Total:         73  100  10.6    100     159

Percentage of the requests served within a certain time (ms)
 50%    100
 66%    104
 75%    105
 80%    106
 90%    109
 95%    113
 98%    120
 99%    159
100%    159 (longest request)

with uwsgi

root@ubuntu-s-1vcpu-1gb-fra1-01:~# ab -c 25 -n 100 https://commits.git.osuv.de/index.html?user=m
This is ApacheBench, Version 2.3 <$Revision: 1807734 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking commits.git.osuv.de (be patient).....done


Server Software:        Caddy
Server Hostname:        commits.git.osuv.de
Server Port:            443
SSL/TLS Protocol:       TLSv1.2,ECDHE-RSA-AES256-GCM-SHA384,2048,256
TLS Server Name:        commits.git.osuv.de

Document Path:          /index.html?user=m
Document Length:        1117 bytes

Concurrency Level:      25
Time taken for tests:   0.421 seconds
Complete requests:      100
Failed requests:        0
Total transferred:      123500 bytes
HTML transferred:       111700 bytes
Requests per second:    237.60 [#/sec] (mean)
Time per request:       105.219 [ms] (mean)
Time per request:       4.209 [ms] (mean, across all concurrent requests)
Transfer rate:          286.56 [Kbytes/sec] received

Connection Times (ms)
             min  mean[+/-sd] median   max
Connect:       18   62  19.5     66      90
Processing:    20   38  12.7     33      78
Waiting:       20   38  12.7     33      78
Total:         58  100  17.7     97     125

Percentage of the requests served within a certain time (ms)
 50%     97
 66%    116
 75%    117
 80%    118
 90%    120
 95%    122
 98%    124
 99%    125
100%    125 (longest request)

docker swarm mode scale 5

root@ubuntu-s-1vcpu-1gb-fra1-01:~# ab -c 100 -n 1000 https://commits.git.osuv.de/index.html?user=m
This is ApacheBench, Version 2.3 <$Revision: 1807734 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking commits.git.osuv.de (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests
Completed 800 requests
Completed 900 requests
Completed 1000 requests
Finished 1000 requests


Server Software:        Caddy
Server Hostname:        commits.git.osuv.de
Server Port:            443
SSL/TLS Protocol:       TLSv1.2,ECDHE-RSA-AES256-GCM-SHA384,2048,256
TLS Server Name:        commits.git.osuv.de

Document Path:          /index.html?user=m
Document Length:        1117 bytes

Concurrency Level:      100
Time taken for tests:   4.838 seconds
Complete requests:      1000
Failed requests:        0
Total transferred:      1273000 bytes
HTML transferred:       1117000 bytes
Requests per second:    206.69 [#/sec] (mean)
Time per request:       483.828 [ms] (mean)
Time per request:       4.838 [ms] (mean, across all concurrent requests)
Transfer rate:          256.94 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:       24  121  51.7    112     273
Processing:    63  295 406.6    202    3276
Waiting:       62  295 406.6    201    3276
Total:        165  416 417.9    323    3498

Percentage of the requests served within a certain time (ms)
  50%    323
  66%    359
  75%    368
  80%    376
  90%    452
  95%   1314
  98%   1408
  99%   3331
 100%   3498 (longest request)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment