Published on October 28th, 2021
We wanted to find out how would the performance of a REST API be impacted if it is called over HTTP vs. HTTPS.
Here is how we setup this simple performance test:
The performance tests results are recorded in the tables below
Observation: Fastest response was received over HTTP but the average response was exactly the same for both HTTP and HTTPS
Observation: Fastest response was received over HTTPS and the average API response time over HTTPS was better as well
Observation: Fastest response was received over HTTPS but the average response time was the same for both
Observation: Average response time over HTTPS was better than HTTP
Based on the environment setup and results presented above, we concluded that HTTPS did not impact the performance of our REST API negatively, if TLS/SSL termination is handled by the Cloud based Load Balancer.
Infact, Test # 2 and 4 indicate that HTTPS average response time was better than the average response time over HTTP.
You can contact us at info@apinoncloud.com if you have any questions or comments about the information presented in this post.