All Products
Search
Document Center

Performance Testing:How are the request bandwidth and response bandwidth calculated in PTS?

Last Updated:Oct 30, 2024

This topic describes how the request bandwidth and response bandwidth are calculated in Performance Testing Service (PTS).

Calculation methods

The methods used to calculate the request bandwidth and response bandwidth in PTS are different from the methods used in Server Load Balancer (SLB) and Elastic Compute Service (ECS) instances.

  • PTS calculates the request bandwidth based on the size of the request body.

  • PTS calculates the response bandwidth based on the total size of the response header and response body. The size of the response body can also be derived from the Content-Length header.

Based on the preceding calculation methods for the request bandwidth and response bandwidth, the following logic is used in the PTS performance testing report to calculate the final response bandwidth and request bandwidth:

  • Single load generator:

    • The response bandwidth is the average response bandwidth during the testing process.

    • The request bandwidth is the average request bandwidth during the testing process.

  • Multiple load generators:

    • The response bandwidth is the sum of the average response bandwidths of all load generators.

    • The request bandwidth is the sum of the average request bandwidths of all load generators.

Examples

  • You use a single generator to conduct performance testing. During the testing process, the average response bandwidth is 20 KB/s and the average request bandwidth is 15 KB/s.

    • The response bandwidth in the PTS performance testing report is 20 KB/s.

    • The request bandwidth value in the PTS performance testing report is 15 KB/s.

  • You use load generators A and B to conduct performance testing. The average response bandwidth of load generator A is 20 KB/s and the average request bandwidth is 15 KB/s. The average response bandwidth of load generator B is 30 KB/s and the average request bandwidth is 25 KB/s.

    • The response bandwidth in the PTS performance testing report is the average response bandwidth of load generator A plus the average response bandwidth of load generator B, which is 20 KB/s + 30 KB/s = 50 KB/s.

    • The request bandwidth in the PTS performance testing report is the average request bandwidth of load generator A plus the average request bandwidth of load generator B, which is 15 KB/s + 25 KB/s = 40 KB/s.