04DevV
04DevV

Reputation: 1

Why PHP Curl execution time is increased while using php 7.3 and Nginx compare to Apache and php 5.6

I am using Apache and PHP 5.6 to execute a curl for an API hosted on another domain with a URL in the format of https://xyz. The total curl execution time for this setup is around 30 milliseconds. However, when I use this curl with a setup having Nginx and PHP 7.3, the execution time increases to 100-150 milliseconds. I used curl get info to obtain the following stats:

With Apache and PHP 5.6:

With Nginx and PHP 7.3:

Can someone suggest why this might be happening and what solutions exist to resolve this issue?

Upvotes: 0

Views: 45

Answers (0)

Related Questions