Search code examples
jmeterjmeter-plugins

How to make JMeter output graphs from log-file?


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


Solution

    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.