http://www.tweaked.io/benchmarking/
可能預先安裝 ab 了。用 ab --help
檢查
總共發出 20 個 request,同一時間點同時送出 4 個 request
ab -c 4 -n 20 http://plugins.yosgo.com/
his is ApacheBench, Version 2.3 <$Revision: 1826891 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking plugins.yosgo.com (be patient).....done
Server Software: cloudflare
Server Hostname: plugins.yosgo.com
Server Port: 80
Document Path: /
Document Length: 0 bytes
Concurrency Level: 4
Time taken for tests: 1.900 seconds
Complete requests: 20
Failed requests: 0
Non-2xx responses: 20
Total transferred: 4940 bytes
HTML transferred: 0 bytes
Requests per second: 10.53 [#/sec] (mean)
Time per request: 379.992 [ms] (mean)
Time per request: 94.998 [ms] (mean, across all concurrent requests)
Transfer rate: 2.54 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 153 156 1.6 156 158
Processing: 156 161 2.0 161 164
Waiting: 156 160 2.0 161 164
Total: 311 316 2.5 317 320
Percentage of the requests served within a certain time (ms)
50% 317
66% 317
75% 318
80% 319
90% 319
95% 320
98% 320
99% 320
100% 320 (longest request)
總共發出 20 個 request,同一時間點同時送出 4 個 request
ab -c 4 -n 20 https://jioukou-v2-api-server.herokuapp.com/
This is ApacheBench, Version 2.3 <$Revision: 1826891 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking jioukou-v2-api-server.herokuapp.com (be patient).....done
Server Software: Cowboy
Server Hostname: jioukou-v2-api-server.herokuapp.com
Server Port: 443
SSL/TLS Protocol: TLSv1.2,ECDHE-RSA-AES128-GCM-SHA256,2048,128
TLS Server Name: jioukou-v2-api-server.herokuapp.com
Document Path: /
Document Length: 2 bytes
Concurrency Level: 4
Time taken for tests: 4.920 seconds
Complete requests: 20
Failed requests: 0
Total transferred: 9260 bytes
HTML transferred: 40 bytes
Requests per second: 4.06 [#/sec] (mean)
Time per request: 984.090 [ms] (mean)
Time per request: 246.022 [ms] (mean, across all concurrent requests)
Transfer rate: 1.84 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 601 617 12.8 613 640
Processing: 196 200 3.9 199 213
Waiting: 195 199 2.7 199 205
Total: 800 816 12.8 813 841
Percentage of the requests served within a certain time (ms)
50% 813
66% 819
75% 827
80% 832
90% 840
95% 841
98% 841
99% 841
100% 841 (longest request)
ab -c 10 -n 1000 https://www.hotjar.com/
This is ApacheBench, Version 2.3 <$Revision: 1826891 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking www.hotjar.com (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: cloudflare
Server Hostname: www.hotjar.com
Server Port: 443
SSL/TLS Protocol: TLSv1.2,ECDHE-ECDSA-CHACHA20-POLY1305,256,256
TLS Server Name: www.hotjar.com
Document Path: /
Document Length: 47716 bytes
Concurrency Level: 10
Time taken for tests: 28.281 seconds
Complete requests: 1000
Failed requests: 1
(Connect: 0, Receive: 0, Length: 1, Exceptions: 0)
Total transferred: 48598619 bytes
HTML transferred: 47714987 bytes
Requests per second: 35.36 [#/sec] (mean)
Time per request: 282.815 [ms] (mean)
Time per request: 28.281 [ms] (mean, across all concurrent requests)
Transfer rate: 1678.11 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 49 136 128.1 105 1147
Processing: 37 140 110.2 117 1775
Waiting: 15 52 28.9 49 538
Total: 93 277 167.6 229 1890
Percentage of the requests served within a certain time (ms)
50% 229
66% 259
75% 291
80% 317
90% 465
95% 541
98% 802
99% 1150
100% 1890 (longest request)
ab -c 4 -n 20 https://nfkzfh8t2a.execute-api.ap-southeast-1.amazonaws.com/v1/graphql
This is ApacheBench, Version 2.3 <$Revision: 1826891 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking nfkzfh8t2a.execute-api.ap-southeast-1.amazonaws.com (be patient).....done
Server Software:
Server Hostname: nfkzfh8t2a.execute-api.ap-southeast-1.amazonaws.com
Server Port: 443
SSL/TLS Protocol: TLSv1.2,ECDHE-RSA-AES128-GCM-SHA256,2048,128
TLS Server Name: nfkzfh8t2a.execute-api.ap-southeast-1.amazonaws.com
Document Path: /v1/graphql
Document Length: 18 bytes
Concurrency Level: 4
Time taken for tests: 1.674 seconds
Complete requests: 20
Failed requests: 0
Non-2xx responses: 20
Total transferred: 9740 bytes
HTML transferred: 360 bytes
Requests per second: 11.94 [#/sec] (mean)
Time per request: 334.882 [ms] (mean)
Time per request: 83.721 [ms] (mean, across all concurrent requests)
Transfer rate: 5.68 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 38 56 20.3 52 126
Processing: 67 230 255.4 161 857
Waiting: 67 229 255.6 161 857
Total: 110 286 255.0 218 913
Percentage of the requests served within a certain time (ms)
50% 218
66% 229
75% 254
80% 301
90% 896
95% 913
98% 913
99% 913
100% 913 (longest request)