Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to print 95 and 99 Percentiles in the jmeter aggregate report command line?

I am trying to print 95 Percentile and 99 Percentile response times in the jmeter aggregate report from the command line For this, I have tried the solution mentioned in here: Jmeter: Generating aggregate report through commnd line is not including 95% and 99% line in generated report but that didn't work. I have tried editing the jmeter.properties file too. Also, the other solution that I came across is to generate the ResponseTimesPercentiles graph using CMDRunner.jar in csv format but that gives all the values from 0-99.9 which I don't need. So is there a way I can customize the csv file to just have ReponseTimesPercentiles for desired values?

Also tried this command:

java -jarCMDRunner.jar --tool Reporter --generate-csv test.csv --input-jtl results.jtl --include-labels aggregate_report_99%_line --plugin-type AggregateReport

which didn't work. So, is there any way that I can generate the 95% and 99 Percentiles in the aggregate report

like image 229
user6348718 Avatar asked Jan 19 '17 04:01

user6348718


People also ask

How do you find the 90th percentile in JMeter?

To get our 90th Percentile we take the value below the tenth value which is in row twelve in our example which matches our JMeter aggregate report value. The 95th Percentile will be in the value below our fifth value which will be row seven and the 99th Percentile will be the value below the top one.

What is 99th percentile in JMeter?

99% Line (99th Percentile) means 99% of the samples took NO MORE THAN this time. The 1% remaining samples took at least as long as this.

What is 90th percentile in JMeter report?

90% Line (90th Percentile) is the value below which 90% of the samples fall. The remaining samples too at least as long as the value. This is a standard statistical measure.


2 Answers

You can do it from CMD, First make the plan using GUI, then in the bin folder of Jmeter, open CMD and run the following command.

jmeter -n -t "[PATH-FOR-PLAN]\myplan.jmx" -l "[PATH-OF-RESULT]\results.csv" -e -o "[PATH-OF-OUTPUT]\output" 

The output folder will have a webpage with the aggregate report

like image 127
Ali Kahoot Avatar answered Sep 20 '22 11:09

Ali Kahoot


The functionality is available by default starting from JMeter version 2.13

JMeter 90, 95, 99 percentiles

The behavior is controllable via the following properties:

aggregate_rpt_pct1=90
aggregate_rpt_pct2=95
aggregate_rpt_pct3=99

If you don't see percentiles like at the above image in your Aggregate Report - add the above lines to user.properties file.

NB:

  • The approach won't work on JMeter versions earlier than 2.13
  • JMeter restart will be required to pick the properties up, dynamic changes won't work.
like image 35
Dmitri T Avatar answered Sep 18 '22 11:09

Dmitri T