Skip to content

Instantly share code, notes, and snippets.

@alessandrobologna
Last active April 14, 2024 04:07
Show Gist options
  • Save alessandrobologna/73febde540611dd8202680ef943e4c8d to your computer and use it in GitHub Desktop.
Save alessandrobologna/73febde540611dd8202680ef943e4c8d to your computer and use it in GitHub Desktop.
apache benchmark test

Test from us-west-2

FURL direct invocation

[cloudshell-user@ip-10-134-76-174 ~]$ ab -c 1 -n 100 -k -H "authorization: $AUTH" https://dbnmtkykig3vobqu6f73dbgiam0qxeot.lambda-url.us-west-2.on.aws/todo-lists
This is ApacheBench, Version 2.3 <$Revision: 1903618 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking dbnmtkykig3vobqu6f73dbgiam0qxeot.lambda-url.us-west-2.on.aws (be patient).....done


Server Software:        
Server Hostname:        dbnmtkykig3vobqu6f73dbgiam0qxeot.lambda-url.us-west-2.on.aws
Server Port:            443
SSL/TLS Protocol:       TLSv1.3,TLS_AES_128_GCM_SHA256,2048,128
Server Temp Key:        X25519 253 bits
TLS Server Name:        dbnmtkykig3vobqu6f73dbgiam0qxeot.lambda-url.us-west-2.on.aws

Document Path:          /todo-lists
Document Length:        305 bytes

