Skip to content

Instantly share code, notes, and snippets.

@itayw
Created July 15, 2018 09:46
Show Gist options
  • Save itayw/621659ac068389951e1e96bd2df4af28 to your computer and use it in GitHub Desktop.
Save itayw/621659ac068389951e1e96bd2df4af28 to your computer and use it in GitHub Desktop.
Shield/Auth improvements

Test: 10,000 requests over 50 concurrent connections to _cat/indices

Current version:

ab -n 10000 -c 50 -A admin:echo https://127.0.0.1:9201/_cat/indices
This is ApacheBench, Version 2.3 <$Revision: 1796539 $>
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:            9201
SSL/TLS Protocol:       TLSv1.2,ECDHE-RSA-AES128-GCM-SHA256,2048,128

Document Path:          /_cat/indices
Document Length:        1066 bytes

Concurrency Level:      50
Time taken for tests:   68.028 seconds
Complete requests:      10000
Failed requests:        0
Total transferred:      12040000 bytes
HTML transferred:       10660000 bytes
Requests per second:    147.00 [#/sec] (mean)
Time per request:       340.138 [ms] (mean)
Time per request:       6.803 [ms] (mean, across all concurrent requests)
Transfer rate:          172.84 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        2   26  15.0     28     228
Processing:     7  313 1807.6     66   13887
Waiting:        7  309 1807.7     60   13884
Total:         12  339 1810.7     96   13963

Percentage of the requests served within a certain time (ms)
  50%     96
  66%    106
  75%    112
  80%    116
  90%    127
  95%    142
  98%   8374
  99%  13279
 100%  13963 (longest request)

Next release:

ab -n 10000 -c 50 -A admin:echo https://127.0.0.1:9201/_cat/indices
This is ApacheBench, Version 2.3 <$Revision: 1796539 $>
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:            9201
SSL/TLS Protocol:       TLSv1.2,ECDHE-RSA-AES128-GCM-SHA256,2048,128

Document Path:          /_cat/indices
Document Length:        1066 bytes

Concurrency Level:      50
Time taken for tests:   25.183 seconds
Complete requests:      10000
Failed requests:        5
   (Connect: 0, Receive: 0, Length: 5, Exceptions: 0)
Non-2xx responses:      5
Total transferred:      12034400 bytes
HTML transferred:       10654670 bytes
Requests per second:    397.09 [#/sec] (mean)
Time per request:       125.916 [ms] (mean)
Time per request:       2.518 [ms] (mean, across all concurrent requests)
Transfer rate:          466.67 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        3   36  12.9     35     232
Processing:    27   90 157.8     73    3597
Waiting:       20   84 158.0     68    3596
Total:         42  126 161.4    109    3685

Percentage of the requests served within a certain time (ms)
  50%    109
  66%    118
  75%    125
  80%    130
  90%    151
  95%    185
  98%    225
  99%    272
 100%   3685 (longest request)

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