性能时序:平均、最小值还是其他?
当对我的(网络)应用程序的性能/延迟进行计时时,我应该使用 n 次运行中测得的最短时间,还是平均值?还是别的什么?
如果是后一种情况,什么时候用什么?
如果你的答案是“研究一下,伙计”,你能给我指出一个好的资源吗?
When timing my (web) application for performance/latency, should I use the minimum time measured in n runs, or the average? Or something else?
If it's the latter case, when to use what?
If your answer is going to be something along the lines of, "research it, dude", could you point me to a good resource?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您可以检索值,按时间存储它们(time_of_the_call,response_time)。然后你可以用工具处理这些数据,绘制图表,进行统计。
我认为平均值、最小值等是不够的,你需要一套措施。
例如,您可以将数据放入 csv 文件并导入 Excel,甚至使用 google graph api 绘制实时图表。
You could retrieve the values, store them by time, with couple (time_of_the_call, response_time). Then you may treat these data with tools, draw graphs, make statistics.
I think an average, minimum, etc, is not sufficient, you need a set of measures.
For example you may put you data in a csv file and import in excel, or even use google graph api to draw real time graphs.
使用中位数而不是均值(或平均值)。
有关推理,请参阅页面 被认为有害的平均延迟作者:Stanislav Shalunov(thrulay)。
Use median rather than mean (or average).
For reasoning, see the page Mean Delay Considered Harmful by Stanislav Shalunov (the author of thrulay).
我想说的是,你必须自己弄清楚这一点。您是否对
根据您希望分析回答的内容,应使用不同的指标。
I would say you have to figure that one out your self. Are you benchmarking for
Depending on what you want your analysis to answer different metrics should be used.
http://www.webperformancetoday.com/ 2012/02/13/非极客绩效衡量指南/
这是一篇关于“响应时间”计时的好文章。 (网站。)
http://www.webperformancetoday.com/2012/02/13/non-geeky-guide-to-performance-measurement/
This is a good article on "response time" timing. (Websites.)