Forum Moderators: mack

Message Too Old, No Replies

is it me or do PHP load "slower" than others?

all thinks being equal, is PHP just as fast as others: asp, jsp, etc?

         

mcmoxie

3:36 pm on Jul 21, 2004 (gmt 0)

10+ Year Member



I've visited sites that are coded in PHP and they seem to load slower than the average high-volume site..

all thinks being equal, for a medium-sized, medium-traffic site, is PHP just as fast as others (i.e ASP, JSP, etc)?

I'm very new to web programming and trying to understand the various technologies.

Thanks.

[edited by: mcmoxie at 3:50 pm (utc) on July 21, 2004]

macrost

3:43 pm on Jul 21, 2004 (gmt 0)

10+ Year Member



mcmoxie,
To tell you the truth, it's all how the coder coded it. I have seen some pitifully slow asp sites and php sites. There are things that a coder can take into account, i.e. memory management and the like.

brotherhood of LAN

3:55 pm on Jul 21, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Also, if youre on a shared server it could be hard to tell. Someone elses site might be taking up the resources that seemingly make your PHP site slower.

digitalv

4:39 pm on Jul 21, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I've noticed that PHP tends to run slower than ASP on Windows/IIS boxes because you're basically calling an EXE via command line for every PHP page (same reason Perl runs slower on Win/IIS too).

I suspect that it would perform better in a UNIX/Linux environment than it does in Windows. Whether it would appear to out-perform any other scripting language is relative to the hardware, bandwidth, code efficiency, how often the output buffer is flushed during operations, etc.

nobody

7:59 pm on Jul 21, 2004 (gmt 0)

10+ Year Member



I've noticed that PHP tends to run slower than ASP on Windows/IIS boxes because you're basically calling an EXE via command line for every PHP page (same reason Perl runs slower on Win/IIS too).

AFAIK, thats because PHP does a fork() for new requests, which is cheap (in terms of efficiency) under *nix, but expensive under windows.

Don't forget that performance could also be related to the speed of any database, or external data source, and so on...

macrost

10:53 pm on Jul 21, 2004 (gmt 0)

10+ Year Member



mcmoxie,
So, in other words, "Pick your own poison!".

Welcome to WebmasterWorld!