Java vs. PHP Speed Comparison -


which language faster web, java or php?

it difficult 1 answer in theory java should faster: it's precompiled, trivial algorithim run faster in java php , there has been vast amount of work done optimise java improving code, standard libraries, jit compilers, etc.

php loaded , interpreted every time if you're not using zend optimiser, objects intialised on every execution, trivial string varaible complex object many methods support.

the problem in practice php sites seem run faster using fewer resources.

i think because php developers take more straightforward approach design , don't lost trying implement exotic design patterns , implementing endless pointless abstractions.


Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -