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

发布于 2024-12-01 15:02:11 字数 156 浏览 3 评论 0原文

我有时发现一些用 php 构建的应用程序比用 .net 或 java 开发的应用程序要快。我看到其他一些项目也有同样的行为。一般来说,.net 中构建的应用程序相对较慢。我见过的最好的例子是facebook。即使连接速度较低或带宽较低,它也能正常工作,但此时其他站点无法工作。底层技术真的很重要吗?

I have sometimes seen that some applications that are built in php are comparatively faster than those that are developed in .net or java. I have seen some other projects also behaving same. Generally application built in .net are comparatively slower. Best example I have seen is 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??

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

忆沫 2024-12-08 15:02:11

如果开发/运营网站的人员具有相当的技能水平、相当的基础设施,以及足够的开发管理时间来根据这些人员的能力优化系统,那么是的,这会带来很大的不同。

然而,IME,语言之间最大的区别不是它们的内在性能,而是:

  1. 熟练的开发人员/管理员的水平和可用性

  2. 工作量实现给定最终结果所需的工作量

    实现

与 Java 相比,PHP 编程的入门门槛较低,这意味着与 Java 相比,找到精通 Java 的有能力的软件工程师要容易得多一名精通 PHP 的人, 尽管 PHP 技能得到了更广泛的认可。

OTOH,如果您查看软件指标,PHP 在 LOC/生产力方面几乎总是击败 Java。除非你是谷歌或 Facebook,否则工资的成本比硬件要高得多——如果速度慢,就购买更多的基础设施。

不要让我开始使用 .net

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:

  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.

OTOH, if you look at software metrics, PHP almost always trounces Java in terms of LOC/productivity. And unless you are Google or Facebook, salaries are a much greater cost than hardware - if it's slow, buy more infrastructure.

Don't get me started on .net

旧街凉风 2024-12-08 15:02:11

其实,真正重要的是应用程序的类型和质量。

您可以做的只是创建一个测试页面,例如,该页面仅以您的每种语言进行一次数据库调用并显示其输出。您会发现它们相当相等,用户不会注意到任何差异。

这一切都取决于应用程序,大型复杂的应用程序通常会比较慢。在所有可用的语言中,有很多优化方法。

也许某些语言和框架确实倾向于“感觉”较慢,例如 ASP.net 被认为有点臃肿,并且可能感觉较慢。然而,在 ASP.net 站点上工作的有能力的开发人员将比能力较差的 PHP 开发人员提高性能。

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. However a competent developer working on an ASP.net site will make it more performant then a less competent PHP developer.

猫性小仙女 2024-12-08 15:02:11

当然这很重要。这一切都取决于您的请求处理速度和效率。

处理完成后,发回网站内容将取决于您的互联网连接。

然而,服务器端的处理取决于框架。如果框架实施得不好,那么你的网站响应速度就会变慢。

如果您需要更多详细信息,您好。

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.

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文