本文介绍了Jmeter汇总报告总吞吐量-如何计算的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很难找出汇总报告中的总价值是如何计算的.有人知道该值的算法吗?

I have problem to find out how total value in aggregate report is calculated.Do anybody know algorithm for this value ?

基于Jmeter文档的单次调用计算为:总执行次数/执行时间.问题在于吞吐量的总价值不是总执行次数除以测试总时间.它以更智能的方式计算,我正在寻找这种智能方式的算法:).

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

推荐答案

按照负载报告指南:

根据 JMeter词汇表

按照 JMeter来源的Calculator

/**
 * 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
}

这篇关于Jmeter汇总报告总吞吐量-如何计算的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 08:55