MQTT stress testing report

Updated at:

During an MQTT stress test, you can view real-time performance data. After a test completes, the system automatically collects data from the test to generate a stress testing report. This topic describes each section of an MQTT stress testing report.

Report access

  1. Log on to the PTS console. In the navigation pane on the left, choose performance testing > report list.

  2. In the Actions column for the target report, click View Report.

    Note

    On the report details page, click Export Report in the upper-right corner. Then, select Watermarked Version or Non-watermarked Version to export the report as a PDF file.

Sample logs

Viewing sample logs during a test or in the report helps you quickly identify issues. On the report details page, click View Sample Logs in the upper-right corner. On the View Logs page, click View Details in the Actions column to see detailed sample logs.

The log details include the following information:

  • The General tab displays the log fields and their values. The log fields include samplerData, requestHeaders, responseHeaders, responseDataAsString, dataEncoding, responseMessage, startTime, endTime, and assertionResults. In the upper-right corner, you can switch between the General and HTTP display modes.

  • The Timing Waterfall tab shows the duration of each API call. It displays the duration of each phase in a horizontal bar chart. The legend includes ConnectTime and Request/Response Transfer Time. The table below lists the URL, Start Time, and Duration for each request.

Stress testing scenario

The first section of the stress testing report displays the business metrics for the entire stress testing scenario.

In the Data Information area, you can view the following parameters:

Parameter

Description

Request success rate (%)

The request success rate for the entire scenario during the test.

Average RT (success/failure)

The average RT for successful and failed requests during the test.

TPS

The total number of requests divided by the test duration.

Concurrency

The configured concurrency for this stress testing scenario.

Error count

The total number of errors that occurred during the test. Click the number to view the log details for the errors.

Total requests

The total number of requests sent for the entire scenario during the test.

You can view the stress information, configuration information, and billing information for the stress testing scenario.

Parameter

Description

Stress information

Start time

The time when the stress test started for this scenario.

End time

The time when the stress test ended for this scenario.

Test duration

The total duration of the stress test.

Total traffic (request/response)

The total traffic generated by requests and responses, respectively, during the test.

Average traffic (request/response)

The average traffic for requests and responses, respectively, during the test, calculated as total traffic divided by the total duration.

Configuration

Stress source

The stress source selected in the scenario's configuration to initiate the test.

Configured duration

The test duration set in the scenario's configuration.

Traffic model

The traffic model selected in the scenario's configuration.

Number of stress engines

The number of stress engines set in the scenario's configuration.

Billing

VUMs consumed

The total resources consumed by this stress test.

The stress testing report also includes time-series charts for the scenario's request success rate, average RT, and TPS. You can hover over a data point on a chart to view its value at a specific time.

Business metrics

The Overview tab of the stress testing report shows the test results for each sampler in the stress testing scenario. The metrics for each sampler are displayed in a table, and the first row shows the summary data for the Overall scenario.

Parameter

Description

Sampler name

The name of the overall scenario and each sampler.

Total requests

The total number of requests sent by the sampler during the stress test.

Average TPS

The average TPS for the sampler during the test. TPS = Total requests from the sampler / Test duration.

Success rate

The success rate for this sampler during the stress test. Green numbers indicate success, and red numbers indicate failure.

  • Click the number for successful or failed requests to quickly view the corresponding logs.

  • Click Details to view the number of failed requests caused by 2XX, 3XX, 4XX, 5XX, or other errors. Click the number under Other Errors to see statistics about the errors, including their rank, error messages, error count, and percentage.

Average response time

The average response time for this sampler during the test. Click Details to view the maximum, minimum, and percentile response times.

Traffic (send/receive)

Displays the amount of traffic sent and received, respectively.

Scenario details

The Details > Scenario Details tab of the stress testing report shows detailed metrics for the overall scenario and each sampler. This includes the Request Details View and the Performance Comparison View.

Note

The Performance Comparison View appears only in non-fixed scale mode. This view includes charts showing the relationship between the number of threads and throughput, the relationship between threads and response time (RT), and the distribution of request counts by RT.

Request details

This view includes charts for status code statistics, scenario concurrency, requests (TPS), success rate, response time, and traffic details. For more information about these metrics, see Test Metrics. The list on the left shows the samplers. You can select Overall or an individual sampler to view the corresponding metric charts.

Performance comparison

  • Threads vs. response time (RT) chart: Shows how RT changes with the number of concurrent threads. When many users request a server simultaneously, the server takes longer to respond.

  • Threads vs. throughput chart: Shows the relationship between the server's throughput and the number of active threads. It indicates the statistically maximum possible throughput based on the number of users accessing the application.

  • Response time (RT) vs. request distribution chart: Shows how the percentage of requests changes with RT. When many users request a server simultaneously, the server takes longer to respond.

Stress test logs

The Details > Stress Test Logs tab allows you to view and search log information. The page provides filter conditions such as Stress engine ID, Log level, Time range, and Stress thread. It supports both Light and Dark display modes for the logs.

Stress engine performance

The Details > Stress engine performance tab of the stress testing report displays time-series charts for all stress engines used in the test. These charts show metrics such as the instantaneous number of GC events and GC time, CPU utilization, Load5, memory utilization, and network traffic. You can also filter the view to see the performance information for a specific stress engine.

Note

Stress engine information is retained for up to 30 days.