如何在 Jmeter 中以秒、分钟和小时计算和显示吞吐量? [英] How Throughput is calculate and display in Sec,Minute and Hours in Jmeter?

查看:77
本文介绍了如何在 Jmeter 中以秒、分钟和小时计算和显示吞吐量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个观察,想了解吞吐量计算,有时吞吐量以秒为单位,有时以分钟为单位,有时以小时为单位,请任何人提供准确的答案来计算吞吐量以及何时会在 Jmeter 摘要报告

I have one observation and want to get knowledge on Throughput calculation,Some time Throughput is displaying in seconds,some times in minutes and some times in Hours,please any one provide exact answer to calculate throughput and when it will display in Seconds,Minutes and Hours in Jmeter Summary Report

推荐答案

来自 JMeter 文档:

From JMeter Docs:

吞吐量以请求/时间单位计算.现在的时间是从第一个样本开始到最后一个样本结束计算样本.这包括样本之间的任何间隔,正如预期的那样来表示服务器上的负载.公式为:吞吐量=(请求数)/(总时间).

Throughput is calculated as requests/unit of time. The time is calculated from the start of the first sample to the end of the last sample. This includes any intervals between samples, as it is supposed to represent the load on the server. The formula is: Throughput = (number of requests) / (total time).

单位时间因吞吐量值而异.

unit time varies based on the throughput values.

示例:

  1. 在 10 秒内,发送了 10 个请求,则吞吐量为 10/10 = 1/秒
  2. 在 10 秒内,发送 1 个请求,则吞吐量为 1/10 = 0.1/sec = 6/min(以小数形式显示 0.1/sec 将在下一个更高的单位时间内自动显示)

如果你明白,这是为了避免小值(如 0.1、0.001 等).在这种情况下,更高的单位时间更容易理解,而所有单位时间都是正确的.这是一个可用性问题.

If you understand, it is to avoid small values (like, 0.1, 0.001 etc). In such cases, higher unit time is more friendly in understanding, while all unit times are correct. It is a matter of usability.

所以,

1/秒 = 60/分钟 = 3600/小时 = 相同

1/sec = 60/min = 3600/hour = SAME

这篇关于如何在 Jmeter 中以秒、分钟和小时计算和显示吞吐量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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