淘宝性能测试白皮书2012最新版本
合集下载
相关主题
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
性能测试压力变化模型 ..................................................................................................... 18 性能测试类型 ..................................................................................................................... 18
TAOBAO PERF-TEST
郭芙 淘宝网测试掌门人 2009 年 11 月 18 日于杭州
2
淘宝性能测试团队
目录
淘宝性能测试白皮书
序言........................................................................................................................................... 2 目录........................................................................................................................................... 3 引言........................................................................................................................................... 5 性能测试指标 ........................................................................................................................... 5
Load负载............................................................................................................................... 9 Std. Deviation标准差 .......................................................................................................... 10 性能测试模型 ......................................................................................................................... 10 PV计算模型 ........................................................................................................................ 10 PV->TPS转换模型 ............................................................................................................. 12 TPS波动模型 ...................................................................................................................... 12 共享中心性能测试模型 ..................................................................................................... 13 前端页面性能测试模型 ..................................................................................................... 14 性能测试策略 ......................................................................................................................... 15 性能测试评估 ......................................................................................................................... 16 关键业务 ............................................................................................................................. 17 日PV量................................................................................................................................ 17 逻辑复杂度 ......................................................................................................................... 17 运营推广计划 ..................................................................................................................... 17
Vuser虚拟用户 ..................................................................................................................... 5 Transaction事务 .................................................................................................................... 5 TPS每秒事务数 .................................................................................................................... 6 PV Page View ....................................................................................................................... 6 Peak PV 高峰Page View...................................................................................................... 6 Concurrency并发 .................................................................................................................. 7 Scenario场景 ......................................................................................................................... 7 Response Time响应时间 ...................................................................................................... 7 Think Time思考时间 ............................................................................................................ 7
TAOBAO PERF-TEST CPU资源 ............................................................................................................................... 8
1. 性能测试.................................................................................................................. 18 2. 负载测试.................................................................................................................. 19 3. 压力测试.................................................................................................................. 19 4. 稳定性测试.............................................................................................................. 19 性能测试执行方法 ................................................................................................................. 19 单场景 ................................................................................................................................. 19 混合场景 ............................................................................................................................. 20 性能监控................................................................................................................................. 20 监控指标 ............................................................................................................................. 20 监控工具 ............................................................................................................................. 21 监控步骤 ............................................................................................................................. 23
ቤተ መጻሕፍቲ ባይዱ
1
淘宝性能测试团队
序言
淘宝性能测试白皮书
二零零九,岁在己丑,秋末冬初,会于产品研发之测试,修性能书也,群贤 毕至,少长咸集。此地有系统框架,API 接口;又有 Web 应用,无线性能,分 布式各大中心,列坐其次。虽无丝竹管弦之盛,一书一典,亦足以畅叙幽情。
是日也,天朗气清,惠风和畅。仰观系统之大,俯察测试之盛。所以游目骋 怀,足以极性能之娱,信可乐也。
3
淘宝性能测试团队
淘宝性能测试白皮书
其它 ..................................................................................................................................... 17 性能测试类型 ......................................................................................................................... 18
A-PDF Watermark DEMO: Purchase from www.A-PDF.com to remove the watermark
淘宝性能测试团队
淘宝性能测试白皮书
淘宝性能测试白皮书
淘宝性能测试团队 版本号:V1.0
TAOBAO PERF-TEST
发布时间: 2010 年 3 月 31 日
测试之相与,俯仰淘宝,或接口功能,测试一室之内;或安全性能,放浪形 骸之外。虽用例万殊,方法不同,当其欣于所遇,暂得于己,怏然自足,曾不知 新人倍增;及其所之未知,能力各异,感慨系之矣。向之所能,俯仰之间,已为 陈迹,犹不能不以之兴怀。况系统复杂,调优艰难。马云曰:“系统之不稳。岂 不痛哉!”
每览昔人性能测试成就之由,若合一契,未尝不临技能嗟叹,不能喻之于怀。 固知技术名利为虚诞,齐知识业绩为妄作。后之视今,亦犹今之视昔。憾夫!故 列叙性能理论实践,录其指标模型策略,虽世殊事异,性能技术,其致一也。后 之览者,亦将有感于斯性能白皮书。
TAOBAO PERF-TEST
郭芙 淘宝网测试掌门人 2009 年 11 月 18 日于杭州
2
淘宝性能测试团队
目录
淘宝性能测试白皮书
序言........................................................................................................................................... 2 目录........................................................................................................................................... 3 引言........................................................................................................................................... 5 性能测试指标 ........................................................................................................................... 5
Load负载............................................................................................................................... 9 Std. Deviation标准差 .......................................................................................................... 10 性能测试模型 ......................................................................................................................... 10 PV计算模型 ........................................................................................................................ 10 PV->TPS转换模型 ............................................................................................................. 12 TPS波动模型 ...................................................................................................................... 12 共享中心性能测试模型 ..................................................................................................... 13 前端页面性能测试模型 ..................................................................................................... 14 性能测试策略 ......................................................................................................................... 15 性能测试评估 ......................................................................................................................... 16 关键业务 ............................................................................................................................. 17 日PV量................................................................................................................................ 17 逻辑复杂度 ......................................................................................................................... 17 运营推广计划 ..................................................................................................................... 17
Vuser虚拟用户 ..................................................................................................................... 5 Transaction事务 .................................................................................................................... 5 TPS每秒事务数 .................................................................................................................... 6 PV Page View ....................................................................................................................... 6 Peak PV 高峰Page View...................................................................................................... 6 Concurrency并发 .................................................................................................................. 7 Scenario场景 ......................................................................................................................... 7 Response Time响应时间 ...................................................................................................... 7 Think Time思考时间 ............................................................................................................ 7
TAOBAO PERF-TEST CPU资源 ............................................................................................................................... 8
1. 性能测试.................................................................................................................. 18 2. 负载测试.................................................................................................................. 19 3. 压力测试.................................................................................................................. 19 4. 稳定性测试.............................................................................................................. 19 性能测试执行方法 ................................................................................................................. 19 单场景 ................................................................................................................................. 19 混合场景 ............................................................................................................................. 20 性能监控................................................................................................................................. 20 监控指标 ............................................................................................................................. 20 监控工具 ............................................................................................................................. 21 监控步骤 ............................................................................................................................. 23
ቤተ መጻሕፍቲ ባይዱ
1
淘宝性能测试团队
序言
淘宝性能测试白皮书
二零零九,岁在己丑,秋末冬初,会于产品研发之测试,修性能书也,群贤 毕至,少长咸集。此地有系统框架,API 接口;又有 Web 应用,无线性能,分 布式各大中心,列坐其次。虽无丝竹管弦之盛,一书一典,亦足以畅叙幽情。
是日也,天朗气清,惠风和畅。仰观系统之大,俯察测试之盛。所以游目骋 怀,足以极性能之娱,信可乐也。
3
淘宝性能测试团队
淘宝性能测试白皮书
其它 ..................................................................................................................................... 17 性能测试类型 ......................................................................................................................... 18
A-PDF Watermark DEMO: Purchase from www.A-PDF.com to remove the watermark
淘宝性能测试团队
淘宝性能测试白皮书
淘宝性能测试白皮书
淘宝性能测试团队 版本号:V1.0
TAOBAO PERF-TEST
发布时间: 2010 年 3 月 31 日
测试之相与,俯仰淘宝,或接口功能,测试一室之内;或安全性能,放浪形 骸之外。虽用例万殊,方法不同,当其欣于所遇,暂得于己,怏然自足,曾不知 新人倍增;及其所之未知,能力各异,感慨系之矣。向之所能,俯仰之间,已为 陈迹,犹不能不以之兴怀。况系统复杂,调优艰难。马云曰:“系统之不稳。岂 不痛哉!”
每览昔人性能测试成就之由,若合一契,未尝不临技能嗟叹,不能喻之于怀。 固知技术名利为虚诞,齐知识业绩为妄作。后之视今,亦犹今之视昔。憾夫!故 列叙性能理论实践,录其指标模型策略,虽世殊事异,性能技术,其致一也。后 之览者,亦将有感于斯性能白皮书。