7.4. 压测结果
ROUND | hetao/0.2.0 | nginx/1.9.13 | Apache/2.2.14 | Tengine/2.1.2 |
---|---|---|---|---|
1 | 13191.46 | 4208.08 | 2472.8 | 4282.31 |
2 | 14237.18 | 4395.69 | 2466.09 | 4013.62 |
3 | 14650.89 | 4245.99 | 2471.7 | 4346.52 |
4 | 16023.53 | 4234.76 | 2454.81 | 4152.04 |
5 | 14409.31 | 4206.19 | 2469.85 | 4381.55 |
6 | 15535.74 | 4184.32 | 2458.29 | 4013.12 |
7 | 14893.44 | 4110.75 | 2471.7 | 4313.44 |
8 | 14581.95 | 4406.23 | 2467.72 | 4014.66 |
9 | 14572.83 | 4171.1 | 2481.25 | 4250.61 |
10 | 13868.79 | 4100.61 | 2479.77 | 4209.85 |
ROUND | hetao/0.7.0 | nginx/1.9.13 | Apache/2.2.14 | Tengine/2.1.2 |
---|---|---|---|---|
1 | 14661.97 | 4207.47 | 2498.64 | 4129.57 |
2 | 14751.86 | 4026.66 | 2474.3 | 4077.7 |
3 | 15424.81 | 4228.18 | 2482.39 | 4163.84 |
4 | 15393.55 | 4407.28 | 2477.92 | 4256.37 |
5 | 16013.01 | 4174.62 | 2480.06 | 3951.33 |
6 | 13500.85 | 4229.33 | 2474.44 | 4257.32 |
7 | 16960.94 | 4115.91 | 2480.42 | 4034.18 |
8 | 15429.98 | 4198.95 | 2475.3 | 3966.88 |
9 | 14829.60 | 4108.92 | 2483.37 | 4289.45 |
10 | 14901.13 | 4377.75 | 2485.03 | 3969.52 |
结论:
在开启Keep-Alive和gzip压缩、中型文件(约3.3KB)的场景下,hetao比nginx足足快了近3倍 ^_^(现代浏览器一般都开启Keep-Alive和压缩,3.3KB也算是普遍的网页大小)