问题
I need to generate the same graphs as JMeter but from my app (C, VB, etc):
Response Times Over Time
Response Times Distribution
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:
Response Times Over Time
Divide all rows to groups by one minute. Use timeStamp for this.
Get average of elapsed from each group. It will be Y value.
Y value is a time with one minute step for each average value.
Response Times Distribution
Sort all rows by elapsed field.
Count rows with value of elapsed field between 0 and 100. The count will be value of first column of chart.
A count of rows with value of elapsed field between 100 and 200 will be a value of chart's second column, etc.
Response Times Percentile
X - numbers from 0 to 100.
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