Page 1 of 1

Is PHP faster than .NET ?

Posted: Fri Aug 08, 2008 5:06 pm
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 ?

Re: Is PHP faster than .NET ?

Posted: Fri Aug 08, 2008 6:27 pm
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

Re: Is PHP faster than .NET ?

Posted: Sat Aug 09, 2008 2:29 am
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 :)

Re: Is PHP faster than .NET ?

Posted: Sat Aug 09, 2008 9:02 am
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 ;)

Re: Is PHP faster than .NET ?

Posted: Sat Aug 09, 2008 4:03 pm
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.

Re: Is PHP faster than .NET ?

Posted: Sun Aug 10, 2008 9:37 am
by Mds
I think so Microsoft has best programmers.
But why MSDN Forums is very slow ( or it looks here )