如何使用平均字节和平均响应时间计算n个用户的KB /秒,根据通过非gui模式脚本运行生成的jtl文件

时间:2016-12-12 10:28:08

标签: jmeter

在非gui模式下为2个虚拟用户运行脚本时如何使用Jtl文件中填充的平均字节和已用时间来计算KB /秒。

1 个答案:

答案 0 :(得分:0)

让我们找到如何计算吞吐量:

Throughput = 1/[Total Time]

Where Total time = [Avg bites] * [1/(KB/Sec)]

Where using [1/(KB/Sec)] we are getting the Time consumed in Sec. For 1 KB of data .

Then simply for one sample i.e Avg bites of that sample = [Avg bites] * [1/(KB/Sec)]

So Throughput is for one sample = 1/[{Avg bites} * {1/(KB/Sec)}]

Eg :

Throughput = 1/[Total Time]

Total time = (6.041 KB) * [1/90] =0.0671 sec [Say , Avg Bytes=6.041 kb & kb/sec=90 ]

Then Throughput = 1/ 0.0671 = 14.9031297/Sec