On 10/14/05, Richard Lynch <[EMAIL PROTECTED]> wrote:
> I can understand that file_get_contents is going to add SOME overhead,
> but 3 seconds sounds a bit "too much"

Yeah, it's like half a second or so of overhead when I test it against wget:

> for x in 1 2 3 4 5; do php -r 'system( "time `wget yahoo.com >/dev/null 
> 2>&1`" );'; time php -r 'file_get_contents( "http://yahoo.com"; );'; done

real    0m0.462s
user    0m0.006s
sys     0m0.011s

real    0m0.999s
user    0m0.164s
sys     0m0.222s

real    0m0.343s
user    0m0.009s
sys     0m0.006s

real    0m0.976s
user    0m0.162s
sys     0m0.225s

real    0m0.337s
user    0m0.007s
sys     0m0.010s

real    0m1.182s
user    0m0.158s
sys     0m0.230s

real    0m0.340s
user    0m0.007s
sys     0m0.010s

real    0m0.969s
user    0m0.159s
sys     0m0.226s

real    0m0.336s
user    0m0.011s
sys     0m0.007s

real    0m0.978s
user    0m0.160s
sys     0m0.225s



--
Greg Donald
Zend Certified Engineer
MySQL Core Certification
http://destiney.com/

Reply via email to