cURL Performance (Concurrent connections)

Hey guys,

How well does cURL work in terms of concurrent connections? Like if I used cURL to grab 10 different web pages at the same time, would it work? How can I test this? I am using cURL through PHP.

Would cURL work a lot better with better hardware on a server? I want to see just how well cURL works.

I use cURL in a non-concurrent fashion and it works quite well. I have a few pages where I have to do two or three cURL calls before the page can load, and it still loads in < 1 sec.

Better hardware will always make things execute faster, but I think the really important thing is to make sure it has a good amount of bandwidth (you’ll see a big different with cURL on a 100 Mbps vs a 1 Mbps line).

Awesome. Thank you :slight_smile:
I love cURL!!!

Oh, I should also preface that by saying it depends what you are cURLing too… the faster the server responses, the faster the script will go. They are synced (if used normally), so it’ll wait until it gets a response.

Good point, thank you. I set a time_out to stop trying after a certain amount of time :smiley: