|
延续昨天的http://hostloc.wiki/thread-43855-1-1.html 和http://hostloc.wiki/viewthread.php?tid=43921
今天拿闲置的VPS试了一下LNAMP。
debian系统,全apt安装,没编译。由于我基本没有使用apache和nginx的经验,所以配出来的LNAMP是比较裸的。
实验对象是个WordPress,这帖只贴实验数据,耐心点,比较长。配置教程之类以后再说,等我先搞懂了。
静态js文件
LLMP:- Server Software: lighttpd/1.4.28-devel-485M
- Server Hostname: a.ream.at
- Server Port: 80
- Document Path: /wp-includes/js/jquery/jquery.js?ver=1.4.2
- Document Length: 72194 bytes
- Concurrency Level: 100
- Time taken for tests: 1.973 seconds
- Complete requests: 10000
- Failed requests: 0
- Write errors: 0
- Total transferred: 725470000 bytes
- HTML transferred: 721940000 bytes
- Requests per second: 5068.67 [#/sec] (mean)
- Time per request: 19.729 [ms] (mean)
- Time per request: 0.197 [ms] (mean, across all concurrent requests)
- Transfer rate: 359098.65 [Kbytes/sec] received
- Connection Times (ms)
- min mean[+/-sd] median max
- Connect: 0 1 1.6 0 18
- Processing: 6 19 4.3 19 58
- Waiting: 2 17 5.3 17 45
- Total: 9 20 4.8 19 71
- Percentage of the requests served within a certain time (ms)
- 50% 19
- 66% 20
- 75% 21
- 80% 22
- 90% 24
- 95% 26
- 98% 28
- 99% 30
- 100% 71 (longest request)
复制代码 LNAMP:- Server Software: nginx/0.7.67
- Server Hostname: a.ream.at
- Server Port: 80
- Document Path: /wp-includes/js/jquery/jquery.js?ver=1.4.2
- Document Length: 72194 bytes
- Concurrency Level: 100
- Time taken for tests: 1.714 seconds
- Complete requests: 10000
- Failed requests: 0
- Write errors: 0
- Total transferred: 724220000 bytes
- HTML transferred: 721940000 bytes
- Requests per second: 5834.89 [#/sec] (mean)
- Time per request: 17.138 [ms] (mean)
- Time per request: 0.171 [ms] (mean, across all concurrent requests)
- Transfer rate: 412670.40 [Kbytes/sec] received
- Connection Times (ms)
- min mean[+/-sd] median max
- Connect: 0 1 1.1 0 13
- Processing: 6 16 3.0 16 27
- Waiting: 2 14 3.9 14 24
- Total: 11 17 2.9 16 27
- Percentage of the requests served within a certain time (ms)
- 50% 16
- 66% 18
- 75% 19
- 80% 20
- 90% 21
- 95% 22
- 98% 24
- 99% 26
- 100% 27 (longest request)
复制代码 静态png图片
LLMP:- Server Software: lighttpd/1.4.28-devel-485M
- Server Hostname: a.ream.at
- Server Port: 80
- Document Path: /wp-content/media/suguan10.png
- Document Length: 96068 bytes
- Concurrency Level: 100
- Time taken for tests: 2.074 seconds
- Complete requests: 10000
- Failed requests: 0
- Write errors: 0
- Total transferred: 963850000 bytes
- HTML transferred: 960680000 bytes
- Requests per second: 4822.14 [#/sec] (mean)
- Time per request: 20.738 [ms] (mean)
- Time per request: 0.207 [ms] (mean, across all concurrent requests)
- Transfer rate: 453888.22 [Kbytes/sec] received
- Connection Times (ms)
- min mean[+/-sd] median max
- Connect: 0 2 1.2 2 7
- Processing: 0 19 6.8 19 46
- Waiting: 0 6 3.8 5 27
- Total: 0 21 6.9 20 47
- Percentage of the requests served within a certain time (ms)
- 50% 20
- 66% 24
- 75% 25
- 80% 26
- 90% 29
- 95% 32
- 98% 37
- 99% 38
- 100% 47 (longest request)
复制代码 LNAMP:- Server Software: nginx/0.7.67
- Server Hostname: a.ream.at
- Server Port: 80
- Document Path: /wp-content/media/suguan10.png
- Document Length: 96068 bytes
- Concurrency Level: 100
- Time taken for tests: 1.826 seconds
- Complete requests: 10000
- Failed requests: 0
- Write errors: 0
- Total transferred: 962810000 bytes
- HTML transferred: 960680000 bytes
- Requests per second: 5475.35 [#/sec] (mean)
- Time per request: 18.264 [ms] (mean)
- Time per request: 0.183 [ms] (mean, across all concurrent requests)
- Transfer rate: 514816.37 [Kbytes/sec] received
- Connection Times (ms)
- min mean[+/-sd] median max
- Connect: 0 2 0.6 2 4
- Processing: 2 16 3.3 16 29
- Waiting: 1 4 3.4 3 23
- Total: 6 18 3.3 18 30
- Percentage of the requests served within a certain time (ms)
- 50% 18
- 66% 19
- 75% 20
- 80% 21
- 90% 23
- 95% 25
- 98% 28
- 99% 28
- 100% 30 (longest request)
复制代码 动态的,php的,主要部分来了,这个页面执行时间很长……不过主要是数据库查询比较多
LLMP:- Server Software: lighttpd/1.4.28-devel-485M
- Server Hostname: a.ream.at
- Server Port: 80
- Document Path: /
- Document Length: 30737 bytes
- Concurrency Level: 30
- Time taken for tests: 295.213 seconds
- Complete requests: 3000
- Failed requests: 2989
- (Connect: 0, Receive: 0, Length: 2989, Exceptions: 0)
- Write errors: 0
- Total transferred: 93327663 bytes
- HTML transferred: 92493663 bytes
- Requests per second: 10.16 [#/sec] (mean)
- Time per request: 2952.131 [ms] (mean)
- Time per request: 98.404 [ms] (mean, across all concurrent requests)
- Transfer rate: 308.73 [Kbytes/sec] received
- Connection Times (ms)
- min mean[+/-sd] median max
- Connect: 0 0 0.1 0 2
- Processing: 1668 2942 495.2 2888 8452
- Waiting: 1623 2900 494.5 2845 8392
- Total: 1668 2942 495.2 2888 8452
- Percentage of the requests served within a certain time (ms)
- 50% 2888
- 66% 2997
- 75% 3073
- 80% 3129
- 90% 3290
- 95% 3445
- 98% 3706
- 99% 4040
- 100% 8452 (longest request)
复制代码 LNAMP:- Server Software: nginx/0.7.67
- Server Hostname: a.ream.at
- Server Port: 80
- Document Path: /
- Document Length: 30637 bytes
- Concurrency Level: 30
- Time taken for tests: 312.136 seconds
- Complete requests: 3000
- Failed requests: 2999
- (Connect: 0, Receive: 0, Length: 2999, Exceptions: 0)
- Write errors: 0
- Total transferred: 93280153 bytes
- HTML transferred: 92488153 bytes
- Requests per second: 9.61 [#/sec] (mean)
- Time per request: 3121.356 [ms] (mean)
- Time per request: 104.045 [ms] (mean, across all concurrent requests)
- Transfer rate: 291.84 [Kbytes/sec] received
- Connection Times (ms)
- min mean[+/-sd] median max
- Connect: 0 0 0.2 0 2
- Processing: 2262 3063 518.9 3002 9154
- Waiting: 2262 3063 518.9 3002 9154
- Total: 2262 3064 518.9 3002 9156
- Percentage of the requests served within a certain time (ms)
- 50% 3002
- 66% 3097
- 75% 3163
- 80% 3205
- 90% 3328
- 95% 3445
- 98% 3712
- 99% 5723
- 100% 9156 (longest request)
复制代码 还是那个页面,加了个Hyper-Cache缓存插件
LLMP:- Server Software: lighttpd/1.4.28-devel-485M
- Server Hostname: a.ream.at
- Server Port: 80
- Document Path: /
- Document Length: 30936 bytes
- Concurrency Level: 100
- Time taken for tests: 12.440 seconds
- Complete requests: 10000
- Failed requests: 0
- Write errors: 0
- Total transferred: 312950000 bytes
- HTML transferred: 309360000 bytes
- Requests per second: 803.86 [#/sec] (mean)
- Time per request: 124.399 [ms] (mean)
- Time per request: 1.244 [ms] (mean, across all concurrent requests)
- Transfer rate: 24567.28 [Kbytes/sec] received
- Connection Times (ms)
- min mean[+/-sd] median max
- Connect: 0 0 0.9 0 12
- Processing: 30 123 17.0 122 192
- Waiting: 30 123 17.0 121 192
- Total: 42 124 16.7 122 193
- Percentage of the requests served within a certain time (ms)
- 50% 122
- 66% 130
- 75% 134
- 80% 138
- 90% 145
- 95% 151
- 98% 159
- 99% 166
- 100% 193 (longest request)
复制代码 LNAMP:- Server Software: nginx/0.7.67
- Server Hostname: a.ream.at
- Server Port: 80
- Document Path: /
- Document Length: 30936 bytes
- Concurrency Level: 100
- Time taken for tests: 10.412 seconds
- Complete requests: 10000
- Failed requests: 0
- Write errors: 0
- Total transferred: 312580000 bytes
- HTML transferred: 309360000 bytes
- Requests per second: 960.45 [#/sec] (mean)
- Time per request: 104.118 [ms] (mean)
- Time per request: 1.041 [ms] (mean, across all concurrent requests)
- Transfer rate: 29318.20 [Kbytes/sec] received
- Connection Times (ms)
- min mean[+/-sd] median max
- Connect: 0 0 0.7 0 9
- Processing: 10 103 37.5 117 178
- Waiting: 10 103 37.7 117 177
- Total: 18 104 37.3 117 178
- Percentage of the requests served within a certain time (ms)
- 50% 117
- 66% 129
- 75% 135
- 80% 138
- 90% 148
- 95% 154
- 98% 159
- 99% 162
- 100% 178 (longest request)
复制代码 四个测试里,LNAMP胜出3项,跑纯动态的php反而不如LLMP。
另外,神马都是浮云 缓存才是王道。 |
评分
-
查看全部评分
|