gpt4 book ai didi

performance - 编程语言的速度对 Web 应用程序重要吗?

转载 作者:行者123 更新时间:2023-12-04 13:00:42 25 4
gpt4 key购买 nike

我在互联网上看到了很多 PHP、Python、Ruby 等之间的基准测试。 Ruby 因超慢而受到很多批评,这导致开发人员出于“性能原因”拒绝将其用于 Web 开发。但是解释器的性能对于 Web 应用程序真的很重要吗?无论如何,瓶颈不是 99% 都位于数据库中吗?那么为什么每个人都吓坏了?

注意:我意识到在某些边缘情况下,例如某些数学/科学 Web 应用程序,性能很重要,但我不是在谈论这些;我说的是你的普通社交网络、Stack Overflows 等。

最佳答案

应该让你在角落里瑟瑟发抖的是,amazon.com 和 google.com 进行的多项研究发现,页面加载时间减少 < 1 秒对他们的转化率和利润产生了显着的(对他们而言)影响。

因此,即使对于小型站点,性能也很重要。问题是这有多重要。当你每天做 100 个唯一身份时,失去 0.1% 的销售额并不重要,但是当你做 1000 万个时,突然间这 0.1% 会花费你很多钱。

Even small changes in response times can have significant effects. Google found that moving from a 10-result page loading in 0.4 seconds to a 30-result page loading in 0.9 seconds decreased traffic and ad revenues by 20% (Linden 2006). When the home page of Google Maps was reduced from 100KB to 70-80KB, traffic went up 10% in the first week, and an additional 25% in the following three weeks (Farber 2006). Tests at Amazon revealed similar results: every 100 ms increase in load time of Amazon.com decreased sales by 1% (Kohavi and Longbotham 2007). Experiments at Microsoft on Live Search showed that when search results pages were slowed by 1 second: (Kohavi 2007)

* Queries per user declined by 1.0%, and
* Ad clicks per user declined by 1.5%

After slowing the search results page by 2 seconds:

* Queries per user declined by 2.5%, and
* Ad clicks per user declined by 4.4%

http://www.websiteoptimization.com/speed/tweak/psychology-web-performance/

关于performance - 编程语言的速度对 Web 应用程序重要吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/963039/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com