通过线下虚拟机做实际测试,寻找 SSL 的优化方法
[root@fcdtest-haproxy ~]# ab -n 10000 -c 100 https://imga.yukusoft.com/cdntest.apk
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking imga.yukusoft.com (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: nginx/1.9.9
Server Hostname: imga.yukusoft.com
Server Port: 443
SSL/TLS Protocol: TLSv1/SSLv3,ECDHE-RSA-AES256-GCM-SHA384,2048,256
Document Path: /cdntest.apk
Document Length: 1895420 bytes
Concurrency Level: 100
Time taken for tests: 113.134 seconds
Complete requests: 10000
Failed requests: 0
Write errors: 0
Total transferred: 18966427184 bytes
HTML transferred: 18963635789 bytes
Requests per second: 88.39 [#/sec] (mean)
Time per request: 1131.335 [ms] (mean)
Time per request: 11.313 [ms] (mean, across all concurrent requests)
Transfer rate: 163717.15 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 10 83 59.0 68 532
Processing: 22 1046 88.5 1056 1572
Waiting: 0 27 23.7 20 228
Total: 32 1129 106.6 1123 2088
Percentage of the requests served within a certain time (ms)
50% 1123
66% 1132
75% 1141
80% 1148
90% 1179
95% 1225
98% 1291
99% 1369
100% 2088 (longest request)
[root@fcdtest-haproxy ~]# ab -n 10000 -c 100 https://imga.yukusoft.com/cdntest.apk
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking imga.yukusoft.com (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: nginx/1.9.9
Server Hostname: imga.yukusoft.com
Server Port: 443
SSL/TLS Protocol: TLSv1/SSLv3,ECDHE-RSA-AES256-GCM-SHA384,2048,256
Document Path: /cdntest.apk
Document Length: 1895420 bytes
Concurrency Level: 100
Time taken for tests: 113.258 seconds
Complete requests: 10000
Failed requests: 0
Write errors: 0
Total transferred: 18968364194 bytes
HTML transferred: 18965572520 bytes
Requests per second: 88.29 [#/sec] (mean)
Time per request: 1132.585 [ms] (mean)
Time per request: 11.326 [ms] (mean, across all concurrent requests)
Transfer rate: 163553.27 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 10 81 58.4 64 539
Processing: 23 1049 90.2 1061 1736
Waiting: 1 25 22.9 17 231
Total: 33 1130 108.6 1125 2241
Percentage of the requests served within a certain time (ms)
50% 1125
66% 1134
75% 1140
80% 1144
90% 1156