如何从日志文件制作 JMeter 输出图? [英] How to make JMeter output graphs from log-file?
问题描述
我需要从我的应用程序(C、VB 等)生成与 JMeter 相同的图形:
I need to generate the same graphs as JMeter but from my app (C, VB, etc):
我该怎么做?我需要一个计算算法.
How can I do this? I need a calculation algorithm.
我有一个来自 JMeter 的 CSV 日志文件,其中包含以下列:
I have a CSV log-file from JMeter with following columns:
timeStamp、elapsed、label、responseCode、responseMessage、threadName、dataType、success、bytes、grpThreads、allThreads、Latency
timeStamp, elapsed, label, responseCode, responseMessage, threadName, dataType, success, bytes, grpThreads, allThreads, Latency
推荐答案
响应时间随时间变化
将所有行按一分钟分组.为此使用 timeStamp.
获取每组已用时间的平均值.它将是 Y 值.
Get average of elapsed from each group. It will be Y value.
Y 值是每个平均值一分钟步长的时间.
Y value is a time with one minute step for each average value.
响应时间分布
按已用字段对所有行进行排序.
Sort all rows by elapsed field.
计算 elapsed 字段值在 0 到 100 之间的行.计数将是图表第一列的值.
Count rows with value of elapsed field between 0 and 100. The count will be value of first column of chart.
elapsed 字段值在 100 到 200 之间的行数将是图表第二列的值,等等.
A count of rows with value of elapsed field between 100 and 200 will be a value of chart's second column, etc.
响应时间百分比
X - 从 0 到 100 的数字.
X - numbers from 0 to 100.
Y - 根据 elapsed 字段的百分位值.
Y - according percentile value for elapsed fields.
这篇关于如何从日志文件制作 JMeter 输出图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!