IOS Native+web Hybrid Development performance analysis

Source: Internet
Author: User

Recently, the use of spare time to learn the Web is mainly mobile web, although not proficient, but at least there is a certain understanding, and about Native and the web debate has never heard, online about this aspect of your article a lot, such as the knowledge of this article: Web app and Native app, Which is the trend. And in the end they, performance aspects of what differences, to test their own only clear.

So, with Sina Weibo as an example, next I create two Xcode projects, one using native UITableView and Coretext as layout and typesetting (using the Sina Open Platform interface), and using UIWebView-based loading (link to http://m.weibo.cn). In order to test the authenticity of the data, I do not have the interface to stay on the home page, click on the content and tags I do not operate. Next look at two stops:

As you can see, the picture on the left is the app interface, the right one is opened using the browser, they all use my account @vison Wen Li-shen, needless to say, we all know that the native app user experience and fluency is better than the page. And we developers generally know that native app performance is better than web App. As long as the difference is how big, then the data to speak (I test the tool for Xcode6.3.2)

One: Memory usage comparison

B: Comparison of network usage

Summarize:

1) Both apps run at the same time for more than three minutes, with the same number of tweets being pulled down, native's memory usage averages 70.4M, and the maximum usage for 73.8m,web is 98.9M. Max Feed 129.1M. It can be seen that native performance is much higher than the web, while the highest memory usage of the web is very high, it is easy to produce crash phenomenon

2) native The first load uses 0.8M of traffic, while the Web is 3.1M (using SQLite Database Cache), the second native uses a traffic of 0.1M for 5.4k,web (using the browser's own feature cache). It can also be seen here, using the network situation, native also finished the web, but I do not intuitively feel, but can not say why O (╯-╰) O.

While it says that native is experiencing and fluency in the Web, the following are not as web-friendly:

1) The web uses the powerful WebKit function, makes it has the very good compatibility under the different platform, makes the development efficiency greatly enhances

2) A variety of JS framework, is the Web in the application development is very convenient, such as jquery-mobile,bootstrap responsive design to make it compatible with various screens, developers do not need to think too much about screen adaptation

3) Powerful release capabilities, because the web is placed on a remote server, we only need to update the Web resources users can immediately respond to.

.....

IOS Native+web Hybrid Development performance analysis

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.