1、
Speed of code execution: ASP.NET-MVC versus PHP
http://stackoverflow.com/questions/691942/speed-of-code-execution-asp-net-mvc-versus-php
I am a developer expert on both technologies (ASP.Net c# and PHP5). After years and years of working and comparing them in real production environments these are my impressions:
- First of all, cant compare them making a loop of adding values 1.000.000, this is not a real case.
- Is not the same comparing them in my development environment than a real production env. Eg: In development ASP.Net does not use IIS by default, use a Inner Development server which has different optimizations. In dev, there is no concurrency.
So my opinion is the next:
- Looping 1.000.000 times c# is going to be faster.(no-sense)
- Serving a real page, that access DB, shows images, has forms etc....
ASP.Net is slower than PHP.
- Weight of ASPX pages is x10 heavier than PHP, so this makes the final user to be waiting more time to get the page.
- ASPX is slower to develop than PHP, this is important because at the end is money. We develop a 35% faster in PHP than ASP.Net, because of having to compile and restart every time u want to check smthg.
- In big projects, ASP.Net in long term is better for avoiding errors and have a complex architechture.
- Because of Windows Servers, IIS, .... at the end u need a powerfull server to hold the same amount of users on ASP than PHP. Eg: We serve with ASP.net arround 20.000 concurrent users and in PHP, the same server can get arround 30.000 users.
The only important thing is not if looping which one is faster. The thing is when website is real and is in production, how many users they can hold, how heavy is the page (heavier== more waiting time from users, more net charge of server, more disk charge of server, more memory charge of server). Try the checking times with concurrency and u will see.
Hope it helps.
2、网站全文搜索
PHP vs ASP vs ASP.NET vs JavaScript vs CGI
http://www.wrensoft.com/zoom/benchmarks.html
---CGI(C++)比.net快约50%,.net比PHP快7倍
3、
PHP vs .NET performance #1
http://www.holisticsystems.co.uk/blog/php-vs-net-performance-1
整数:.NET is 55 times faster than PHP in my simple benchmark !
4、
ASP.NET MVC vs PHP YII. Performance comparison
http://www.miyconst.com/Blog/View/1049/asp-net-mvc-vs-php-yii-performance-comparison
----显示数据库、导入导出excel等各项操作,win+asp。net 基本都比 linux+php快
-----较真实
5、测试发现:.net运行速度比php快70倍 比asp快39倍
http://www.webkaka.com/blog/archives/the-speed-of-dotnet-php-and-asp.html
-----------简单的循环