声明:
1、本文档适用于Xpaper多媒体数字报发布系统测试人员,它将描述在相应条件下软件性能。
2、名词界定:本文档所有“xpaper系统”、“数字报系统”“数字报软件”都视同“Xpaper多媒体数字报发布系统”的简写或缩写。
3、Xpaper多媒体数字报发布系统,以php为开发语言,在安装使用过程中,请遵循php相关标准安装和操作。
1. 压力测试环境
1.1. 服务器配置
操作系统:windows2003 r2
Server Software: Microsoft-IIS/6.0
Server Hostname: d.jinostart.com
Server Port: 80
此服务器为租用云享主机
2. 测试工具
Apache的ab 工具
3. 测试条件与结果
主要测试一次请求10、100、1000并发数请求的测试结果
3.1. 共10个请求,并发10请求的压力测试结果
Microsoft Windows XP [版本 5.1.2600]
(C) 版权所有 1985-2001 Microsoft Corp.
C:\Documents and Settings\Administrator>cd C:\Program Files\Apache Software Foundation\Apache2.2\bin
C:\Program Files\Apache Software Foundation\Apache2.2\bin>ab -n 10 -c 10 http://d.jinostart.com/
This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 2006 The Apache Software Foundation, http://www.apache.org/
Benchmarking d.jinostart.com (be patient).....done
Server Software: Microsoft-IIS/6.0
Server Hostname: d.jinostart.com
Server Port: 80
Document Path: /
Document Length: 61168 bytes
Concurrency Level: 10
/*整个测试持续的时间*/
Time taken for tests: 1.281250 seconds
/*完成的请求数量*/
Complete requests: 10
/*失败的请求数量*/
Failed requests: 0
Write errors: 0
/*整个场景中的网络传输量*/
Total transferred: 615930 bytes
/*整个场景中的HTML内容传输量*/
HTML transferred: 611680 bytes
/*大家最关心的指标之一,相当于 LR 中的 每秒事务数 ,后面括号中的 mean 表示这是一个平均值*
/
Requests per second: 7.80 [#/sec] (mean)
/*大家最关心的指标之二,相当于 LR 中的 平均事务响应时间 ,后面括号中的 mean 表示这是一个平均值*/
Time per request: 1281.250 [ms] (mean)
/*这个还不知道是什么意思, ^_^ */
Time per request: 128.125 [ms] (mean, across all concurrent requests)
/*平均每秒网络上的流量,可以帮助排除是否存在网络流量过大导致响应时间延长的问题*/
Transfer rate: 469.07 [Kbytes/sec] received
/*网络上消耗的时间的分解,各项数据的具体算法还不是很清楚*/
Connection Times (ms)
min mean[+/-sd] median max
Connect: 31 37 7.7 31 46
Processing: 594 776 105.9 828 906
Waiting: 140 260 88.9 281 421
Total: 625 813 107.7 859 937
/*下面的内容为整个场景中所有请求的响应情况。在场景中每个请求都有一个响应时间,其中 50% 的用户响应时间小于 859 毫秒,60 % 的用户响应时间小于 890 毫秒,最大的响应时间小于 937 毫秒*/
Percentage of the requests served within a certain time (ms)
50% 859
66% 890
75% 906
80% 937
90% 937
95% 937
98% 937
99% 937
100% 937 (longest request)
截图如下:
3.2. 共100个请求,并发100请求的压力测试结果
C:\Program Files\Apache Software Foundation\Apache2.2\bin>ab -n 100 -c 100 http://d.jinostart.com/
This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 2006 The Apache Software Foundation, http://www.apache.org/
Benchmarking d.jinostart.com (be patient).....done
Server Software: Microsoft-IIS/6.0
Server Hostname: d.jinostart.com
Server Port: 80
Document Path: /
Document Length: 61168 bytes
Concurrency Level: 100
Time taken for tests: 35.593750 seconds
Complete requests: 100
Failed requests: 0
(Connect: 1, Length: 0, Exceptions: 0)
Write errors: 0
Total transferred: 6159300 bytes
HTML transferred: 6116800 bytes
Requests per second: 2.81 [#/sec] (mean)
Time per request: 35593.750 [ms] (mean)
Time per request: 355.938 [ms] (mean, across all concurrent requests)
Transfer rate: 168.96 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 31 43 20.2 46 140
Processing: 8907 13336 6529.7 11265 30781
Waiting: 343 5224 7568.5 2750 25656
Total: 8953 13380 6525.4 11296 30812
Percentage of the requests served within a certain time (ms)
50% 11296
66% 11984
75% 12515
80% 12687
90% 30640
95% 30734
98% 30781
99% 30812
100% 30812 (longest request)
3.3. 共1000个请求,并发1000请求的压力测试结果
C:\Program Files\Apache Software Foundation\Apache2.2\bin>ab -n 1000 -c 1000 http://d.jinostart.com/
This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 2006 The Apache Software Foundation, http://www.apache.org/
Benchmarking d.jinostart.com (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests
Completed 800 requests
Completed 900 requests
Finished 1000 requests
Server Software: Microsoft-IIS/6.0
Server Hostname: d.jinostart.com
Server Port: 80
Document Path: /
Document Length: 61168 bytes
Concurrency Level: 1000
Time taken for tests: 148.109375 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 61593000 bytes
HTML transferred: 61168000 bytes
Requests per second: 6.75 [#/sec] (mean)
Time per request: 148109.375 [ms] (mean)
Time per request: 148.109 [ms] (mean, across all concurrent requests)
Transfer rate: 406.11 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 31 72 166.1 46 3046
Processing: 39219 94148 20214.7 99375 143281
Waiting: 343 43191 21824.9 46937 77500
Total: 39250 94220 20200.9 99484 143343
Percentage of the requests served within a certain time (ms)
50% 99484
66% 107718
75% 110234
80% 111328
90% 117140
95% 122203
98% 125218
99% 131625
100% 143343 (longest request)
3.4. 共1000个请求,并发1000请求的压力测试结果(本机测试)
C:\Program Files\Apache Software Foundation\Apache2.2\bin>ab -n 1000 -c 1000 http://192.168.2.113/
This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 2006 The Apache Software Foundation, http://www.apache.org/
Benchmarking 192.168.2.113 (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests
Completed 800 requests
Completed 900 requests
Finished 1000 requests
Server Software: Apache/2.2.8
Server Hostname: 192.168.2.113
Server Port: 80
Document Path: /
Document Length: 25695 bytes
Concurrency Level: 1000
Time taken for tests: 38.515625 seconds
Complete requests: 1000
Failed requests: 1
(Connect: 1, Length: 0, Exceptions: 0)
Write errors: 0
Total transferred: 26063000 bytes
HTML transferred: 25695000 bytes
Requests per second: 25.96 [#/sec] (mean)
Time per request: 38515.625 [ms] (mean)
Time per request: 38.516 [ms] (mean, across all concurrent requests)
Transfer rate: 660.82 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 27 113.0 0 890
Processing: 5031 20421 9800.1 20703 32984
Waiting: 5031 20152 9796.5 20281 32875
Total: 5031 20448 9789.8 20703 32984
Percentage of the requests served within a certain time (ms)
50% 20703
66% 27531
75% 32140
80% 32265
90% 32687
95% 32734
98% 32875
99% 32921
100% 32984 (longest request)
转载请以链接形式注明出处:
本篇文章来源于 "xpaper报刊网|蛙盟云平台" :http://yun.womtech.net/html/col1/index.shtml
更多技术资讯,请访问公司官网http://www.jinostart.com
xpaper数字报刊系统介绍,请访问http://www.jinostart.com/cpjs/20110521/636.htm
Xpaper数字报报刊云&蛙盟云 版权与免责声明:
① 凡本网注明“来源:xpaper&蛙盟云”的所有作品,版权均属于xpaper软件版权归金启程科技所有,未经本网授权不得转载、摘编或利用其它方式使用上述作品。已经本网授权使用作品的,应在授权范围内使用,并注明“来源:金启程科技&蛙盟云”。违反上述声明者,本网将追究其相关法律责任。
② 凡本网注明“来源:XXX(非xpaper&蛙盟云)”的作品,均转载自其它媒体,转载目的在于传递更多信息,并不代表本网赞同其观点和对其真实性负责。
③ 本网部分内容来自互联网,如因作品内容、版权和其它问题需要同本网联系的,请在30日内进行。
※ 联系方式:xpaper数字报报刊云&蛙盟云运营中心 Email:jinostart@126.com