MAIKE官网Web性能评估与优化
来自Jack's Lab
(版本间的差异)
(以“== 评估测试 == 杭州数据中心访问北京主机(一个简单的静态页面): <source lang=bash> # ab -c50 -n3000 http://icamgo.com/index.htm This is...”为内容创建页面) |
(→评估测试) |
||
(未显示1个用户的1个中间版本) | |||
第1行: | 第1行: | ||
== 评估测试 == | == 评估测试 == | ||
− | 杭州数据中心访问北京主机(一个简单的静态页面): | + | ;;杭州数据中心访问北京主机(一个简单的静态页面): |
<source lang=bash> | <source lang=bash> | ||
第59行: | 第59行: | ||
99% 348 | 99% 348 | ||
100% 353 (longest request) | 100% 353 (longest request) | ||
+ | </source> | ||
+ | |||
+ | |||
+ | ;;北京联通ADSL 10M 访问北京主机: | ||
+ | |||
+ | <source lang=bash> | ||
+ | $ ab -c50 -n3000 http://icamgo.com/index.htm | ||
+ | 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 icamgo.com (be patient) | ||
+ | ...... | ||
+ | ...... | ||
+ | Finished 3000 requests | ||
+ | |||
+ | |||
+ | Server Software: Apache/2.x.x | ||
+ | Server Hostname: icamgo.com | ||
+ | Server Port: 80 | ||
+ | |||
+ | Document Path: /index.htm | ||
+ | Document Length: 907 bytes | ||
+ | |||
+ | Concurrency Level: 50 | ||
+ | Time taken for tests: 28.082 seconds | ||
+ | Complete requests: 3000 | ||
+ | Failed requests: 0 | ||
+ | Write errors: 0 | ||
+ | Total transferred: 3534000 bytes | ||
+ | HTML transferred: 2721000 bytes | ||
+ | Requests per second: 106.83 [#/sec] (mean) | ||
+ | Time per request: 468.025 [ms] (mean) | ||
+ | Time per request: 9.361 [ms] (mean, across all concurrent requests) | ||
+ | Transfer rate: 122.90 [Kbytes/sec] received | ||
+ | |||
+ | Connection Times (ms) | ||
+ | min mean[+/-sd] median max | ||
+ | Connect: 18 217 94.6 245 513 | ||
+ | Processing: 13 248 49.2 246 514 | ||
+ | Waiting: 13 248 49.2 246 514 | ||
+ | Total: 73 465 129.2 497 816 | ||
+ | |||
+ | Percentage of the requests served within a certain time (ms) | ||
+ | 50% 497 | ||
+ | 66% 526 | ||
+ | 75% 547 | ||
+ | 80% 562 | ||
+ | 90% 620 | ||
+ | 95% 649 | ||
+ | 98% 690 | ||
+ | 99% 733 | ||
+ | 100% 816 (longest request) | ||
</source> | </source> | ||
2015年1月15日 (四) 10:37的最后版本
[编辑] 评估测试
- 杭州数据中心访问北京主机(一个简单的静态页面):
# ab -c50 -n3000 http://icamgo.com/index.htm 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 icamgo.com (be patient) Completed 300 requests Completed 600 requests Completed 900 requests Completed 1200 requests Completed 1500 requests Completed 1800 requests Completed 2100 requests Completed 2400 requests Completed 2700 requests Completed 3000 requests Finished 3000 requests Server Software: Apache/2.x.x Server Hostname: icamgo.com Server Port: 80 Document Path: /index.htm Document Length: 907 bytes Concurrency Level: 50 Time taken for tests: 16.177 seconds Complete requests: 3000 Failed requests: 0 Write errors: 0 Total transferred: 3534000 bytes HTML transferred: 2721000 bytes Requests per second: 185.45 [#/sec] (mean) Time per request: 269.619 [ms] (mean) Time per request: 5.392 [ms] (mean, across all concurrent requests) Transfer rate: 213.34 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 23 114 39.0 103 201 Processing: 25 153 39.6 150 300 Waiting: 24 153 39.5 150 300 Total: 48 267 33.3 252 353 Percentage of the requests served within a certain time (ms) 50% 252 66% 298 75% 299 80% 300 90% 301 95% 302 98% 303 99% 348 100% 353 (longest request)
- 北京联通ADSL 10M 访问北京主机:
$ ab -c50 -n3000 http://icamgo.com/index.htm 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 icamgo.com (be patient) ...... ...... Finished 3000 requests Server Software: Apache/2.x.x Server Hostname: icamgo.com Server Port: 80 Document Path: /index.htm Document Length: 907 bytes Concurrency Level: 50 Time taken for tests: 28.082 seconds Complete requests: 3000 Failed requests: 0 Write errors: 0 Total transferred: 3534000 bytes HTML transferred: 2721000 bytes Requests per second: 106.83 [#/sec] (mean) Time per request: 468.025 [ms] (mean) Time per request: 9.361 [ms] (mean, across all concurrent requests) Transfer rate: 122.90 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 18 217 94.6 245 513 Processing: 13 248 49.2 246 514 Waiting: 13 248 49.2 246 514 Total: 73 465 129.2 497 816 Percentage of the requests served within a certain time (ms) 50% 497 66% 526 75% 547 80% 562 90% 620 95% 649 98% 690 99% 733 100% 816 (longest request)