简体   繁体   English

底层平台是否会影响任何网站或Web应用程序的速度?

[英]Does the underlying platform affect the speedof any web site or web application?

I have sometimes seen that some applications that are built in php are comparatively faster than those that are developed in .net or java. 我有时会看到一些用php构建的应用程序比用.net或java开发的应用程序要快。 I have seen some other projects also behaving same. 我看到其他一些项目也表现相同。 Generally application built in .net are comparatively slower. 通常,内置于.net的应用程序相对较慢。 Best example I have seen is facebook. 我见过的最好的例子是facebook。 It works well even if there is low connection or low bandwitdh but at that time other sites dont work. 即使存在低连接或低带宽但它当时其他站点也不起作用,它仍能正常工作。 Does the underlying technology really matter?? 底层技术真的很重要吗?

Hardly, its the type and quality of application that really matters. 几乎没有,它的应用类型和质量真正重要。

What you could do is just create a test page, one that for example only makes one database call and display its output, in each of your languages. 您可以做的只是创建一个测试页面,例如,只在每种语言中进行一次数据库调用并显示其输出。 You'll notice they are fairly equal, the user wont notice any difference. 您会发现它们相当平等,用户不会注意到任何差异。

It all depends on the application, large complicated applications are often slower. 这一切都取决于应用程序,大型复杂的应用程序往往较慢。 There are many ways to optimize, in all the languages available. 在所有可用语言中,有许多方法可以进行优化。

Perhaps some languages and frameworks do tend to 'feel' slower, for example ASP.net is considered a bit bloated, and could feel slower. 也许某些语言和框架确实倾向于“感觉”变慢,例如ASP.net被认为有点臃肿,并且可能感觉更慢。 However a competent developer working on an ASP.net site will make it more performant then a less competent PHP developer. 然而,在ASP.net网站上工作的有能力的开发人员将使其性能更低,而不是一个不太称职的PHP开发人员。

Given a comparable level of skill for the people developing / operating the site, comparable infrastructure, and enough development admin time to optimize the system to the abilities of those people, then yes, it makes a lot of difference. 鉴于开发/运营网站的人员具有可比较的技能水平,可比较的基础设施,以及足够的开发管理时间来优化系统以满足这些人的能力,那么是的,它会产生很大的不同。

However, IME, the biggest differentiator between languages is not what their intrinsic perfromance, but: 然而,IME,语言之间最大的区别并不是它们的内在性能,而是:

  1. the level and availability of skilled developers / admins 熟练的开发人员/管理员的水平和可用性

  2. the amount of effort required to achieve a given end result 达到给定最终结果所需的努力量

The lower barriers of entry to PHP programming compared with Java, means it is a lot easier to find a competent software engineer proficient in Java compared with one proficient in PHP, despite PHP skills being much more widely asserted. 与Java相比,进入PHP编程的较低障碍意味着,与精通PHP的人相比,找到熟练掌握Java的合格软件工程师要容易得多, 尽管 PHP技能被广泛宣称。

OTOH, if you look at software metrics, PHP almost always trounces Java in terms of LOC/productivity. OTOH,如果你看看软件指标,PHP几乎总是在LOC /生产力方面打败Java。 And unless you are Google or Facebook, salaries are a much greater cost than hardware - if it's slow, buy more infrastructure. 除非你是谷歌或Facebook,否则工资的成本远远高于硬件 - 如果速度慢,则购买更多的基础设施。

Don't get me started on .net 不要让我开始.net

Sure it matters. 当然重要。 It all comes down on how fast and efficient your request can be processed. 这一切都取决于您的请求处理速度和效率。

Once the processing is done, sending back the website content will be dependent on your Internet connection. 处理完成后,发回网站内容将取决于您的Internet连接。

However, the processing on the server side depends on the framework. 但是,服务器端的处理取决于框架。 If the framework is poorly implemented, then your website will respond slower. 如果框架实施不当,那么您的网站响应速度会变慢。

Holla if you need more details. 霍拉,如果你需要更多细节。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM