jmeter 吞吐量图形,Jmeter汇总报告总吞吐量 - 如何计算

I have problem to find out how total value in aggregate report is calculated.

Do anybody know algorithm for this value ?

Basing on Jmeter documentation for single call is calculate as: total execution/ time of execution.

Problem is that total value for throughput isn't number of total executions divided by total time of test. It is calculated in more smart way and I looking for algorithm of this smart way :).

解决方案Throughput is measured in requests per second/minute/hour. The time unit is chosen so that the displayed rate is at least 1.0. When the throughput is saved to a CSV file, it is expressed in requests/second, i.e. 30.0 requests/minute is saved as 0.5.

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).

As per Calculator class from JMeter's source

/**

* Throughput in bytes / second

*

* @return throughput in bytes/second

*/

public double getBytesPerSecond() {

if (elapsedTime > 0) {

return bytes / ((double) elapsedTime / 1000); // 1000 = millisecs/sec

}

return 0.0;

}

/**

* Throughput in kilobytes / second

*

* @return Throughput in kilobytes / second

*/

public double getKBPerSecond() {

return getBytesPerSecond() / 1024; // 1024=bytes per kb

}

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值