Performance Testing Service (PTS) uses different methods to calculate request bandwidth and response bandwidth compared to Server Load Balancer (SLB) and Elastic Compute Service (ECS).
What PTS includes in bandwidth calculations
| Metric | What is measured | Details |
|---|---|---|
| Request bandwidth | Request body only | The byte size of the HTTP request body. Request headers are excluded. |
| Response bandwidth | Response header + response body | The combined byte size of the HTTP response header and response body. The response body size can also be derived from the Content-Length header. |
How bandwidth is aggregated in test reports
PTS reports bandwidth as an average rate (KB/s) per load generator, then aggregates the values depending on how many generators are used:
Single load generator -- The report displays the average request bandwidth and average response bandwidth recorded during the test.
Multiple load generators -- The report sums each generator's average bandwidth:
Total bandwidth = Generator A average + Generator B average + ...
Examples
Single load generator
If a single generator records an average response bandwidth of 20 KB/s and an average request bandwidth of 15 KB/s during the test, the PTS performance testing report displays:
| Metric | Value |
|---|---|
| Request bandwidth | 15 KB/s |
| Response bandwidth | 20 KB/s |
Multiple load generators
Two load generators, A and B, produce the following averages during a test:
| Generator | Request bandwidth | Response bandwidth |
|---|---|---|
| A | 15 KB/s | 20 KB/s |
| B | 25 KB/s | 30 KB/s |
| Report total | 40 KB/s | 50 KB/s |