When I use Guzzle to connect to either a local API or network API, the results are similar. When hitting the API straight through using CURL, response time is reasonable at 50ms. However, using Guzzle, the very first connection takes nearly a full second. The bulk of the time, according to profiling is split between Client->get and Request->send(), each at about 300ms. After the initial hump, additional fetches are sent at around the 50ms benchmark.
Am I missing some configuration options (currently using default)? Or is this a sacrifice that other users experience?
I've seen and tried things like command.disable_validation, but there were extremely minor improvements in overall performance. Again - I stress that this is only on the first connection.
I'm running on Windows 7. PHP 5.3.19.