一、测试环境
1、工具:ab
2、系统环境:VMare / CentOS release 6.6 (Final)
3、软件环境:Apache
4、测试文件:/phpinfo.php
二、比较
# ab -dSk -c10 -n100 | # ab -dSk -c10 -n500 | # ab -dSk -c10 -n2000 | |||||||
http | https | 比较 | http | https | 比较 | http | https | 比较 | |
Document Length: (bytes) |
50366 | 55472 | 50366 | 55472 | 50366 | 55472 | |||
Time taken for tests: (seconds) |
0.087 | 0.591 | 6.79 | 0.365 | 2.818 | 7.72 | 1.434 | 11.237 | 7.84 |
Total transferred: (bytes) |
5053800 | 5564400 | 25269000 | 28155864 | 101076000 | 111343644 | |||
HTML transferred: (bytes) |
5036600 | 5547200 | 25183000 | 28068832 | 100732000 | 110999472 | |||
Requests per second:(次) |
1144.13 | 169.08 | 6.77 | 1370.04 | 177.44 | 1394.66 | 177.98 | 7.84 | |
Time per request: (ms) |
8.74 | 59.144 | 6.77 | 7.299 | 56.359 | 7.72 | 7.17 | 56.187 | 7.84 |
Time per request: (ms) |
0.874 | 5.914 | 6.77 | 0.73 | 5.636 | 7.72 | 0.717 | 5.619 | 7.84 |
Transfer rate:(kb) |
56466.62 | 9187.67 | 6.15 | 67616.26 | 9757.5 | 6.93 | 68831.53 | 9676.04 | 7.11 |
Connect: (ms) |
4 | 29 | 7.25 | 3 | 28 | 9.33 | 3 | 20 | 6.67 |
Processing: (ms) |
5 | 30 | 6.00 | 4 | 28 | 7.00 | 4 | 36 | 9.00 |
Total: (ms) | 9 | 59 | 6.56 | 7 | 56 | 8.00 | 7 | 56 | 8.00 |
# ab -dSk -c30 -n100 | # ab -dSk -c30 -n500 | # ab -dSk -c30 -n2000 | |||||||
http | https | 比较 | http | https | 比较 | http | https | 比较 | |
Document Length: (bytes) |
50366 | 55472 | 50366 | 55472 | 50366 | 55472 | |||
Time taken for tests: (seconds) |
0.086 | 0.611 | 7.10 | 0.379 | 2.864 | 7.56 | 1.49 | 11.403 | 7.65 |
Total transferred: (bytes) |
5135720 | 5564400 | 25572228 | 28100220 | 101227614 | 111510576 | |||
HTML transferred: (bytes) |
5116800 | 5547200 | 25485196 | 28013360 | 100883098 | 111165888 | |||
Requests per second:(次) |
1165.54 | 170.56 | 6.83 | 1318.72 | 174.6 | 7.55 | 1342.37 | 175.39 | 7.65 |
Time per request: (ms) |
25.739 | 175.896 | 6.83 | 22.749 | 171.821 | 7.55 | 22.349 | 171.043 | 7.65 |
Time per request: (ms) |
0.858 | 5.863 | 6.83 | 0.758 | 5.727 | 7.56 | 0.745 | 5.701 | 7.65 |
Transfer rate:(kb) |
58456.02 | 9267.97 | 6.31 | 65864.39 | 9582.61 | 6.87 | 66350.06 | 9549.96 | 6.95 |
Connect: (ms) |
8 | 99 | 12.38 | 7 | 101 | 14.43 | 7 | 82 | 11.71 |
Processing: (ms) |
15 | 63 | 4.20 | 15 | 66 | 4.40 | 15 | 88 | 5.87 |
Total: (ms) | 23 | 162 | 7.04 | 22 | 167 | 7.59 | 22 | 170 | 7.73 |
# ab -dSk -c50 -n100 | # ab -dSk -c50 -n500 | # ab -dSk -c50 -n2000 | |||||||
http | https | 比较 | http | https | 比较 | http | https | 比较 | |
Document Length: (bytes) |
50366 | 55472 | 50366 | 55472 | 50366 | 55472 | |||
Time taken for tests: (seconds) |
0.084 | 0.594 | 7.07 | 0.38 | 2.852 | 7.51 | 1.489 | 11.437 | 7.68 |
Total transferred: (bytes) |
5053800 | 5645009 | 25269000 | 27933288 | 101631918 | 111343644 | |||
HTML transferred: (bytes) |
5036600 | 5627465 | 25183000 | 27846944 | 101286026 | 110999472 | |||
Requests per second:(次) |
1188.1 | 168.34 | 7.06 | 1314.99 | 175.31 | 7.50 | 1343.61 | 174.87 | 7.68 |
Time per request: (ms) |
42.084 | 297.012 | 7.06 | 38.023 | 285.208 | 7.50 | 37.213 | 285.925 | 7.68 |
Time per request: (ms) |
0.842 | 5.94 | 7.05 | 0.76 | 5.704 | 7.51 | 0.744 | 5.719 | 7.69 |
Transfer rate:(kb) |
58636.91 | 9280.27 | 6.32 | 64899.21 | 9564.48 | 6.79 | 66676.78 | 9507.21 | 7.01 |
Connect: (ms) |
10 | 189 | 18.90 | 8 | 209 | 26.13 | 7 | 170 | 24.29 |
Processing: (ms) |
26 | 61 | 2.35 | 28 | 68 | 2.43 | 29 | 113 | 3.90 |
Total: (ms) | 36 | 250 | 6.94 | 36 | 277 | 7.69 | 36 | 283 | 7.86 |
# ab -dSk -c100 -n100 | # ab -dSk -c100 -n500 | # ab -dSk -c100 -n2000 | |||||||
http | https | 比较 | http | https | 比较 | http | https | 比较 | |
Document Length: (bytes) |
50366 | 55472 | 50366 | 55472 | 50366 | 55472 | |||
Time taken for tests: (seconds) |
0.073 | 0.566 | 7.75 | 0.375 | 2.958 | 7.89 | 1.486 | 12.11 | 8.15 |
Total transferred: (bytes) |
5053800 | 5564400 | 25269000 | 28712304 | 101379228 | 114591853 | |||
HTML transferred: (bytes) |
5036600 | 5547200 | 25183000 | 28623552 | 101034196 | 114237533 | |||
Requests per second:(次) |
1368.98 | 176.67 | 7.75 | 1333.64 | 169.04 | 7.89 | 1345.72 | 165.15 | 8.15 |
Time per request: (ms) |
73.047 | 566.03 | 7.75 | 74.983 | 591.56 | 7.89 | 74.309 | 605.524 | 8.15 |
Time per request: (ms) |
0.73 | 5.66 | 7.75 | 0.75 | 5.916 | 7.89 | 0.743 | 6.055 | 8.15 |
Transfer rate:(kb) |
67564.06 | 9600.17 | 7.04 | 65819.61 | 9479.8 | 6.94 | 66615.45 | 9240.43 | 7.21 |
Connect: (ms) |
14 | 306 | 21.86 | 8 | 467 | 58.38 | 8 | 388 | 48.50 |
Processing: (ms) |
36 | 55 | 1.53 | 62 | 69 | 1.11 | 64 | 198 | 3.09 |
Total: (ms) | 50 | 361 | 7.22 | 70 | 536 | 7.66 | 72 | 586 | 8.14 |