简体   繁体   English

iPhone 上的 Web 应用程序性能与 Android

[英]Web app performanace on iPhone Vs Android

It is generally said/accepted that a native app would always have a better/smooth performance compared to a web app..通常说/接受的是,与 web 应用程序相比,本机应用程序始终具有更好/流畅的性能。

Is this statement true across all the platforms (iPhone/Android/BB,etc)?这种说法在所有平台(iPhone/Android/BB 等)上都是正确的吗? Does this not apply correctly for an iPhone ie to say that for iPhone web app, it utlizies some kind of GPU acceleration or something (though not very sure how that works) and hence the performance gap is not much?这是否不适用于 iPhone,也就是说,对于 iPhone web 应用程序,它使用了某种 GPU 加速或其他东西(虽然不太确定它是如何工作的),因此性能差距不大?

Could you please elaborate on the same.您能否详细说明一下。 Essentially I wanted to understand if I have a high performance app (which would include lots of animation/high memory usage,etc), is it better to have that as a native app OR if the target audience is only iPhone, even a web app would perform good..Having said that, will Android also reduce the performance gap between native and web in the near future?本质上,我想了解我是否有一个高性能应用程序(其中将包括大量动画/高 memory 使用等),将其作为本机应用程序更好还是如果目标受众只是 iPhone,甚至是 web 应用程序会表现不错..话虽如此,Android 在不久的将来也会缩小原生和 web 之间的性能差距吗?

Also any examples of really high performance web sites which I can try viewing on iPhone/Android to compare the differences?还有任何真正高性能的 web 网站的例子,我可以尝试在 iPhone/Android 上查看以比较差异?

You're asking a big question there:)你在那里问了一个大问题:)

Web apps are all the hype because you don't need to learn Android or obj c so people with skills like web design and scripting can make apps fairly easily. Web apps are all the hype because you don't need to learn Android or obj c so people with skills like web design and scripting can make apps fairly easily. The problem with web apps I find is that you have to be very conscious of how everything works as everything has to render every time.我发现 web 应用程序的问题在于,您必须非常清楚一切是如何工作的,因为每次都必须渲染。

I've found some web apps crash when you do too much too quickly, even with HTML 5 there's some bugs.我发现一些 web 应用程序在您执行太多太快时会崩溃,即使使用 HTML 5 也存在一些错误。 On iPhone and Android devices if your app was say a shopping app you could pre render results for a query and only show them when required.在 iPhone 和 Android 设备上,如果您的应用程序是购物应用程序,您可以预先呈现查询结果并仅在需要时显示它们。

Another problem with web apps is connectivity. web 应用程序的另一个问题是连接性。 I know some people say the internet is everywhere but what if you;re abroad and your carrier charges roaming for bandwidth?我知道有些人说互联网无处不在,但如果您在国外并且您的运营商收取漫游带宽费用怎么办? I know the ones in Ireland used to charge 10e a meg to uses the internet.我知道爱尔兰过去使用互联网收取 10 欧/兆欧的费用。 Fair enough if the app whether native or web required a connection both will suffer如果应用程序无论是本机还是 web 都需要连接,那么这很公平

As for the cpu and gpu performanance that will mostly rely on the model you're using.至于 cpu 和 gpu 性能,主要依赖于您正在使用的 model。 The iPhone models speak for themselves but there's sooooo many Android phones with different processors it's hard to benchmark. iPhone 型号不言自明,但有太多的 Android 手机具有不同的处理器,很难进行基准测试。 Also take into account internet connectivity..... a lot of factors还要考虑互联网连接......很多因素

With both platforms there are endless pros and cons.这两个平台都有无穷无尽的利弊。 I find web apps are quick and easy but can fall short of the nice functionality in Android and iOS APIs.我发现 web 应用程序既快速又简单,但可能无法实现 Android 和 iOS API 中的出色功能。 On the other hand the Android and iOS APIs can be head wrecking and cause weeks of headaches另一方面,Android 和 iOS API 可能会让人头疼并导致数周的头痛

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

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