每秒请求数和响应时间之间的相关性? [英] Correlation between requests per second and response time?

查看:50
本文介绍了每秒请求数和响应时间之间的相关性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以解释每秒请求数和响应时间之间的相关性吗?你一开始想改进哪一个?如果您的竞争对手为其最常用的功能提供的每秒请求数"较少,那么您的应用程序在最终用户性能方面的表现是否更好?

Can someone please explain the correlation between requests per second and response time? Which are you trying to improve at first? If your competitor offers less 'requests per second' on his most used functionality then you, is your application performing better in terms of end-user performance?

推荐答案

谁能解释一下每秒请求数和响应时间之间的关系?

Can someone please explain the correlation between requests per second and response time?

把这种情况想象成一个加油站.汽车以不同的时间间隔到达并占用一个泵;他们花了一些时间填饱肚子,然后离开.

Think of this situation as if it were a gas station. Cars arrive at various intervals and occupy a pump; they spend some time filling up, and then they leave.

  • 每辆到达并占用一个泵的汽车都是一个请求.
  • 填满所需的时间就是您的响应时间.

您可以通过两种方式改进:

You can improve things in two ways:

  • 如果您添加更多泵,您可以一次为更多汽车提供服务,因为容量会更大.
  • 如果您让所有泵都更快,随着时间的推移,您可以使用相同数量的泵为更多汽车提供服务,因为每辆车都会更快完成.
  • If you add more pumps, you can service additional cars at once because there will be more capacity.
  • If you make all your pumps faster, you can service more cars over time with the same number of pumps, because each car will finish sooner.

你一开始想改进哪一个?

Which are you trying to improve at first?

那要看情况.您想更快地为人们提供服务(改善他们的体验,同时让其他人等待)从而总体上有更多的人,还是想一次为更多的人提供服务(可能会以请求时间为代价)?理想情况下,尽可能获得两个指标.

That depends. Do you want to serve people faster (improving their experience while making some others wait) and thus more people overall, or do you want to serve more people at once (at the possible expense of request time)? Ideally, get both metrics as good as possible.

这篇关于每秒请求数和响应时间之间的相关性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