note 60053 deleted from ref.curl by danbrown
| From: | danbrown@php.net | Date: | Sun, 17 May 2009 19:34:42 +0000 |
| Subject: | note 60053 deleted from ref.curl by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-155235@lists.php.net to get a copy of this message | ||
Note Submitter: administrator at gesoft dot org
----
In replay to trucexs post,
You are right in case if we will talk about simple script, like you mention. Now just imagine
situation when you will need to create some kind of web based proxy (example gesoft.org)? Can it be
done by using simple functions like file_get_contents? The answer will be positive, but at the same
time dont forget the time which will be spend to do the same job. Is it worth to spend more time?
Now most important thing in which I will never agree, is it possible to execute more than 1000
threads at the same? Yes and here is an example of it. proxy-list.org. 1000 proxies are rechecked
every 10 min. The difference between first proxy testing and last one could be easily calculated and
it will be equal something about 46 seconds. It should be mentioned that this testing script not
only executed and stopped but it has 30 seconds timeout!!! That means that script can not finish its
work 30 seconds earlier.
According my stats, if just simple web page will be opened by curl, there is possibility to execute
up to 10k threads at the same time.
One more important parameter is which amount of possible simultaneously threads can be executed
depends directly proportionally on hosting quality! Such as, busyness, CPU, RAM, at list internet
channel quality and speed.
Regards and good luck in you work
Vitali Simsive