You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'm using reactphp-buzz (2.7) and I found it really slow trying to perform a GET request towards Telegram servers. I've compared it with synchronous GuzzleHttp and this one seems 5 times faster than buzz. The weird thing is that this happens only with Telegram servers' urls, trying with another domain the performance is more or less the same. Here my test scripts (PHP 7.3.3):
This one using Guzzle (sync):
Am I missing something or using reactphp-buzz in the wrong way? Maybe Guzzle is passing some "under the hood" parameters that makes Telegram servers reply quicker?
Thank you in advance, Michele
The text was updated successfully, but these errors were encountered:
@cheeghi Thanks for reporting, this is an interesting one! 👍
Unfortunately, I can not reproduce the problem you're seeing. Both curl and this project take approximately the same time in my tests (~150ms).
It's a bit hard to diagnose without having a better insight into the particular network parameters and setup, but I don't see anything obvious that would cause this kind of difference. The only issue we're aware of would be misbehaving HTTP servers as briefly discussed in #102, but this is very rare in practice.
I believe this has been answered, so I'm closing this for now. Please come back with more details if this problem persists and we can reopen this 👍
Hi,
I'm using reactphp-buzz (2.7) and I found it really slow trying to perform a GET request towards Telegram servers. I've compared it with synchronous GuzzleHttp and this one seems 5 times faster than buzz. The weird thing is that this happens only with Telegram servers' urls, trying with another domain the performance is more or less the same. Here my test scripts (PHP 7.3.3):
This one using Guzzle (sync):
Which takes about 0.15s to be executed.
This one with reactphp-buzz (async):
Which takes about 0.75s to be executed.
If I try to use the commented url (http://dummy.restapiexample.com/api/v1/employees) instead of the Telegram one the request response times are more ore less the same.
Am I missing something or using reactphp-buzz in the wrong way? Maybe Guzzle is passing some "under the hood" parameters that makes Telegram servers reply quicker?
Thank you in advance, Michele
The text was updated successfully, but these errors were encountered: