Türkiye'nin En Eski Webmaster Forumu İyinet'e Hoşgeldiniz!

sizce curl mi file_get_contents mi hızlı

forumselcuk

0
Onaylı Üye
Üye
Katılım
26 Şubat 2006
Mesajlar
713
Açılan Konu
98
Tepki puanı
1
Konum
Selçuk Üniversi
Sizce hangisi bir sayfanının kaynağını daha hızlı getirir
 

MoD

0
Onaylı Üye
Üye
Katılım
8 Nisan 2005
Mesajlar
1,722
Açılan Konu
83
Tepki puanı
3
Konum
Bursa
Manual'den iki alinti.

I have created a script that tests all 4 methods on 20 different websites 10 times each. The results are clear, here is one set of the results:

Curl time: 43.02 seconds
FGC time: 86.48 seconds
Fopen time: 86.34 seconds
Socket time: 44.91 seconds

ve

Here are the results of the script on one execution:

Calculating 50 queries to http://www.flickr.com/.
cURL took 9.550734 seconds.
file_get_contents() took 10.878360 seconds.

Calculating 50 queries to http://www.yahoo.com/.
cURL took 4.729566 seconds.
file_get_contents() took 10.443786 seconds.

Calculating 50 queries to http://www.ebay.com/.
cURL took 46.348250 seconds.
file_get_contents() took 52.685604 seconds.

Calculating 50 queries to http://www.godaddy.com/.
cURL took 1.505460 seconds.
file_get_contents() took 37.154304 seconds.

Calculating 50 queries to http://www.php.net/.
cURL took 13.136836 seconds.
file_get_contents() took 17.981879 seconds.
 
Üst