jmeter吞吐量图形显示_Jmeter中的吞吐量计算

Attached is the Summary Report for my tests.

Please help me understand how is the throughput value calculated by JMeter:

example the throughput of the very first line 53.1/min, how was this figure calculated by JMeter with which formula.

Also, wanted to know how are the throughput values in the subsequent test divided into mins or secs. example the 2nd line has a throughput 1.6/sec, so how does JMeter calculate this throughput values based on the time units ?

Tried many websites on the net and have got a common reply that the throughput is the number of requests per unit of time (seconds, minutes, hours) that are sent to your server during the test. But that didn't apply to the results I see in my graph the way it was explained straight forward.

解决方案

Documentation defines Throughput 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).

So in your case you had 1 request, which took 1129ms, so

Throughput = 1 / 1129ms = 0.00088573959/ms

= 0.00088573959 * 1000/sec = 0.88573959/sec

= 0.88573959 * 60/min = 53.1443754/min, rounded to 53.1/min

For 1 request total time (or elapsed time) is the same as the time of this single operation. For requests executed multiple times, it would be equal to

Throughput = (number of requests) / (average * number of requests) = 1 / average

For instance if you take the last line in your screenshot (with 21 requests), it has an average of 695, so throughput is:

Throughput = 1 / 695ms = 0.0014388489/ms = 1.4388489/sec, rounded to 1.4/sec

In terms of units (sec/min/hour), Summary report does this:

By default it displays throughput in seconds

But if throughput in seconds < 1.0, it will convert it to minutes

If it's still < 1.0, it will convert it to hours

It rounds the value to 1 decimal digit afterwards.

This is why some values are displayed in sec, some in min, and some could be in hours. Some may even have value 0.0, which basically means that throughput was < 0.04

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值