性能测试:rt要看percentile response time

一次性能测试会访问系统很多次,每次的rt都不一样。应该看哪个值?

看max response time并没有意义,因为它可能只是个尖峰(spike),是奇异点。

看average response time会好很多,但如果尖峰太夸张,可能会严重影响平均值。

最合适的值是percentile response time, 比如"95%的请求的rt在5ms以内" 这种。

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.