How fast is PHP?

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
Ironwil
Forum Newbie
Posts: 4
Joined: Tue Jan 19, 2010 11:16 am

How fast is PHP?

Post by Ironwil »

How fast does PHP process and render pages when compared to other web development technologies like ASP.NET? I looked online for any benchmark information, but didn't find much. Since my current hosting plan has IIS, that is the environment I'm most interested in, but the speed when using Apache is also helpful.
User avatar
Jonah Bron
DevNet Master
Posts: 2764
Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California

Post by Jonah Bron »

josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: How fast is PHP?

Post by josh »

Too many factors to answer definitely.

A "webpage" might require a complex framework to do what it does. It might use a cache, etc.. so comparing full applications is not fair without lots of background detail on the apps being compared to make sure its apples and apples.

Then if you just benchmark basic code thats not fair either. Websites are complex, and often require frameworks. Doing 1 thing might require 10x as much code in PHP, doing another thing might require 10x as much ASP code... so again its just impossible to get apples and apples.

For the cost of 1 month's of a programmer's salary you can just get a really fast server though and then it doesnt matter. And you can do caching in any language too which makes the whole argument of performance moot. Even if a language were painfully slow it is generally going to excel in some other area, so it all comes down to personal preference/need. Ex Assembler is very fast, but does not excel at being very abstract.
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Re: How fast is PHP?

Post by Weirdan »

josh wrote:For the cost of 1 month's of a programmer's salary you can just get a really fast server though and then it doesnt matter.
On a larger scale it does matter though. When your site joins 'highload club' investing into programmers suddenly starts to be much more cost-effective.
Post Reply