How to make JMeter output graphs from log-file?

别来无恙 提交于 2019-12-10 11:14:43

问题


I need to generate the same graphs as JMeter but from my app (C, VB, etc):

  1. Response Times Over Time

  2. Response Times Distribution

  3. Response Times Percentile

How can I do this? I need a calculation algorithm.

I have a CSV log-file from JMeter with following columns:

timeStamp, elapsed, label, responseCode, responseMessage, threadName, dataType, success, bytes, grpThreads, allThreads, Latency


回答1:


  1. Response Times Over Time

    1. Divide all rows to groups by one minute. Use timeStamp for this.

    2. Get average of elapsed from each group. It will be Y value.

    3. Y value is a time with one minute step for each average value.

  2. Response Times Distribution

    1. Sort all rows by elapsed field.

    2. Count rows with value of elapsed field between 0 and 100. The count will be value of first column of chart.

    3. A count of rows with value of elapsed field between 100 and 200 will be a value of chart's second column, etc.

  3. Response Times Percentile

    1. X - numbers from 0 to 100.

    2. Y - according percentile value for elapsed fields.




回答2:


I believe you can specify a file from which to read inside the Response Times Over Time Listener (and the others as well). Copy your results to another file and try a test with only listeners, pulling from that file.



来源:https://stackoverflow.com/questions/28879610/how-to-make-jmeter-output-graphs-from-log-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!