Is PHP faster than .NET ?

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
User avatar
Mds
Forum Contributor
Posts: 110
Joined: Tue Apr 22, 2008 8:56 pm
Contact:

Is PHP faster than .NET ?

Post by Mds »

Hi there.
most of the time when I'm visiting PHP websites , I sense that they're fastest than same .NET websites.

Is it true ?
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Re: Is PHP faster than .NET ?

Post by alex.barylski »

PHP is waaaaaay faster...

I have nothing to prove that statement by my own biased experience in working in only PHP (although I did tinker with ASP). PHP is the best.

Hows that for an answer? Anymore questions? :P
matthijs
DevNet Master
Posts: 3360
Joined: Thu Oct 06, 2005 3:57 pm

Re: Is PHP faster than .NET ?

Post by matthijs »

Maybe what makes .NET site slower is that when you visit a .NET site, your browser probably has to work through loads of microsoft-only crap-code first before being able to show you the page. That's just an educated guess :)
User avatar
Eran
DevNet Master
Posts: 3549
Joined: Fri Jan 18, 2008 12:36 am
Location: Israel, ME

Re: Is PHP faster than .NET ?

Post by Eran »

.NET is a framework, so typically sites built on it will be somewhat slower as it adds several levels of abstraction. Having said that, .NET case is much more extreme than most frameworks as it attempts to somewhat emulate development conventions used for desktop software development. Also many shortcuts used by default by its dominant IDE (visual studio) result in tons of bloat code that slows down the application considerably.

This is just the Microsoft way of handling things ;)
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Re: Is PHP faster than .NET ?

Post by RobertGonzalez »

Bad code is bad code and it will be slow. You can write badly performing .NET apps just as well as you can Java, PHP, Python, Ruby.. you can see where I am going with this.

C#.NET/VB.NET/J#.NET are languages that are built as layers upon the NET framework. The framework allows for compiled applications which does make things a little faster when done right. But a lot of .NET developers resemble the PHP community in that they get a license for Visual Studio, drag and drop some stuff to the screen, see that it works and begin to tell the world they are programmers.

Performance is a higher level element of programming that a lot of inexperienced/rookie/n00B developers do not take note of enough. That could have a lot to do with performance too.
User avatar
Mds
Forum Contributor
Posts: 110
Joined: Tue Apr 22, 2008 8:56 pm
Contact:

Re: Is PHP faster than .NET ?

Post by Mds »

I think so Microsoft has best programmers.
But why MSDN Forums is very slow ( or it looks here )
Post Reply