性能测试报告的指标选择、数据选择和分析的参考【以Apache AB test为例】
前几天尝试用loadrunner初试了一下性能测试,对于如何选择数据、生成数据后如何分析很是迷惑,刚刚翻看一篇网友的博客,很有条理,特此记录一下,以供参考
转自:
http://liriguang.iteye.com/blog/684641
http://www.tuicool.com/articles/EBFryq
一、对于并发用户的数据选择
1、2、5、10、20、30、50、100、150、200、500、1000
二、压力测试结果的指标选择:
吞吐量、请求等待时间、请求处理时间
Time taken for tests 表示所有这些请求被处理完成所花费的总时间
Requests per second 吞吐率,计算公式:Complete requests / Time taken for tests
Time per request 用户平均请求等待时间,计算公式:Time token for tests/(Complete requests/Concurrency Level)
Time per requet(across all concurrent request) 服务器平均请求等待时间,计算公式:Time taken for tests/Complete requests,正好是吞吐率的倒数。也可以这么统计:Time per request/Concurrency Level
Percentage of requests served within a certain time(ms) 这部分数据用于描述每个请求处理时间的分布情况,比如以上测试,80%的请求处理时间都不超过6ms,这个处理时间是指前面的Time per request,即对于单个用户而言,平均每个请求的处理时间。
三、用数据做折线图进行分析结果
四、不同指标的趋势图是否一致