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