Plugin that parses JMeter result files and computes performance indicators such as average request duration
Java FreeMarker HTML Shell

JMeter Result Analysis Plugin

Maven Central

A Maven plugin that parses JMeter result XML files and generates detailed reports with charts

Can be used in combination with the JMeter Maven Plugin that is developed by the same authors


  • Text and HTML output of certain statistics (minimum, maximum, average, standard deviation, quantiles) for response duration and response size
  • Output is rendered with Freemarker and can be customized
  • Chart containing request duration and average of all requests
  • CSV file containing durations of all response (by URL)
  • CSV file containing sizes of all responses (by URL)
  • Statistics and charts can be generated per request group. Request groups are defined by URL patterns.
  • Download of resources from remote systems for the JMeter execution interval

Build status

Travis CI: Build Status


Run the HelpMojo of this plugin: mvn jmeter-analysis:help -Ddetail=true -Dgoal=analyze

Release Notes

See Release Notes in the Wiki.

Usage Example

        An AntPath-Style pattern matching a JMeter XML result file to analyze. Must be a fully qualified path.
        File may be GZiped, must end in .gz then.

        Default: not set.

        directory where to store analysis result files.

        Default: ${}

        Build failed if source directory is not found.

        Default: true

        Check analysis result files. If threshold is not correct, maven build failed.

        Default: not set.
          <!-- Optional : check throughput. -->
            <!-- Default: -1 (disabling) -->

            <!-- Default: UPPER_LOWER_TOLERANCE
            Values could be : 
            * UPPER :                 minValue = threshold, maxValue = Double.MAX_VALUE
            * LOWER :                 minValue = 0, maxValue = threshold
            * UPPER_TOLERANCE :       minValue = threshold, maxValue = (threshold + (threshold * tolerance / 100))
            * LOWER_TOLERANCE :       minValue = (threshold - (threshold * tolerance / 100)), maxValue = threshold
            * UPPER_LOWER_TOLERANCE : minValue = (threshold - (threshold * tolerance / 100)), maxValue = (threshold + (threshold * tolerance / 100))
            * EQUALS :                minValue = maxValue = threshold

            If throughput result test is between minValue and maxValue, maven build is OK otherwise, build failed.

            <!-- Default: 5 (percent)
            Used for calculate min et max values.
          <!-- Optional : check percent errors. -->
            <!-- As above -->

        Request groups as a mapping from "group name" to "ant pattern".
        A request uri that matches an ant pattern will be associated with the group name.
        Request details, charts and CSV files are generated per requestGroup.

        The order is honored, a sample will be added to the first matching pattern. So it's possible
        to define various patterns and one catch all pattern.

        If not set, the threadgroup name of the request will be used.

        Default: not set.
            <!-- Optional -->
              <!-- As above -->
            <!-- Optional -->
              <!-- As above -->

        Change default value for generating charts.

        Default: width=950, height=500

        Maximum number of samples to keep (in main memory) before compressing. -1 disabling compression.

        Default: 50000

        If set to true, the directory structure relative to source will be preserved during output.

        Default: false

        Set<String> of sample names that should be processed when analysing a results file.

        Default: sample, httpSample

        If set to true will process all files found by the pattern defined in <source>.
        If set to false (the default) it will only process the first file found.

        It can substantially impact performance, if you do this you do it at your own risk!

        Default: false

        Template directory where custom freemarker templates are stored.
        Freemarker templates are used for all generated output. (CSV files, HTML files, console output)
        Templates must be stored in one of the following three subfolders of the templateDirectory:

        csv, html, text

        The entry template must be called "main.ftl".

        For example,
        templateDirectory/text/main.ftl will be used for generating the console output.

        Default: not set.

        Mapping from resource URL to file name. Every resource will be downloaded and stored in 'targetDirectory'
        with the given filename. Tokens "_FROM_" and "_TO_" can be used as placeholders. These placeholders will
        be replaced by timestamps of execution interval (formatted as ISO8601, e.g. '20111216T145509+0100').

        Default: not set.

        Specify custom date format for resources not supporting ISO8601.
        Default IOS8601
        List of writers that handle all output of the plugin.
       Defaults to:
       * com.lazerycode.jmeter.analyzer.writer.ChartWriter (generates detailed charts as PNGs),
       * com.lazerycode.jmeter.analyzer.writer.DetailsToCsvWriter (generates CSV files for every request group),
       * com.lazerycode.jmeter.analyzer.writer.DetailsToHtmlWriter (generates HTML files for every request group),
       * com.lazerycode.jmeter.analyzer.writer.HtmlWriter (generates an HTML overview file),
       * com.lazerycode.jmeter.analyzer.writer.SummaryTextToFileWriter (generates a TXT overview file),
       * com.lazerycode.jmeter.analyzer.writer.SummaryTextToStdOutWriter (generates overview output to stdout)

       If one of those should be deactivated or a new com.lazerycode.jmeter.analyzer.writer.Writer implementation should be added,
       all desired writers need to be configured!


Example Output

An analysis summary text output looks like this:

time: 20111216T145509+0100 - 20111216T145539+0100
requests:             36049
requests per second:  1201
total duration:       30
response duration (ms)
  min:                0
  average:            0
  max:                1352
  standard deviation: 7
  quantiles (ms)
       10%        0
       20%        0
       30%        0
       40%        0
       50%        1
       60%        1
       70%        1
       80%        1
       90%        1
       99%        6
     99.9%       19
    100.0%     1352 (max. value)
response size (bytes)
  total:              750210890
  min:                20480
  average:            20810
  max:                53890
  standard deviation: 3308
response status codes
  200:               36049 (100%)


Part of the development of this plugin is sponsored by CoreMedia