Concurrency Level:      1
Time taken for tests:   2.384 seconds
Complete requests:      100
Failed requests:        0
Keep-Alive requests:    100
Total transferred:      75600 bytes
HTML transferred:       30500 bytes
Requests per second:    41.95 [#/sec] (mean)
Time per request:       23.840 [ms] (mean)
Time per request:       23.840 [ms] (mean, across all concurrent requests)
Transfer rate:          30.97 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.4      0       4
Processing:    16   24  20.4     22     223
Waiting:       16   24  20.4     22     223
Total:         16   24  20.4     22     223

Percentage of the requests served within a certain time (ms)
  50%     22
  66%     23
  75%     24
  80%     25
  90%     26
  95%     29
  98%     30
  99%    223
 100%    223 (longest request)

CloudFront + FURL

[cloudshell-user@ip-10-134-76-174 ~]$ ab -c 1 -n 100 -k -H "authorization: $AUTH" https://d17bj8zz01o4vw.cloudfront.net/todo-lists
This is ApacheBench, Version 2.3 <$Revision: 1903618 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking d17bj8zz01o4vw.cloudfront.net (be patient).....done


Server Software:        
Server Hostname:        d17bj8zz01o4vw.cloudfront.net
Server Port:            443
SSL/TLS Protocol:       TLSv1.3,TLS_AES_128_GCM_SHA256,2048,128
Server Temp Key:        X25519 253 bits
TLS Server Name:        d17bj8zz01o4vw.cloudfront.net

Document Path:          /todo-lists
Document Length:        305 bytes

Concurrency Level:      1
Time taken for tests:   3.227 seconds
Complete requests:      100
Failed requests:        0
Keep-Alive requests:    100
Total transferred:      95300 bytes
HTML transferred:       30500 bytes
Requests per second:    30.99 [#/sec] (mean)
Time per request:       32.270 [ms] (mean)
Time per request:       32.270 [ms] (mean, across all concurrent requests)
Transfer rate:          28.84 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   1.6      0      16
Processing:    26   32   6.4     30      60
Waiting:       26   32   6.4     30      60
Total:         26   32   7.2     30      76

Percentage of the requests served within a certain time (ms)
  50%     30
  66%     31
  75%     32
  80%     34
  90%     45
  95%     47
  98%     53
  99%     76
 100%     76 (longest request)

APIGW + Authorizer

[cloudshell-user@ip-10-134-76-174 ~]$ ab -c 1 -n 100 -k -H "authorization: $AUTH" https://1cql2qj0ki.execute-api.us-west-2.amazonaws.com/todo-lists
This is ApacheBench, Version 2.3 <$Revision: 1903618 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking 1cql2qj0ki.execute-api.us-west-2.amazonaws.com (be patient).....done


Server Software:        
Server Hostname:        1cql2qj0ki.execute-api.us-west-2.amazonaws.com
Server Port:            443
SSL/TLS Protocol:       TLSv1.3,TLS_AES_128_GCM_SHA256,2048,128
Server Temp Key:        X25519 253 bits
TLS Server Name:        1cql2qj0ki.execute-api.us-west-2.amazonaws.com

Document Path:          /todo-lists
Document Length:        305 bytes

Concurrency Level:      1
Time taken for tests:   2.880 seconds
Complete requests:      100
Failed requests:        0
Keep-Alive requests:    100
Total transferred:      58600 bytes
HTML transferred:       30500 bytes
Requests per second:    34.72 [#/sec] (mean)
Time per request:       28.803 [ms] (mean)
Time per request:       28.803 [ms] (mean, across all concurrent requests)
Transfer rate:          19.87 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.4      0       4
Processing:    19   29   5.4     28      63
Waiting:       19   29   5.4     28      62
Total:         19   29   5.5     28      63

Percentage of the requests served within a certain time (ms)
  50%     28
  66%     30
  75%     31
  80%     32
  90%     35
  95%     36
  98%     43
  99%     63
 100%     63 (longest request)

Test from ap-southeast-2

FURL direct invocation

[cloudshell-user@ip-10-134-43-23 ~]$ ab -c 1 -n 100 -k -H "authorization: $AUTH" https://dbnmtkykig3vobqu6f73dbgiam0qxeot.lambda-url.us-west-2.on.aws/todo-lists
This is ApacheBench, Version 2.3 <$Revision: 1903618 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking dbnmtkykig3vobqu6f73dbgiam0qxeot.lambda-url.us-west-2.on.aws (be patient).....done

Server Software:        
Server Hostname:        dbnmtkykig3vobqu6f73dbgiam0qxeot.lambda-url.us-west-2.on.aws
Server Port:            443
SSL/TLS Protocol:       TLSv1.3,TLS_AES_128_GCM_SHA256,2048,128
Server Temp Key:        X25519 253 bits
TLS Server Name:        dbnmtkykig3vobqu6f73dbgiam0qxeot.lambda-url.us-west-2.on.aws

Document Path:          /todo-lists
Document Length:        305 bytes

Concurrency Level:      1
Time taken for tests:   17.351 seconds
Complete requests:      100
Failed requests:        0
Keep-Alive requests:    100
Total transferred:      75600 bytes
HTML transferred:       30500 bytes
Requests per second:    5.76 [#/sec] (mean)
Time per request:       173.510 [ms] (mean)
Time per request:       173.510 [ms] (mean, across all concurrent requests)
Transfer rate:          4.25 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    3  28.0      0     280
Processing:   154  171  98.4    159    1140
Waiting:      154  171  98.4    159    1140
Total:        154  174 126.2    159    1420

Percentage of the requests served within a certain time (ms)
  50%    159
  66%    161
  75%    162
  80%    163
  90%    169
  95%    171
  98%    241
  99%   1420
 100%   1420 (longest request)

CloudFront + FURL

[cloudshell-user@ip-10-134-43-23 ~]$ ab -c 1 -n 100 -k -H "authorization: $AUTH" https://d17bj8zz01o4vw.cloudfront.net/todo-lists
This is ApacheBench, Version 2.3 <$Revision: 1903618 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking d17bj8zz01o4vw.cloudfront.net (be patient).....done


Server Software:        
Server Hostname:        d17bj8zz01o4vw.cloudfront.net
Server Port:            443
SSL/TLS Protocol:       TLSv1.3,TLS_AES_128_GCM_SHA256,2048,128
Server Temp Key:        X25519 253 bits
TLS Server Name:        d17bj8zz01o4vw.cloudfront.net

Document Path:          /todo-lists
Document Length:        305 bytes

Concurrency Level:      1
Time taken for tests:   19.872 seconds
Complete requests:      100
Failed requests:        0
Keep-Alive requests:    100
Total transferred:      95200 bytes
HTML transferred:       30500 bytes
Requests per second:    5.03 [#/sec] (mean)
Time per request:       198.719 [ms] (mean)
Time per request:       198.719 [ms] (mean, across all concurrent requests)
Transfer rate:          4.68 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.6      0       6
Processing:   155  199 121.7    160     615
Waiting:      155  199 121.7    160     615
Total:        155  199 121.9    160     621

Percentage of the requests served within a certain time (ms)
  50%    160
  66%    162
  75%    163
  80%    164
  90%    174
  95%    581
  98%    583
  99%    621
 100%    621 (longest request)

APIGW + Authorizer

[cloudshell-user@ip-10-134-43-23 ~]$ ab -c 1 -n 100 -k -H "authorization: $AUTH" https://1cql2qj0ki.execute-api.us-west-2.amazonaws.com/todo-lists
This is ApacheBench, Version 2.3 <$Revision: 1903618 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking 1cql2qj0ki.execute-api.us-west-2.amazonaws.com (be patient).....done


Server Software:        
Server Hostname:        1cql2qj0ki.execute-api.us-west-2.amazonaws.com
Server Port:            443
SSL/TLS Protocol:       TLSv1.3,TLS_AES_128_GCM_SHA256,2048,128
Server Temp Key:        X25519 253 bits
TLS Server Name:        1cql2qj0ki.execute-api.us-west-2.amazonaws.com

Document Path:          /todo-lists
Document Length:        305 bytes

Concurrency Level:      1
Time taken for tests:   18.559 seconds
Complete requests:      100
Failed requests:        0
Keep-Alive requests:    100
Total transferred:      58600 bytes
HTML transferred:       30500 bytes
Requests per second:    5.39 [#/sec] (mean)
Time per request:       185.588 [ms] (mean)
Time per request:       185.588 [ms] (mean, across all concurrent requests)
Transfer rate:          3.08 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    3  28.2      0     282
Processing:   160  183  27.6    174     396
Waiting:      160  183  27.6    174     396
Total:        160  186  52.7    174     679

Percentage of the requests served within a certain time (ms)
  50%    174
  66%    195
  75%    198
  80%    202
  90%    204
  95%    210
  98%    218
  99%    679
 100%    679 (longest request)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment